Last active
August 1, 2019 19:51
-
-
Save deadkff01/5219221350e23fe68f35d3b5039278fa to your computer and use it in GitHub Desktop.
ESLint for nodejs
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: { | |
es6: true, | |
node: true, | |
jest: true | |
}, | |
extends: ['airbnb-base', 'prettier'], | |
plugins: ['prettier'], | |
globals: { | |
Atomics: 'readonly', | |
SharedArrayBuffer: 'readonly', | |
}, | |
parserOptions: { | |
ecmaVersion: 2018, | |
sourceType: 'module', | |
}, | |
rules: { | |
"prettier/prettier": "error", | |
"class-methods-use-this": "off", | |
"no-param-reassign": "off", | |
camelcase: "off", | |
"no-unused-vars": ["error", { "argsIgnorePattern": "next" }] | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment