diff --git a/.changeset/afraid-apples-hunt.md b/.changeset/afraid-apples-hunt.md new file mode 100644 index 00000000..6cda583d --- /dev/null +++ b/.changeset/afraid-apples-hunt.md @@ -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 diff --git a/package.json b/package.json index ebd59bdf..b96632c4 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "2.9.0", "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", @@ -49,7 +50,8 @@ "css" ], "files": [ - "dist" + "dist", + "dist/index.d.ts" ], "devDependencies": { "@changesets/cli": "^2.27.5", diff --git a/tsconfig.build.json b/tsconfig.build.json index a7dbcfe4..148be043 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -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. */, + "declaration": true } }