-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
47 lines (46 loc) · 1.16 KB
/
.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
45
46
47
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
"react-app",
// "eslint:recommended",
// "plugin:@typescript-eslint/recommended",
],
rules: {
"no-var": "warn",
"prefer-const": "warn",
"no-bitwise": "warn",
"no-warning-comments": [
1,
{ terms: ["nocommit"], location: "anywhere" },
],
},
};
/* This was our tslint
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"curly": false,
"no-submodule-imports": false,
"no-empty": false,
"no-implicit-dependencies": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"no-var-requires": false,
"no-console": false,
"comment-format": false,
"member-ordering": false,
"no-string-literal": false,
"no-unused-variable": {
"severity": "warning"
},
"max-classes-per-file": {
"severity": "warning"
},
"no-var-keyword": {
"severity": "warning"
}
}
}
*/