Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add rule types #735

Merged
merged 10 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/late-mirrors-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-svelte": minor
---

feat: add rule types
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
/docs-svelte-kit/src/routes/*.md
/docs-svelte-kit/src/routes/**/*.md
/docs-svelte-kit/src/app.html
/src/rule-types.d.ts

# JSONSchema bug?
/.devcontainer/devcontainer.json
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
"sveltejs"
],
"scripts": {
"build": "pnpm run build:meta && pnpm run build:ts",
"build": "pnpm run build:meta && pnpm run build:ts && pnpm run build:types",
"build:meta": "pnpm run ts ./tools/update-meta.ts",
"build:ts": "tsc --project ./tsconfig.build.json",
"build:types": "pnpm run ts ./tools/update-rule-types.ts",
"clean": "rimraf .nyc_output lib coverage build .svelte-kit svelte.config-dist.js",
"cover": "nyc --reporter=lcov pnpm run test",
"debug": "pnpm run mocha \"tests/src/**/*.ts\" --reporter dot --timeout 60000",
Expand Down Expand Up @@ -141,6 +142,7 @@
"eslint-plugin-svelte": "^2.35.1",
"eslint-plugin-yml": "^1.14.0",
"eslint-scope": "^8.0.1",
"eslint-typegen": "^0.2.1",
"eslint-visitor-keys": "^4.0.0",
"espree": "^10.0.1",
"estree-walker": "^3.0.3",
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import './rule-types.d.ts';
import type { RuleModule } from './types';
import { rules as ruleList } from './utils/rules';
import base from './configs/base';
Expand Down
Loading
Loading