Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@johnpapa
Created September 16, 2017 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save johnpapa/d9462d220e0a439840129855d78a7ed6 to your computer and use it in GitHub Desktop.
Save johnpapa/d9462d220e0a439840129855d78a7ed6 to your computer and use it in GitHub Desktop.
.eslintrc
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"rules": {
"arrow-body-style": ["warn", "as-needed"],
"arrow-parens": ["warn", "as-needed"],
"arrow-spacing": ["warn", { "before": true, "after": true }],
"max-len": ["error", 100],
"prefer-arrow-callback": [
"warn",
{
"allowNamedFunctions": true
}
],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"no-var": "warn",
"prefer-const": "warn",
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment