-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
36 lines (36 loc) · 761 Bytes
/
.eslintrc.js
File metadata and controls
36 lines (36 loc) · 761 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
module.exports = {
extends: ["eslint:recommended", "prettier"],
parserOptions: {
ecmaVersion: 2019,
sourceType: "module"
},
parser: "babel-eslint",
plugins: ["prettier", "babel", "import"],
env: {
es6: true,
browser: true
},
globals: {
module: true
},
rules: {
"babel/no-invalid-this": "error",
"babel/semi": "warn",
"babel/no-unused-expressions": "warn",
"prettier/prettier": [
"error",
{
semi: true,
useTabs: false,
tabWidth: 2,
printWidth: 80,
singleQuote: true,
bracketSpacing: true,
trailingComma: "all"
}
],
eqeqeq: ["error", "always"],
"no-var": ["error"],
"object-curly-spacing": ["error", "always"]
}
};