-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
44 lines (41 loc) · 900 Bytes
/
.eslintrc.js
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
43
44
module.exports = {
/* your base configuration of choice */
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
],
parser: "babel-eslint",
parserOptions: {
sourceType: "module",
},
plugins: ["@typescript-eslint"],
ignorePatterns: ["node_modules/**", "dist/**"],
env: {
browser: true,
node: true,
},
globals: {
__static: true,
},
rules: {
/**
* Having a semicolon helps the optimizer interpret your code correctly.
* This avoids rare errors in optimized code.
*/
semi: ["error", "always"],
/**
* This will make the history of changes in the hit a little cleaner
*/
"comma-dangle": ["warn", "always-multiline"],
/**
* Just for beauty
*/
quotes: ["warn", "single"],
},
settings: {
react: {
version: "detect",
},
},
};