Skip to content

Instantly share code, notes, and snippets.

@Ruttmann
Created June 27, 2019 03:29
Show Gist options
  • Save Ruttmann/87f5697811812c7793e5f86c91885b27 to your computer and use it in GitHub Desktop.
Save Ruttmann/87f5697811812c7793e5f86c91885b27 to your computer and use it in GitHub Desktop.
ESLint configs for NodeJS projects.
module.exports = {
env: {
es6: true,
node: 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