Skip to content

feat(TS): add types so that rules can be used in TS eslint.config files #394

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

Merged
merged 6 commits into from
May 21, 2025
Merged
Show file tree
Hide file tree
Changes from 3 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/afraid-apples-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-vue-scoped-css": minor
---

feat(TS): add types so that rules can be used in TS eslint.config files
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# eslint-plugin-vue-scoped-css

## 2.9.01

### Minor Changes

- feat: Add TS declarations to bundle ([#394](https://github.com/future-architect/eslint-plugin-vue-scoped-css/pull/394))

## 2.9.0

### Minor Changes
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "eslint-plugin-vue-scoped-css",
"version": "2.9.0",
"version": "2.9.1",
"description": "ESLint plugin for Scoped CSS in Vue.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"prebuild": "npm run -s clean",
"build": "tsc --project ./tsconfig.build.json",
Expand Down Expand Up @@ -49,7 +50,8 @@
"css"
],
"files": [
"dist"
"dist",
"dist/index.d.ts"
],
"devDependencies": {
"@changesets/cli": "^2.27.5",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./tsconfig.json",
"exclude": ["tests/**/*", "tools/**/*"],
"compilerOptions": {
"removeComments": true /* Do not emit comments to output. */
"removeComments": true, /* Do not emit comments to output. */

Check failure on line 5 in tsconfig.build.json

View workflow job for this annotation

GitHub Actions / lint

Replace `,·/*·Do·not·emit·comments·to·output.·*/` with `·/*·Do·not·emit·comments·to·output.·*/,`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you fix the formatting issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me try from linux

"declaration": true
}
}
Loading