-
Notifications
You must be signed in to change notification settings - Fork 459
/
.eslintrc
120 lines (120 loc) · 3.5 KB
/
.eslintrc
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"parser": "@babel/eslint-parser",
"plugins": ["prettier"],
"extends": ["plugin:prettier/recommended"],
"overrides": [
{
"files": ["*.ts"],
"parser": "@typescript-eslint/parser",
"rules": {
"no-unused-vars": "off",
},
},
{
"files": ["*.d.ts"],
"parser": "@typescript-eslint/parser",
"rules": {
"no-unused-vars": "off",
"no-var": "off",
"no-useless-constructor": "off",
},
},
],
"env": {
"es6": true,
"browser": true,
"jquery": true,
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
},
},
"rules": {
"prefer-const": "warn",
"no-var": "warn",
"eqeqeq": 0,
"no-const-assign": "error",
"no-new-object": "warn",
"object-shorthand": "warn",
"no-prototype-builtins": "warn",
"no-array-constructor": "warn",
"prefer-template": "warn",
"no-useless-escape": "warn",
"wrap-iife": ["warn", "inside"],
"no-loop-func": "warn",
"no-new-func": "warn",
"prefer-rest-params": "warn",
"prefer-arrow-callback": "warn",
"template-curly-spacing": "warn",
"no-param-reassign": ["warn", { "props": false }],
"prefer-spread": "warn",
"arrow-spacing": "warn",
"arrow-body-style": ["warn", "as-needed"],
"no-useless-constructor": "warn",
"no-dupe-class-members": "warn",
"no-duplicate-imports": "warn",
"dot-notation": "warn",
"no-undef": ["warn", { "typeof": true }],
"one-var": ["warn", "never"],
"no-multi-assign": "warn",
"no-case-declarations": "warn",
"no-nested-ternary": "warn",
"no-unneeded-ternary": "warn",
"brace-style": "warn",
"space-before-blocks": [
"warn",
{ "functions": "always", "keywords": "always", "classes": "always" },
],
"space-infix-ops": "warn",
"eol-last": ["warn", "always"],
"no-whitespace-before-property": "warn",
"padded-blocks": ["warn", "never"],
"space-in-parens": ["warn", "never"],
"array-bracket-spacing": ["warn", "never"],
"object-curly-spacing": ["warn", "always"],
"max-len": ["warn", { "code": 100 }],
"comma-style": ["warn", "last"],
"semi": ["warn"],
"radix": "warn",
"camelcase": ["warn", { "properties": "never" }],
"new-cap": ["warn", { "capIsNewExceptionPattern": "^Entry." }],
"curly": "warn",
"keyword-spacing": "warn",
},
"globals": {
"$": true,
"_": true,
"arcon": true,
"goog": true,
"acorn": true,
"createjs": true,
"Entry": true,
"filbert": true,
"Blockly": true,
"BigNumber": true,
"Lang": true,
"context": true,
"popup": true,
"WebFont": true,
"CanvasInput": true,
"EntryStatic": true,
"EaselHandle": true,
"ndgmr": true,
"Ntry": true,
"Snap": true,
"mina": true,
"Touch": true,
"io": true,
"LC": true,
"ActiveXObject": true,
"CodeMirror": true,
"entrylms": true,
"require": true,
"module": true,
"Symbol": true,
"process": true,
},
}