-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy path.oxlintrc.json
More file actions
157 lines (157 loc) · 5.33 KB
/
Copy path.oxlintrc.json
File metadata and controls
157 lines (157 loc) · 5.33 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "import", "react", "oxc"],
"categories": {
"correctness": "error"
},
"env": {
"builtin": true,
"browser": true,
"es2026": true,
"node": true
},
"rules": {
"eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrors": "none",
"ignoreRestSiblings": true
}
],
"import/export": "off",
"react/no-unescaped-entities": "off",
"unicorn/no-new-array": "off",
"unicorn/no-empty-file": "off",
"unicorn/no-useless-spread": "off",
"oxc/erasing-op": "off",
"eslint/no-unsafe-optional-chaining": "off",
"react/rules-of-hooks": "error",
"typescript/no-unnecessary-condition": "error",
"typescript/switch-exhaustiveness-check": [
"error",
{ "considerDefaultExhaustiveForUnions": true }
],
"typescript/require-array-sort-compare": "off",
"typescript/consistent-type-imports": "error",
"typescript/consistent-type-exports": "error",
"typescript/dot-notation": "error",
"typescript/no-confusing-void-expression": "error",
"typescript/no-mixed-enums": "error",
"typescript/no-unnecessary-boolean-literal-compare": "error",
"typescript/no-unnecessary-template-expression": "error",
"typescript/no-unnecessary-type-arguments": "error",
"typescript/no-unnecessary-type-assertion": "error",
"typescript/no-unsafe-enum-comparison": "error",
"typescript/non-nullable-type-assertion-style": "error",
"typescript/only-throw-error": "error",
"typescript/prefer-find": "error",
"typescript/prefer-includes": "error",
"typescript/prefer-promise-reject-errors": "error",
"typescript/prefer-reduce-type-parameter": "error",
"typescript/prefer-regexp-exec": "error",
"typescript/prefer-return-this-type": "error",
"typescript/prefer-string-starts-ends-with": "error",
"typescript/related-getter-setter-pairs": "error",
"typescript/use-unknown-in-catch-callback-variable": "error",
"typescript/restrict-template-expressions": "off",
"typescript/no-base-to-string": "off",
"typescript/unbound-method": "off",
"typescript/no-misused-promises": "off",
"typescript/no-unsafe-member-access": "off",
"typescript/no-unsafe-argument": "off",
"typescript/no-unsafe-assignment": "off",
"typescript/no-unsafe-call": "off",
"typescript/no-unsafe-return": "off",
"typescript/restrict-plus-operands": "off",
"typescript/require-await": "off",
"typescript/prefer-nullish-coalescing": "off",
"typescript/no-unnecessary-type-parameters": "off",
"typescript/no-unnecessary-type-conversion": "off",
"typescript/prefer-optional-chain": "off",
"typescript/return-await": "off"
},
"overrides": [
{
"files": ["packages/sv-core/src/**/*.{ts,tsx}"],
"rules": {
"typescript/strict-boolean-expressions": "error"
}
}
],
"ignorePatterns": [
"**/build",
"**/dist*",
"**/esm",
"**/public",
"**/.astro",
"config/jest",
"agent-docs",
"infrastructure",
"jest.config.js",
"website/scripts/flip-review.mjs",
"products/jbrowse-web/browser-tests/memsticky.ts",
"products/jbrowse-web/browser-tests/memprofile.ts",
"products/jbrowse-web/browser-tests/memstress.ts",
"babel.config.cjs",
"eslint.config.mjs",
"products/**/webpack.config.js",
"products/**/webpack.config.mjs",
"**/umd_plugin.js",
"products/jbrowse-desktop/test/**",
"plugins/blat/esbuild.mjs",
"packages/core/src/util/map-obj",
"packages/core/src/util/nanoid.js",
"packages/core/src/util/nanoid.ts",
"packages/core/src/ReExports/material-ui-colors.js",
"packages/tree-sidebar/src/d3-hierarchy2",
"plugins/variants/src/d3-hierarchy2",
"plugins/wiggle/src/d3-hierarchy2",
"plugins/alignments/src/CramAdapter/testNA12878.mjs",
"products/jbrowse-desktop/test/specs/test.e2e.ts",
"products/jbrowse-desktop/wdio.conf.ts",
"scripts/analyze_cpuprof.ts",
"scripts/getSuggestions.js",
"scripts/ribbon-plot-pif.mjs",
"scripts/ribbon-plot.mjs",
"scripts/verify-hs1-mm39-dotplot.mjs",
"scripts/verify-hs1-mm39.mjs",
"packages/core/scripts/generateExports.mjs",
"plugins/data-management/scripts",
"products/jbrowse-desktop/scripts",
"products/jbrowse-desktop/linux-sandbox-fix.cjs",
"products/jbrowse-desktop/linux-sandbox-fix.js",
"products/jbrowse-desktop/sign.js",
"products/jbrowse-web/scripts",
"products/**/examples-site/scripts",
"products/jbrowse-img/src/bin.js",
"products/jbrowse-img/src/**/*.mjs",
"packages/core/src/util/p-limit.ts",
"aws",
"products/jbrowse-aws-lambda-functions",
"**/test_data",
"*_build",
"test/data",
"packages/__mocks__",
"integration.test.js",
"webpack",
"website/blog",
"website/docs",
"website/static",
"website/.astro",
"website/.prettierrc.mjs",
"website/astro.config.mjs",
"products/*/examples-site/astro.config.mjs",
"products/*/examples-site/**/*.astro",
"products/examples-site-shared/**/*.astro",
"docs",
"benchmarks",
"auth_test_utils",
"component_tests",
"embedded_demos",
"plugin-development-tools",
"products/jbrowse-cli/lib",
"products/jbrowse-cli/bundle"
]
}