Skip to content

Instantly share code, notes, and snippets.

@a-eid
Created May 1, 2018 07:59
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 a-eid/8ba88ef37bfbf7bf057cf115a9a8d140 to your computer and use it in GitHub Desktop.
Save a-eid/8ba88ef37bfbf7bf057cf115a9a8d140 to your computer and use it in GitHub Desktop.
module.exports = {
parser: "babel-eslint",
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
jest: true,
},
extends: ["eslint:recommended", "plugin:react/recommended"],
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
},
sourceType: "module",
},
plugins: ["react"],
rules: {
"react/prop-types": ["off"],
indent: ["error", 2],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "never"],
"no-console": ["warn", { allow: ["info", "error"] }],
"arrow-parens": ["error", "always"],
},
}
// yarn add eslint babel-eslint eslint-plugin-react --dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment