Skip to content

Instantly share code, notes, and snippets.

@MMortari
Last active December 4, 2019 00:48
Show Gist options
  • Save MMortari/030a64f9fa03934a2580b6fee1f4ae86 to your computer and use it in GitHub Desktop.
Save MMortari/030a64f9fa03934a2580b6fee1f4ae86 to your computer and use it in GitHub Desktop.
ESLint config file
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
// yarn add eslint prettier eslint-config-airbnb-base eslint-config-prettier eslint-plugin-import eslint-plugin-prettier
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",
"linebreak-style": 0,
"no-console": "off",
"class-methods-use-this": "off",
"no-param-reassign": "off",
"camelcase": "off",
"no-unused-vars": ["error", { "aegsIgnorePattern": "next" }]
},
env: {
"jest": true
}
};
{
"singleQuote": true,
"trailingComma": "es5"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment