Last active
December 4, 2019 00:48
-
-
Save MMortari/030a64f9fa03934a2580b6fee1f4ae86 to your computer and use it in GitHub Desktop.
ESLint config file
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
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
// 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 | |
} | |
}; |
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
{ | |
"singleQuote": true, | |
"trailingComma": "es5" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment