forked from arnog/mathlive
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
77 lines (70 loc) · 2.36 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"env": {
"browser": true,
// "commonjs": true,
"es6": true,
"node": true,
"amd": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": false
}
},
"extends": [
// Uses the recommended rules for Typescript
"plugin:@typescript-eslint/recommended",
// Disable rules that conflict with prettier
// See https://prettier.io/docs/en/integrating-with-linters.html
"plugin:prettier/recommended"
],
// See http://eslint.org/docs/rules/
"rules": {
// Note:
// "off" or 0 - turn the rule off
// "warn" or 1 - turn the rule on as a warning (doesn’t affect exit code)
// "error" or 2 - turn the rule on as an error (exit code is 1 when triggered)
"no-const-assign": "warn",
"no-this-before-super": "warn",
// "no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"constructor-super": "warn",
"block-scoped-var": "error",
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "always"],
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"prefer-const": "warn",
"valid-typeof": "error",
"consistent-return": "error",
"curly": ["warn", "multi-line"],
"eqeqeq": ["error", "smart"],
"guard-for-in": "warn",
// "max-len": "warn",
"new-cap": "warn",
"no-bitwise": "off",
"no-console": "off",
"no-else-return": "warn",
"no-eval": "error",
"no-fallthrough": "error",
"no-invalid-this": "warn",
"no-lone-blocks": "warn",
"no-return-assign": ["warn", "always"],
"no-self-compare": "error",
"no-sequences": "warn",
"no-unneeded-ternary": "warn",
"no-unused-expressions": "warn",
"no-useless-call": "warn",
"no-var": "error",
"no-with": "error",
// "vars-on-top": "warn",
"no-delete-var": "warn",
"no-mixed-spaces-and-tabs": ["warn", "smart-tabs"],
"require-jsdoc": "off",
"space-infix-ops": ["error", { "int32Hint": false }],
"no-trailing-spaces": [1, { "skipBlankLines": true }]
}
}