-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.cjs
45 lines (43 loc) · 924 Bytes
/
.eslintrc.cjs
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
// @ts-check
// eslint-disable-next-line no-undef
module.exports = /** @type {import('@typescript-eslint/utils').TSESLint.Linter.Config} */ {
root: true,
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint",
"solid"
],
parserOptions: {
project: "./tsconfig.json",
// eslint-disable-next-line no-undef
tsconfigRootDir: __dirname,
ecmaFeatures: {
jsx: true
}
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:solid/typescript",
"@unocss"
],
rules: {
"brace-style": [
"error", "stroustrup"
],
"quotes": [
"error", "double"
],
"indent": [
"error", 2, { "SwitchCase": 1 }
],
"semi": [
"error", "always"
],
"jsx-quotes": [
"error", "prefer-double"
],
"n/no-callback-literal": "off",
"@typescript-eslint/no-extra-semi": "off"
}
};