-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
42 lines (40 loc) · 1.1 KB
/
oxlint.config.ts
File metadata and controls
42 lines (40 loc) · 1.1 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
import { defineConfig } from "oxlint";
import stylistic from "@stylistic/eslint-plugin";
import type { DummyRuleMap } from "oxlint";
export default defineConfig({
options: {
typeAware: true
},
ignorePatterns: [
"coverage/**"
],
plugins: [
"typescript",
"import",
"jsdoc",
"node",
"promise"
],
jsPlugins: [
"@stylistic/eslint-plugin"
],
rules: {
...stylistic.configs.customize({
arrowParens: true,
braceStyle: "1tbs",
commaDangle: "never",
quotes: "double",
semi: true
}).rules as DummyRuleMap,
"@stylistic/array-bracket-newline": ["error", "consistent"],
"@stylistic/curly-newline": ["error", { consistent: true }],
"@stylistic/function-paren-newline": ["error", "consistent"],
"@stylistic/implicit-arrow-linebreak": ["error"],
"@stylistic/newline-per-chained-call": ["error"],
"@stylistic/no-extra-semi": ["error"],
"@stylistic/object-curly-newline": ["error", { consistent: true }],
"@stylistic/semi-style": ["error"],
"@stylistic/switch-colon-spacing": ["error"],
"curly": ["error", "all"]
}
});