Skip to content

Commit 77aeaec

Browse files
chore: remove ESLint configuration and ignore files
- Deleted .eslintignore and .eslintrc.cjs files as they are no longer needed. - Updated package.json lint scripts to simplify ESLint usage. - Cleaned up pnpm-lock.yaml by removing unused ESLint-related dependencies.
1 parent 145fc60 commit 77aeaec

File tree

7 files changed

+42
-101
lines changed

7 files changed

+42
-101
lines changed

.eslintignore

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

.eslintrc.cjs

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

eslint.config.mjs

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
* ESLint Flat Configuration
3+
* @see https://eslint.org/docs/latest/use/configure/configuration-files
4+
*
5+
* Migrated from .eslintrc.cjs to ESLint v9 flat config format.
6+
*/
7+
import tsPrefixer from 'eslint-config-ts-prefixer'
8+
import jsxA11y from 'eslint-plugin-jsx-a11y'
9+
import reactHooks from 'eslint-plugin-react-hooks'
10+
11+
export default [
12+
// ─────────────────────────────────────────────────────────────
13+
// Global ignores (migrated from .eslintignore)
14+
// ─────────────────────────────────────────────────────────────
15+
{
16+
ignores: [
17+
'.vscode/**',
18+
'.github/**',
19+
// Note: node_modules, build, dist, .git, .idea are already ignored by ts-prefixer
20+
],
21+
},
22+
23+
// ─────────────────────────────────────────────────────────────
24+
// Base configuration from eslint-config-ts-prefixer
25+
// Includes: TypeScript parser/plugin, eslint-plugin-import, projectService
26+
// ─────────────────────────────────────────────────────────────
27+
...tsPrefixer,
28+
29+
// ─────────────────────────────────────────────────────────────
30+
// Accessibility rules (jsx-a11y)
31+
// ─────────────────────────────────────────────────────────────
32+
jsxA11y.flatConfigs.recommended,
33+
34+
// ─────────────────────────────────────────────────────────────
35+
// React Hooks rules
36+
// ─────────────────────────────────────────────────────────────
37+
reactHooks.configs.flat['recommended-latest'],
38+
]

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"serve": "serve dist",
1717
"test": "vitest --run",
1818
"test:watch": "vitest",
19-
"lint": "eslint src --ext .ts,.tsx,.js,jsx.cjs",
20-
"lint:fix": "eslint src --ext .ts,.tsx,.js,jsx,cjs --fix",
19+
"lint": "eslint src",
20+
"lint:fix": "eslint src --fix",
2121
"typecheck": "tsc --noEmit",
2222
"prettier": "prettier --ignore-unknown --write .",
2323
"clean": "rimraf node_modules pnpm-lock.yaml dist",
@@ -58,11 +58,9 @@
5858
"eslint": "^9.39.2",
5959
"eslint-config-prettier": "^10.1.8",
6060
"eslint-config-ts-prefixer": "^4.1.0",
61-
"eslint-config-typescript": "^3.0.0",
6261
"eslint-import-resolver-typescript": "^4.4.4",
6362
"eslint-plugin-import": "^2.32.0",
6463
"eslint-plugin-jsx-a11y": "^6.10.2",
65-
"eslint-plugin-prettier": "^5.5.4",
6664
"eslint-plugin-react-hooks": "^7.0.1",
6765
"husky": "^9.1.7",
6866
"jsdom": "^27.3.0",

pnpm-lock.yaml

Lines changed: 0 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/services/docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { createApi } from '@reduxjs/toolkit/query/react'
21
import type { BaseQueryFn } from '@reduxjs/toolkit/query'
2+
import { createApi } from '@reduxjs/toolkit/query/react'
33
import axios from 'axios'
44
import type { AxiosRequestConfig, AxiosError } from 'axios'
55

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"vite.config.ts",
2323
"vitest.config.ts",
2424
"postcss.config.js",
25-
".eslintrc.cjs",
25+
"eslint.config.mjs",
2626
"./src",
2727
"./@types"
2828
]

0 commit comments

Comments
 (0)