-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
83 lines (83 loc) · 2.2 KB
/
.eslintrc.json
File metadata and controls
83 lines (83 loc) · 2.2 KB
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
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["eslint:recommended", "prettier"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"globals": {
"StreamDeck": "readonly",
"CryptoTickerConfig": "readonly",
"CryptoTickerProviders": "readonly",
"CryptoTickerConnectionStates": "readonly",
"CryptoTickerCanvasRenderer": "readonly",
"CryptoTickerAlertManager": "readonly",
"CryptoTickerFormatters": "readonly",
"CryptoTickerState": "readonly",
"CryptoTickerSettingsManager": "readonly",
"CryptoTickerDefaults": "readonly",
"CryptoTickerPIProviders": "readonly"
},
"ignorePatterns": [
"node_modules/",
"com.courcelle.cryptoticker.streamDeckPlugin/",
"com.courcelle.cryptoticker-dev.sdPlugin/js/signalr_v8.0.0.min.js",
"com.courcelle.cryptoticker-dev.sdPlugin/libs/",
"com.courcelle.cryptoticker-dev.sdPlugin/dev/libs/",
"com.courcelle.cryptoticker-dev.sdPlugin/**/*.js"
],
"overrides": [
{
"files": ["**/*.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "./"
},
"plugins": ["@typescript-eslint"],
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/ban-ts-comment": [
"warn",
{ "ts-ignore": "allow-with-description" }
]
}
},
{
"files": ["**/__tests__/**/*.js"],
"env": {
"jest": true
}
},
{
"files": ["preview-server.js"],
"env": {
"node": true
}
},
{
"files": ["com.courcelle.cryptoticker-dev.sdPlugin/dev/**/*.js"],
"env": {
"browser": true
}
}
],
"rules": {
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"no-console": "off"
}
}