generated from EstebanRinaldi/nodejs-dev-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
35 lines (35 loc) · 1.18 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
// https://eslint.org/docs/user-guide/configuring/language-options#specifying-environments
"env": {
"commonjs": true,
"es2021": true,
"node": true,
"jest": true
},
"extends": [
// Airbnb's base JS .eslintrc (without React plugins).
// https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base
// Style Guide: https://github.com/airbnb/javascript
"airbnb-base",
// Turns off all rules that are unnecessary or might conflict with Prettier.
// https://github.com/prettier/eslint-config-prettier
// Make sure to put it last, so it gets the chance to override other configs.
"prettier"
],
// https://www.npmjs.com/package/@babel/eslint-parser
"parser": "@babel/eslint-parser",
// https://eslint.org/docs/user-guide/configuring/language-options#specifying-parser-options
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module" //,
// "allowImportExportEverywhere": false,
// "ecmaFeatures": {
// "globalReturn": false
// }
},
// "plugins": ["@babel"],
"rules": {
// Resuelve https://github.com/airbnb/javascript/issues/2030
"import/extensions": ["error", "ignorePackages"]
}
}