Skip to content

Commit 8c84125

Browse files
committed
chore: update eslint config
1 parent 7722bb2 commit 8c84125

File tree

11 files changed

+1400
-760
lines changed

11 files changed

+1400
-760
lines changed

eslint.config.js

Lines changed: 0 additions & 29 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+
svelte: true,
9+
node: true,
10+
}) satisfies Promise<Linter.Config[]>

package.json

Lines changed: 38 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"name": "todoctor",
3-
"description": "CLI tool to analyze and report TODO comments in JavaScript and TypeScript Git repositories",
4-
"type": "module",
53
"version": "1.3.1",
6-
"repository": "azat-io/todoctor",
7-
"author": "Azat S. <[email protected]>",
8-
"license": "MIT",
4+
"description": "CLI tool to analyze and report TODO comments in JavaScript and TypeScript Git repositories",
95
"keywords": [
106
"analysis",
117
"fixme",
@@ -16,63 +12,48 @@
1612
"todo",
1713
"visualization"
1814
],
15+
"repository": "azat-io/todoctor",
16+
"license": "MIT",
17+
"author": "Azat S. <[email protected]>",
18+
"type": "module",
1919
"bin": {
2020
"todoctor": "./bin/todoctor.js"
2121
},
22+
"files": [
23+
"./bin",
24+
"./build",
25+
"./dist"
26+
],
2227
"scripts": {
23-
"start": "pnpm run /^start:/",
24-
"start:preview": "vite",
2528
"build": "pnpm run /^build:/",
2629
"build:lib": "cargo build --release && node \"./scripts/create-packages.js\" && node \"./scripts/build.js\"",
2730
"build:preview": "vite build",
31+
"ci:changelog": "changelogithub",
32+
"ci:clear": "clear-package-json package.json --output package.json",
2833
"docs:build": "DOCS=true vite build",
2934
"release": "pnpm release:check && pnpm release:version && pnpm release:git",
3035
"release:check": "pnpm test && pnpm run build",
3136
"release:git": "pnpm release:git:add && pnpm release:git:commit && pnpm release:git:tag && pnpm release:git:push",
3237
"release:git:add": "git add .",
3338
"release:git:commit": "git commit -m \"build: publish v$(node -p \"require('./package.json').version\")\"",
34-
"release:git:tag": "git tag v$(node -p \"require('./package.json').version\")",
3539
"release:git:push": "git push --follow-tags && git push origin v$(node -p \"require('./package.json').version\")",
40+
"release:git:tag": "git tag v$(node -p \"require('./package.json').version\")",
3641
"release:version": "changelogen --output changelog.md --release --no-commit --no-tag",
37-
"ci:changelog": "changelogithub",
38-
"ci:clear": "clear-package-json package.json --output package.json",
42+
"start": "pnpm run /^start:/",
43+
"start:preview": "vite",
3944
"test": "pnpm run /^test:/",
45+
"test:css": "stylelint **/*.{svelte,css}",
4046
"test:format": "pnpm run /^test:format:/",
4147
"test:format:js": "prettier --check \"**/*.{svelte,js,ts,css,json,md,yml}\"",
4248
"test:format:rust": "cargo fmt -- --check",
43-
"test:css": "stylelint **/*.{svelte,css}",
44-
"test:js": "eslint \"**/*.{svelte,js,ts}\"",
49+
"test:js": "eslint --flag unstable_ts_config .",
4550
"test:spelling": "cspell \"**/*\"",
4651
"test:svelte": "svelte-check",
4752
"test:types": "tsc --noEmit --pretty",
4853
"test:unit": "cargo test"
4954
},
50-
"os": [
51-
"darwin",
52-
"linux",
53-
"win32"
54-
],
55-
"cpu": [
56-
"x64",
57-
"arm64"
58-
],
59-
"publishConfig": {
60-
"access": "public"
61-
},
62-
"files": [
63-
"./bin",
64-
"./build",
65-
"./dist"
66-
],
67-
"optionalDependencies": {
68-
"@todoctor/darwin-arm64": "workspace:^",
69-
"@todoctor/darwin-x64": "workspace:^",
70-
"@todoctor/linux-arm64": "workspace:^",
71-
"@todoctor/linux-x64": "workspace:^",
72-
"@todoctor/win32-x64": "workspace:^"
73-
},
7455
"devDependencies": {
75-
"@azat-io/eslint-config-typescript": "^1.10.0",
56+
"@azat-io/eslint-config": "^2.2.0",
7657
"@azat-io/stylelint-config": "^0.1.1",
7758
"@commitlint/cli": "^19.5.0",
7859
"@commitlint/config-conventional": "^19.5.0",
@@ -84,27 +65,14 @@
8465
"@tanstack/table-core": "9.0.0-alpha.10",
8566
"@types/html-minifier-terser": "^7.0.2",
8667
"@types/node": "^22.8.7",
87-
"@typescript-eslint/eslint-plugin": "^8.13.0",
88-
"@typescript-eslint/parser": "^8.13.0",
8968
"browserslist": "^4.24.2",
9069
"changelogen": "^0.5.7",
9170
"changelogithub": "^0.13.11",
9271
"chart.js": "^4.4.6",
9372
"clean-publish": "^5.1.0",
9473
"cspell": "^8.15.7",
9574
"date-fns": "^4.1.0",
96-
"eslint": "^9.14.0",
97-
"eslint-plugin-import": "^2.31.0",
98-
"eslint-plugin-n": "^17.12.0",
99-
"eslint-plugin-node-import": "^1.0.4",
100-
"eslint-plugin-perfectionist": "^3.9.1",
101-
"eslint-plugin-prefer-arrow": "^1.2.3",
102-
"eslint-plugin-prefer-let": "^4.0.0",
103-
"eslint-plugin-promise": "^7.1.0",
104-
"eslint-plugin-sonarjs": "^2.0.4",
105-
"eslint-plugin-svelte": "^2.46.0",
106-
"eslint-plugin-unicorn": "^56.0.0",
107-
"eslint-plugin-vitest": "^0.5.4",
75+
"eslint": "^9.15.0",
10876
"html-minifier-terser": "^7.2.0",
10977
"lightningcss": "^1.28.1",
11078
"postcss-html": "^1.7.0",
@@ -119,11 +87,29 @@
11987
"svelte": "5.1.9",
12088
"svelte-chartjs": "^3.1.5",
12189
"svelte-check": "^4.0.5",
122-
"svelte-eslint-parser": "^0.43.0",
12390
"svelte-preprocess": "^6.0.3",
12491
"typescript": "^5.6.3",
12592
"vite": "^5.4.10",
12693
"vite-plugin-mock-dev-server": "^1.8.0",
12794
"vite-plugin-singlefile": "^2.0.3"
95+
},
96+
"optionalDependencies": {
97+
"@todoctor/darwin-arm64": "workspace:^",
98+
"@todoctor/darwin-x64": "workspace:^",
99+
"@todoctor/linux-arm64": "workspace:^",
100+
"@todoctor/linux-x64": "workspace:^",
101+
"@todoctor/win32-x64": "workspace:^"
102+
},
103+
"os": [
104+
"darwin",
105+
"linux",
106+
"win32"
107+
],
108+
"cpu": [
109+
"x64",
110+
"arm64"
111+
],
112+
"publishConfig": {
113+
"access": "public"
128114
}
129115
}

0 commit comments

Comments
 (0)