Skip to content

Commit 2ca9033

Browse files
committed
chore: update eslint config
1 parent 341bd4b commit 2ca9033

File tree

4 files changed

+2075
-2017
lines changed

4 files changed

+2075
-2017
lines changed

eslint.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

eslint.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type { Linter } from 'eslint'
2+
3+
import eslintConfig from '@azat-io/eslint-config'
4+
5+
export default eslintConfig({
6+
perfectionist: true,
7+
typescript: true,
8+
vitest: true,
9+
node: true,
10+
}) satisfies Promise<Linter.Config[]>

package.json

Lines changed: 23 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"name": "vuepress-plugin-umami-analytics",
3-
"description": "VuePress plugin for using Umami analytics",
43
"version": "1.15.0",
5-
"type": "module",
4+
"description": "VuePress plugin for using Umami analytics",
65
"keywords": [
76
"analytics",
87
"umami",
@@ -11,56 +10,45 @@
1110
"vuepress-plugin"
1211
],
1312
"repository": "azat-io/vuepress-plugin-umami-analytics",
14-
"author": "Azat S. <[email protected]>",
1513
"license": "MIT",
16-
"engines": {
17-
"node": "^16.0.0 || >=18.0.0"
14+
"author": "Azat S. <[email protected]>",
15+
"type": "module",
16+
"exports": {
17+
".": "./dist/index.js"
1818
},
19+
"main": "./dist/index.js",
20+
"types": "./dist/index.d.ts",
21+
"files": [
22+
"dist"
23+
],
1924
"scripts": {
20-
"start": "tsc -b --watch",
21-
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true })\"",
2225
"build": "tsc -b",
26+
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true })\"",
2327
"prepare": "pnpm run build",
2428
"release": "pnpm release:check && pnpm release:version && pnpm release:publish",
2529
"release:changelog": "standard-version --infile changelog.md --same-file --skip.bump --skip.commit --skip.tag",
2630
"release:check": "pnpm test && pnpm build",
2731
"release:publish": "clean-publish",
2832
"release:version": "bumpp package.json --execute=\"pnpm release:changelog && git add changelog.md\" --commit \"build: publish v%s\" --tag --all",
29-
"test:js": "eslint .",
30-
"test:types": "tsc --noEmit --pretty",
31-
"test": "pnpm run /^test:/"
32-
},
33-
"files": [
34-
"dist"
35-
],
36-
"main": "./dist/index.js",
37-
"exports": {
38-
".": "./dist/index.js"
33+
"start": "tsc -b --watch",
34+
"test": "pnpm run /^test:/",
35+
"test:js": "eslint --flag unstable_ts_config .",
36+
"test:types": "tsc --noEmit --pretty"
3937
},
40-
"types": "./dist/index.d.ts",
4138
"dependencies": {
4239
"@vuepress/client": "2.0.0-rc.17",
4340
"@vuepress/core": "2.0.0-rc.17",
4441
"@vuepress/utils": "2.0.0-rc.17"
4542
},
4643
"devDependencies": {
47-
"@azat-io/eslint-config-typescript": "^1.10.0",
48-
"@typescript-eslint/eslint-plugin": "^8.7.0",
49-
"@typescript-eslint/parser": "^8.7.0",
50-
"bumpp": "^9.6.1",
51-
"clean-publish": "^5.0.0",
52-
"eslint": "^9.11.1",
53-
"eslint-plugin-import": "^2.30.0",
54-
"eslint-plugin-n": "^17.10.3",
55-
"eslint-plugin-node-import": "^1.0.4",
56-
"eslint-plugin-perfectionist": "^3.7.0",
57-
"eslint-plugin-prefer-arrow": "^1.2.3",
58-
"eslint-plugin-prefer-let": "^4.0.0",
59-
"eslint-plugin-promise": "^7.1.0",
60-
"eslint-plugin-sonarjs": "^2.0.2",
61-
"eslint-plugin-unicorn": "^55.0.0",
62-
"eslint-plugin-vitest": "^0.5.4",
44+
"@azat-io/eslint-config": "^2.4.0",
45+
"bumpp": "^9.8.1",
46+
"clean-publish": "^5.1.0",
47+
"eslint": "^9.16.0",
6348
"standard-version": "^9.5.0",
64-
"typescript": "^5.6.2"
49+
"typescript": "^5.7.2"
50+
},
51+
"engines": {
52+
"node": "^16.0.0 || >=18.0.0"
6553
}
6654
}

0 commit comments

Comments
 (0)