-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
81 lines (81 loc) · 1.65 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
{
"root": true,
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"plugin:jsdoc/recommended"
],
"globals": {
"$PI": "readonly",
"process": "readonly",
"Utils": "readonly"
},
"plugins": [
"jsdoc"
],
"ignorePatterns": [
"com.dtrt.clicker.sdPlugin/bin/",
"com.dtrt.clicker.sdPlugin/libs/"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
"**/*.ts"
],
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"./tsconfig.json"
]
}
}
],
"rules": {
"array-bracket-spacing": ["error", "always"],
"block-spacing": ["error", "always"],
"class-methods-use-this": [
"off"
],
"comma-spacing": ["error"],
"func-names": ["warn", "as-needed"],
"global-require": 0,
"indent": ["warn", 2],
"linebreak-style": ["error", "unix"],
"max-len": [ "error", {
"code": 200,
"tabWidth": 4,
"ignoreUrls": true,
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}],
"no-console": "off",
"no-underscore-dangle": "off",
"no-use-before-define": "warn",
"no-param-reassign": [ "warn", {
"props": false
}],
"no-unused-expressions": 0,
"prefer-regex-literals": 0,
"valid-typeof": [
"off"
]
}
}