Created
August 17, 2019 06:04
-
-
Save luandevpro/3df6fa72c2a83652847107f56167036a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
parser: 'babel-eslint', | |
extends: ['airbnb', 'plugin:prettier/recommended'], | |
env: { | |
browser: true, | |
jest: true, | |
}, | |
plugins: ['react', 'jsx-a11y', 'import', 'prettier'], | |
rules: { | |
"camelcase": [2, {"properties": "never"}], | |
"no-console": "off", | |
'max-len': ['error', 100], | |
'no-underscore-dangle': ['error', { allow: ['_id'] }], | |
'no-mixed-operators': 'off', | |
'prefer-destructuring': [ | |
'error', | |
{ | |
VariableDeclarator: { | |
array: false, | |
object: true, | |
}, | |
AssignmentExpression: { | |
array: true, | |
object: false, | |
}, | |
}, | |
{ | |
enforceForRenamedProperties: false, | |
}, | |
], | |
'import/prefer-default-export': 'off', | |
'jsx-a11y/anchor-is-valid': 'off', | |
'react/react-in-jsx-scope': 'off', | |
'react/jsx-filename-extension': [ | |
'error', | |
{ | |
extensions: ['.js'], | |
}, | |
], | |
'prettier/prettier': [ | |
'error', | |
{ | |
singleQuote: true, | |
trailingComma: 'all', | |
arrowParens: 'always', | |
printWidth: 100, | |
}, | |
], | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment