Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 438c42a

Browse files
authored
Remove native support for plugin types (#249)
1 parent c320ba4 commit 438c42a

File tree

1,480 files changed

+3114
-55555
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,480 files changed

+3114
-55555
lines changed

.eslintrc.cjs

+14-10
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,28 @@ module.exports = defineConfig({
3636
'error',
3737
{ default: 'array-simple', readonly: 'generic' },
3838
],
39-
'@typescript-eslint/ban-ts-comment': 'error',
4039
'@typescript-eslint/consistent-type-imports': 'error',
4140
'@typescript-eslint/explicit-module-boundary-types': 'error',
4241
'@typescript-eslint/naming-convention': [
4342
'error',
4443
{
4544
format: ['PascalCase'],
46-
selector: ['class', 'interface', 'typeAlias', 'typeParameter'],
45+
selector: ['class', 'interface', 'typeAlias', 'enumMember'],
4746
leadingUnderscore: 'forbid',
4847
trailingUnderscore: 'forbid',
4948
},
49+
{
50+
format: ['PascalCase'],
51+
selector: ['typeParameter'],
52+
prefix: ['T'],
53+
leadingUnderscore: 'forbid',
54+
trailingUnderscore: 'forbid',
55+
},
56+
],
57+
'@typescript-eslint/no-inferrable-types': [
58+
'error',
59+
{ ignoreParameters: true },
5060
],
51-
'@typescript-eslint/no-inferrable-types': 'off',
5261
'@typescript-eslint/no-unsafe-argument': 'error',
5362
'@typescript-eslint/no-unsafe-assignment': 'off',
5463
'@typescript-eslint/no-unsafe-call': 'off',
@@ -58,17 +67,12 @@ module.exports = defineConfig({
5867
'error',
5968
{ blankLine: 'always', prev: 'block-like', next: '*' },
6069
],
61-
'@typescript-eslint/prefer-nullish-coalescing': 'warn',
62-
'@typescript-eslint/prefer-optional-chain': 'warn',
63-
'@typescript-eslint/prefer-readonly': 'warn',
70+
'@typescript-eslint/prefer-regexp-exec': 'error',
6471
'@typescript-eslint/restrict-template-expressions': [
6572
'error',
6673
{ allowNumber: true, allowBoolean: true },
6774
],
68-
'@typescript-eslint/typedef': [
69-
'warn',
70-
{ memberVariableDeclaration: true, variableDeclaration: true },
71-
],
75+
'@typescript-eslint/unbound-method': 'off',
7276
},
7377
overrides: [
7478
{

.github/workflows/ci.yml

-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ jobs:
4444
- name: Test types
4545
run: pnpm run typecheck
4646

47-
- name: Test
48-
run: pnpm run test
49-
5047
lint:
5148
runs-on: ubuntu-latest
5249
name: 'Lint: node-20, ubuntu-latest'

package.json

+6-36
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@
66
"clean": "rimraf coverage .eslintcache dist pnpm-lock.yaml node_modules",
77
"build": "tsup-node",
88
"format": "prettier --cache --write .",
9-
"lint:run": "eslint --cache --cache-strategy content --report-unused-disable-directives .",
9+
"lint:run": "eslint --cache --cache-strategy content --report-unused-disable-directives --fix .",
1010
"lint": "run-s build lint:run",
1111
"typecheck": "vitest typecheck",
1212
"ts-check": "tsc",
13-
"test": "vitest",
14-
"coverage": "vitest run --coverage",
15-
"generate:rules": "tsx ./scripts/generate-rule-files/cli.ts",
13+
"generate:eslint-dts": "tsx ./scripts/generate-eslint-dts.ts",
1614
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run build",
17-
"preflight": "pnpm install && run-s format lint ts-check test typecheck"
15+
"preflight": "pnpm install && run-s generate:eslint-dts format lint ts-check typecheck"
1816
},
1917
"type": "module",
2018
"main": "dist/index.cjs",
@@ -65,9 +63,6 @@
6563
"tsconfig.json"
6664
],
6765
"devDependencies": {
68-
"@graphql-eslint/eslint-plugin": "~3.20.1",
69-
"@intlify/eslint-plugin-vue-i18n": "~2.0.0",
70-
"@poppinss/cliui": "~3.0.5",
7166
"@types/eslint": "~8.44.3",
7267
"@types/json-schema": "~7.0.13",
7368
"@types/node": "~20.8.3",
@@ -78,45 +73,20 @@
7873
"eslint": "~8.51.0",
7974
"eslint-config-prettier": "~9.0.0",
8075
"eslint-gitignore": "~0.1.0",
81-
"eslint-plugin-deprecation": "~2.0.0",
82-
"eslint-plugin-eslint-comments": "~3.2.0",
83-
"eslint-plugin-import": "~2.28.1",
84-
"eslint-plugin-inclusive-language": "~2.2.1",
85-
"eslint-plugin-jsdoc": "~46.8.2",
86-
"eslint-plugin-jsonc": "~2.9.0",
87-
"eslint-plugin-jsx-a11y": "~6.7.1",
88-
"eslint-plugin-mdx": "~2.2.0",
89-
"eslint-plugin-n": "~16.1.0",
90-
"eslint-plugin-node": "~11.1.0",
9176
"eslint-plugin-prettier": "~5.0.0",
92-
"eslint-plugin-promise": "~6.1.1",
93-
"eslint-plugin-react": "~7.33.2",
94-
"eslint-plugin-react-hooks": "~4.6.0",
95-
"eslint-plugin-sonarjs": "~0.21.0",
96-
"eslint-plugin-spellcheck": "~0.0.20",
97-
"eslint-plugin-testing-library": "~6.0.2",
98-
"eslint-plugin-unicorn": "~48.0.1",
99-
"eslint-plugin-vitest": "~0.3.2",
100-
"eslint-plugin-vue": "~9.17.0",
101-
"eslint-plugin-vue-pug": "~0.6.0",
102-
"eslint-plugin-yml": "~1.10.0",
10377
"expect-type": "~0.17.3",
104-
"graphql": "~16.8.1",
10578
"json-schema": "~0.4.0",
106-
"json-schema-to-ts": "~2.9.2",
10779
"json-schema-to-typescript": "~13.1.1",
108-
"npm-run-all": "~4.1.5",
80+
"npm-run-all2": "~6.1.1",
10981
"prettier": "3.0.3",
11082
"prettier-plugin-organize-imports": "~3.2.3",
11183
"rimraf": "~5.0.5",
112-
"ts-dedent": "~2.2.0",
11384
"tsup": "~7.2.0",
11485
"tsx": "~3.13.0",
11586
"typescript": "~5.2.2",
116-
"vitest": "~0.34.6",
117-
"vue-eslint-parser": "~9.3.2"
87+
"vitest": "~0.34.6"
11888
},
119-
"packageManager": "pnpm@8.8.0",
89+
"packageManager": "pnpm@8.9.2",
12090
"engines": {
12191
"node": ">=18.0.0",
12292
"npm": ">=9.0.0",

0 commit comments

Comments
 (0)