https://codeburst.io/eslint-everything-you-need-to-know-about-enforcing-a-style-guide-with-eslint-d4520c732dcb https://github.com/airbnb/javascript
Last active
September 25, 2020 14:23
-
-
Save FrankySnow/52b4b3b450faebd7fa520b932d4b9245 to your computer and use it in GitHub Desktop.
my ESLint config
This file contains hidden or 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
**/node_modules/** | |
!.*.js |
This file contains hidden or 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 = { | |
env: { | |
browser: true, | |
es2021: true, | |
}, | |
parserOptions: { | |
ecmaVersion: 12, | |
sourceType: 'module', | |
}, | |
extends: [ | |
'airbnb-base' // https://github.com/airbnb/javascript | |
], | |
rules: { | |
semi: ['error', 'never'], | |
'arrow-parens': 'off', | |
'no-undef': 'error', | |
'import/no-extraneous-dependencies': [ | |
'error', { | |
devDependencies: true, | |
optionalDependencies: false, | |
peerDependencies: false, | |
}], | |
'func-names': ['warn', 'as-needed'], | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment