Skip to content

Instantly share code, notes, and snippets.

@gordlea
Last active June 23, 2016 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gordlea/d2a9b96c85811aea55b1de3820d41382 to your computer and use it in GitHub Desktop.
Save gordlea/d2a9b96c85811aea55b1de3820d41382 to your computer and use it in GitHub Desktop.
js project boilerplate
// Use this file as a starting point for your project's .eslintrc.
// Copy this file, and add rule overrides as needed.
{
"extends": "airbnb",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"rules": {
"indent": [2, 4, {"SwitchCase": 1}],
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4]
},
"env": {
"jasmine": true,
"jest": true
}
}
scss_files: 'src/scss/**/*.css.scss'
linters:
Indentation:
width: 4
NestingDepth:
enabled: true
max_depth: 5
ignore_parent_selectors: false
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
# 4 space indentation
[*.json]
indent_size = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment