-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
41 lines (40 loc) · 1.08 KB
/
Copy patheslint.config.js
File metadata and controls
41 lines (40 loc) · 1.08 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
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,
type: "lib",
typescript: true,
name: "audit",
gitignore: true,
}).append({
ignores: ["README.md"],
files: ["./src/**/*.ts"],
rules: {
"no-console": "off",
"unicorn/prefer-node-protocol": "off",
"antfu/if-newline": "off",
"test/prefer-lowercase-title": "off",
"ts/ban-ts-comment": "off",
"unicorn/no-new-array": "off",
"test/prefer-hooks-in-order": "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",
"perfectionist/sort-named-imports": ["error", { order: "desc" }],
},
});