Skip to content

Instantly share code, notes, and snippets.

@FrankySnow
Last active September 25, 2020 14:23
Show Gist options
  • Save FrankySnow/52b4b3b450faebd7fa520b932d4b9245 to your computer and use it in GitHub Desktop.
Save FrankySnow/52b4b3b450faebd7fa520b932d4b9245 to your computer and use it in GitHub Desktop.
my ESLint config
**/node_modules/**
!.*.js
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