-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
.eslintrc.json
69 lines (69 loc) · 1.99 KB
/
.eslintrc.json
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
{
"extends": ["@nkzw", "plugin:playwright/recommended"],
"ignorePatterns": [
"dist",
"build",
"playwright-report",
"test-results",
"syntax-error.tsx"
],
"overrides": [
{
"files": ["**/create-triplex-project/templates/**"],
"rules": {
"header/header": "off"
}
},
{
"files": [
"./apps/vscode/**",
"./packages/@triplex/bridge/**",
"./packages/@triplex/editor/**",
"./packages/@triplex/lib/**",
"./packages/@triplex/renderer-r3f/**",
"./packages/@triplex/renderer-react/**",
"./packages/@triplex/ux/**",
"./packages/@triplex/ws/**"
],
"rules": {
"react-compiler/react-compiler": "error"
}
}
],
"plugins": ["react-compiler", "header"],
"rules": {
"@nkzw/no-instanceof": "off",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"disallowTypeAnnotations": false,
"fixStyle": "inline-type-imports"
}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-unnecessary-type-constraint": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "ignoreRestSiblings": true }
],
"brace-style": "off",
"header/header": ["error", "scripts/header.js"],
"import/no-extraneous-dependencies": "off",
"import/no-namespace": "off",
"import/no-unresolved": "off",
"no-extra-parens": "off",
"no-inner-declarations": "off",
"no-unused-expressions": "off",
"playwright/no-focused-test": "off",
"playwright/no-force-option": "off",
"playwright/no-standalone-expect": "off",
"prefer-const": "off",
"react/no-unknown-property": "off",
"space-before-function-paren": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/prefer-ternary": "off",
"unicorn/prefer-top-level-await": "off"
}
}