Skip to content

Instantly share code, notes, and snippets.

@nelreina
Created December 6, 2017 06:14
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 nelreina/5d36e5e4e93a469cb3c657b44c451e8c to your computer and use it in GitHub Desktop.
Save nelreina/5d36e5e4e93a469cb3c657b44c451e8c 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, { SwitchCase: 1 }],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'no-console': ['warn', { allow: ['info', 'error'] }],
'arrow-parens': ['error', 'always'],
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment