-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy patheslint.config.js
More file actions
60 lines (59 loc) · 1.21 KB
/
Copy patheslint.config.js
File metadata and controls
60 lines (59 loc) · 1.21 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
// @ts-check
import rsEslint from "@rebeccastevens/eslint-config";
export default rsEslint(
{
projectRoot: import.meta.dirname,
mode: "library",
typescript: {
unsafe: "off",
},
formatters: true,
functional: false,
json: true,
markdown: true,
stylistic: true,
yaml: true,
ignores: ["tests/modules", "tests/types", "tests/consumer-ts7", "benchmark/data.json"],
},
{
rules: {
// waiting for ts type support.
"unicorn/no-instanceof-builtins": "off",
"unicorn/consistent-compound-words": "off",
"jsdoc/check-tag-names": [
"warn",
{
definedTags: ["warning"],
},
],
"jsdoc/require-returns": "off",
},
},
{
files: ["src/**/*.ts"],
rules: {
"ts/no-explicit-any": "error",
},
},
{
files: ["tests/utils.ts"],
rules: {
"jsdoc/require-jsdoc": "off",
},
},
{
files: ["tests/**/*.ts"],
rules: {
"ts/no-shadow": "off",
},
},
{
files: ["benchmark/**/*.ts"],
rules: {
"import/no-extraneous-dependencies": "off",
"jsdoc/require-jsdoc": "off",
"no-console": "off",
"node/no-unpublished-import": "off",
},
},
);