Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b074b14

Browse files
dvellutoota-meshi
andauthored
feat(TS): add types so that rules can be used in TS eslint.config files (#394)
* feat(TS): add types so that rules can be used in TS eslint.config files * add changelog * Create afraid-apples-hunt.md * Revert "add changelog" This reverts commit 4e45430. * fix spaces * Apply suggestions from code review --------- Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
1 parent 1fb9414 commit b074b14

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

‎.changeset/afraid-apples-hunt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-vue-scoped-css": minor
3+
---
4+
5+
feat(TS): add types so that rules can be used in TS eslint.config files

‎package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "2.9.0",
44
"description": "ESLint plugin for Scoped CSS in Vue.js",
55
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
67
"scripts": {
78
"prebuild": "npm run -s clean",
89
"build": "tsc --project ./tsconfig.build.json",
@@ -49,7 +50,8 @@
4950
"css"
5051
],
5152
"files": [
52-
"dist"
53+
"dist",
54+
"dist/index.d.ts"
5355
],
5456
"devDependencies": {
5557
"@changesets/cli": "^2.27.5",

‎tsconfig.build.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "./tsconfig.json",
33
"exclude": ["tests/**/*", "tools/**/*"],
44
"compilerOptions": {
5-
"removeComments": true /* Do not emit comments to output. */
5+
"removeComments": true /* Do not emit comments to output. */,
6+
"declaration": true
67
}
78
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /