-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy patheslint.config.js
More file actions
64 lines (63 loc) · 1.82 KB
/
Copy patheslint.config.js
File metadata and controls
64 lines (63 loc) · 1.82 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
import antfu from "@antfu/eslint-config";
export default antfu({
formatters: {
prettierOptions: {
printWidth: 100,
trailingComma: "all",
singleQuote: false,
semi: true,
tabWidth: 2,
quoteProps: "as-needed",
jsxSingleQuote: false,
arrowParens: "always",
},
},
stylistic: false,
typescript: true,
name: "rule-engine",
react: true,
gitignore: true,
pnpm: false,
jsonc: false,
}).append({
ignores: [
"README.md",
"packages/*/README.md",
"packages/*/CHANGELOG.md",
"packages/*/dist",
"packages/*/dist-demo",
"packages/*/node_modules",
"packages/*/coverage",
"**/*.json",
],
files: ["./packages/**/*.ts", "./packages/**/*.tsx"],
rules: {
eqeqeq: "off",
"prefer-regex-literals": "off",
"unicorn/number-literal-case": "off",
"regexp/no-dupe-characters-character-class": "off",
"no-misleading-character-class": "off",
"regexp/no-misleading-unicode-character": "off",
"regexp/no-obscure-range": "off",
"react-refresh/only-export-components": "off",
"no-labels": "off",
"no-cond-assign": "off",
"no-async-promise-executor": "off",
"no-new": "off",
"no-console": "off",
"antfu/top-level-function": "off",
"ts/no-unsafe-function-type": "off",
"perfectionist/sort-imports": "off",
"ts/explicit-function-return-type": "off",
"regexp/no-unused-capturing-group": "off",
"node/prefer-global/buffer": "off",
"node/prefer-global/process": "off",
"no-throw-literal": "off",
"ts/ban-ts-comment": "off",
"ts/method-signature-style": "off",
"ts/no-non-null-asserted-optional-chain": "off",
"react-hooks-extra/no-direct-set-state-in-use-effect": "off",
"react/no-array-index-key": "off",
"perfectionist/sort-named-imports": ["error", { order: "desc" }],
},
});