-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.ts
More file actions
77 lines (75 loc) · 1.78 KB
/
Copy patheslint.config.ts
File metadata and controls
77 lines (75 loc) · 1.78 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
import styleMigrate from "@stylistic/eslint-plugin-migrate";
import { isentinel } from "./src/index.ts";
export default isentinel(
{
name: "project/options",
ignores: ["fixtures", "_fixtures", "src/generated", "**/*-generated.ts"],
namedConfigs: true,
oxlint: "native",
pnpm: true,
roblox: false,
test: {
vitest: {
typecheck: true,
},
},
type: "package",
typescript: {
erasableOnly: true,
},
},
{
name: "local/src-overrides",
files: ["src/**/*.ts"],
rules: {
// Native-only hybrid keeps the jsPlugin rules here, so their
// project-level disables live here too (the native counterparts
// stay in oxlint.config.ts).
"flawless/max-lines-per-function": "off",
"sonar/cognitive-complexity": "off",
},
},
{
name: "local/require-async-suffix",
files: ["src/**/*.ts", "test/**/*.ts", "scripts/**/*.ts"],
rules: {
"small-rules/require-async-suffix": "off",
},
},
{
name: "local/formatter",
files: ["src/formatter-agents.ts"],
rules: {
// ESLint resolves formatters by file name, so this one cannot be
// renamed to match its default export.
"sonar/file-name-differ-from-class": "off",
},
},
{
name: "local/pnpm-plugin",
files: ["pnpm-plugin/**/*.mjs"],
rules: {
// The plugin ships as plain JavaScript, so JSDoc carries its types.
"jsdoc/no-types": "off",
"jsdoc/no-undefined-types": "off",
},
},
{
name: "local/pnpm-plugin-manifest",
files: ["pnpm-plugin/package.json"],
rules: {
// pnpm loads the plugin by path; nothing imports it as a library.
"package-json/require-types": "off",
},
},
{
name: "local/style-migrate",
files: ["src/eslint/configs/*.ts"],
plugins: {
"style-migrate": styleMigrate,
},
rules: {
"style-migrate/migrate": ["error", { namespaceTo: "style" }],
},
},
);