Last active
September 22, 2020 05:04
-
-
Save kvizconde/639e596da83178deee92355bac2ed662 to your computer and use it in GitHub Desktop.
personal eslint settings featuring airbnb style
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
Show hidden characters
module.exports = { | |
extends: ['airbnb-base', 'prettier', 'plugin:react/recommended'], | |
// eslint:recommended (you could put this inside extends to override airbnb-base) | |
env: { | |
node: true, | |
es6: true, | |
browser: true, | |
jest: true, | |
jquery: true, | |
}, | |
parser: 'babel-eslint', | |
rules: { | |
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }], | |
'import/no-unresolved': 0, | |
'no-underscore-dangle': 0, | |
'consistent-return': 0, | |
'no-plusplus': 'off', | |
'no-console': 0, | |
'no-param-reassign': ['error', { props: false }], | |
'newline-after-var': ['error', 'always'], | |
indent: ['error', 2, { SwitchCase: 1 }], | |
'array-element-newline': ['error', { multiline: true, minItems: 2 }], | |
// 'object-curly-newline': ['error', { multiline: true, minProperties: 3 }], | |
'array-bracket-newline': ['error', { minItems: 2 }], | |
'react/prop-types': 0, | |
'no-unused-expressions': 0, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment