Skip to content

Commit

Permalink
Remove native support for plugin types (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Oct 22, 2023
1 parent c320ba4 commit 438c42a
Show file tree
Hide file tree
Showing 1,480 changed files with 3,114 additions and 55,555 deletions.
24 changes: 14 additions & 10 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,28 @@ module.exports = defineConfig({
'error',
{ default: 'array-simple', readonly: 'generic' },
],
'@typescript-eslint/ban-ts-comment': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'error',
'@typescript-eslint/naming-convention': [
'error',
{
format: ['PascalCase'],
selector: ['class', 'interface', 'typeAlias', 'typeParameter'],
selector: ['class', 'interface', 'typeAlias', 'enumMember'],
leadingUnderscore: 'forbid',
trailingUnderscore: 'forbid',
},
{
format: ['PascalCase'],
selector: ['typeParameter'],
prefix: ['T'],
leadingUnderscore: 'forbid',
trailingUnderscore: 'forbid',
},
],
'@typescript-eslint/no-inferrable-types': [
'error',
{ ignoreParameters: true },
],
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-unsafe-argument': 'error',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
Expand All @@ -58,17 +67,12 @@ module.exports = defineConfig({
'error',
{ blankLine: 'always', prev: 'block-like', next: '*' },
],
'@typescript-eslint/prefer-nullish-coalescing': 'warn',
'@typescript-eslint/prefer-optional-chain': 'warn',
'@typescript-eslint/prefer-readonly': 'warn',
'@typescript-eslint/prefer-regexp-exec': 'error',
'@typescript-eslint/restrict-template-expressions': [
'error',
{ allowNumber: true, allowBoolean: true },
],
'@typescript-eslint/typedef': [
'warn',
{ memberVariableDeclaration: true, variableDeclaration: true },
],
'@typescript-eslint/unbound-method': 'off',
},
overrides: [
{
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ jobs:
- name: Test types
run: pnpm run typecheck

- name: Test
run: pnpm run test

lint:
runs-on: ubuntu-latest
name: 'Lint: node-20, ubuntu-latest'
Expand Down
42 changes: 6 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
"clean": "rimraf coverage .eslintcache dist pnpm-lock.yaml node_modules",
"build": "tsup-node",
"format": "prettier --cache --write .",
"lint:run": "eslint --cache --cache-strategy content --report-unused-disable-directives .",
"lint:run": "eslint --cache --cache-strategy content --report-unused-disable-directives --fix .",
"lint": "run-s build lint:run",
"typecheck": "vitest typecheck",
"ts-check": "tsc",
"test": "vitest",
"coverage": "vitest run --coverage",
"generate:rules": "tsx ./scripts/generate-rule-files/cli.ts",
"generate:eslint-dts": "tsx ./scripts/generate-eslint-dts.ts",
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run build",
"preflight": "pnpm install && run-s format lint ts-check test typecheck"
"preflight": "pnpm install && run-s generate:eslint-dts format lint ts-check typecheck"
},
"type": "module",
"main": "dist/index.cjs",
Expand Down Expand Up @@ -65,9 +63,6 @@
"tsconfig.json"
],
"devDependencies": {
"@graphql-eslint/eslint-plugin": "~3.20.1",
"@intlify/eslint-plugin-vue-i18n": "~2.0.0",
"@poppinss/cliui": "~3.0.5",
"@types/eslint": "~8.44.3",
"@types/json-schema": "~7.0.13",
"@types/node": "~20.8.3",
Expand All @@ -78,45 +73,20 @@
"eslint": "~8.51.0",
"eslint-config-prettier": "~9.0.0",
"eslint-gitignore": "~0.1.0",
"eslint-plugin-deprecation": "~2.0.0",
"eslint-plugin-eslint-comments": "~3.2.0",
"eslint-plugin-import": "~2.28.1",
"eslint-plugin-inclusive-language": "~2.2.1",
"eslint-plugin-jsdoc": "~46.8.2",
"eslint-plugin-jsonc": "~2.9.0",
"eslint-plugin-jsx-a11y": "~6.7.1",
"eslint-plugin-mdx": "~2.2.0",
"eslint-plugin-n": "~16.1.0",
"eslint-plugin-node": "~11.1.0",
"eslint-plugin-prettier": "~5.0.0",
"eslint-plugin-promise": "~6.1.1",
"eslint-plugin-react": "~7.33.2",
"eslint-plugin-react-hooks": "~4.6.0",
"eslint-plugin-sonarjs": "~0.21.0",
"eslint-plugin-spellcheck": "~0.0.20",
"eslint-plugin-testing-library": "~6.0.2",
"eslint-plugin-unicorn": "~48.0.1",
"eslint-plugin-vitest": "~0.3.2",
"eslint-plugin-vue": "~9.17.0",
"eslint-plugin-vue-pug": "~0.6.0",
"eslint-plugin-yml": "~1.10.0",
"expect-type": "~0.17.3",
"graphql": "~16.8.1",
"json-schema": "~0.4.0",
"json-schema-to-ts": "~2.9.2",
"json-schema-to-typescript": "~13.1.1",
"npm-run-all": "~4.1.5",
"npm-run-all2": "~6.1.1",
"prettier": "3.0.3",
"prettier-plugin-organize-imports": "~3.2.3",
"rimraf": "~5.0.5",
"ts-dedent": "~2.2.0",
"tsup": "~7.2.0",
"tsx": "~3.13.0",
"typescript": "~5.2.2",
"vitest": "~0.34.6",
"vue-eslint-parser": "~9.3.2"
"vitest": "~0.34.6"
},
"packageManager": "pnpm@8.8.0",
"packageManager": "pnpm@8.9.2",
"engines": {
"node": ">=18.0.0",
"npm": ">=9.0.0",
Expand Down

0 comments on commit 438c42a

Please sign in to comment.