-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
41 lines (41 loc) · 1.06 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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:solid/typescript",
"plugin:unicorn/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true
},
"plugins": ["@typescript-eslint", "solid", "unicorn"],
"rules": {
// Causes false positives for Solid resources
"@typescript-eslint/no-misused-promises": "off",
"unicorn/prevent-abbreviations": [
"error",
{
"replacements": {
"env": false,
// Err is used for the Result type
"err": false,
// Fn or fn is used in callbacks, predicate and filter functions
"fn": false,
// props and params are distinct SolidJS concepts
"props": false,
"params": false
}
}
],
"unicorn/no-useless-undefined": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
]
}
}