-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
42 lines (40 loc) · 762 Bytes
/
.eslintrc.js
File metadata and controls
42 lines (40 loc) · 762 Bytes
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
36
37
38
39
40
41
42
module.exports = {
root: true,
env: {
"commonjs": true,
// "es6": true,
"node": true,
// "browser":true,
"jest": true,
"mocha": true,
// "should": true
},
"parserOptions": {
"ecmaVersion": 2020,
"parser": "babel-eslint"
},
"plugins": [
"eslint-plugin-prettier"
],
extends: [
"eslint:recommended",
"eslint-config-prettier",
],
"rules": {
"no-console": "off",
"prettier/prettier": [
"error",
{
singleQuote: true,
semi: true,
useTabs: true,
tabWidth: 2,
trailingComma: 'all',
printWidth: 80,
bracketSpacing: true,
arrowParens: 'avoid',
},
]
},
"ignorePatterns": ["temp.js", "node_modules/"],
}