Skip to content

Instantly share code, notes, and snippets.

@DjLeChuck
Last active May 25, 2017 10:27
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 DjLeChuck/a55464db496173a07cdc2c8ccc5babaa to your computer and use it in GitHub Desktop.
Save DjLeChuck/a55464db496173a07cdc2c8ccc5babaa to your computer and use it in GitHub Desktop.
{
"extends": [ "eslint:recommended", "plugin:react/recommended" ],
"plugins": [ "babel", "react" ],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"impliedStrict": true,
"experimentalObjectRestSpread": true,
"jsx": true,
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
},
"rules": {
"babel/new-cap": 1,
"babel/object-curly-spacing": ["error", "always"],
"babel/no-invalid-this": 1,
"babel/semi": ["error", "always"],
"no-console": ["error", { "allow": ["warn", "error"] }],
"semi": ["error", "always"],
"no-fallthrough": ["error", { "commentPattern": "cascade" }],
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
"prefer-promise-reject-errors": ["error", { "allowEmptyReject": true }],
"eqeqeq": ["error", "always"],
"max-len": ["error", {
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true,
}],
"indent": ["error", 2, {
"SwitchCase": 1,
"MemberExpression": 1,
"FunctionDeclaration": { "parameters": 2 },
"CallExpression": { "arguments": 1 },
}],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment