Skip to content

Commit 9d38cff

Browse files
committed
Fix lint command
1 parent 66009ec commit 9d38cff

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
"test": "yarn test:packages",
5555
"format": "prettier --config prettier.config.mjs --write .",
5656
"format-check": "prettier --config prettier.config.mjs --check .",
57+
"lint": "eslint --flag unstable_ts_config -c eslint.config.mts",
58+
"lint-fix": "eslint --flag unstable_ts_config -c eslint.config.mts --fix",
5759
"install": "yarn build-configs",
5860
"build-configs": "yarn workspaces foreach -Atip --include '@reduxjs/*config' run build",
5961
"build:examples": "yarn workspaces foreach -A --include '@reduxjs/*' --include '@examples-query-react/*' --include '@examples-action-listener/*' -vtp run build",

packages/rtk-codemods/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"scripts": {
55
"format": "prettier --config prettier.config.mjs --write .",
66
"format-check": "prettier --config prettier.config.mjs --check .",
7-
"lint": "eslint .",
7+
"lint": "eslint --flag unstable_ts_config -c eslint.config.mts",
8+
"lint-fix": "eslint --flag unstable_ts_config -c eslint.config.mts --fix",
89
"test": "vitest --run",
910
"test:watch": "vitest --watch",
1011
"test:coverage": "vitest --coverage"

packages/toolkit/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@
9898
"build-only": "yarn clean && yarn run-build",
9999
"format": "prettier --config prettier.config.mjs --write .",
100100
"format-check": "prettier --config prettier.config.mjs --check .",
101-
"lint": "eslint src examples",
101+
"lint": "eslint --flag unstable_ts_config -c eslint.config.mts",
102+
"lint-fix": "eslint --flag unstable_ts_config -c eslint.config.mts --fix",
102103
"test": "vitest --typecheck --run ",
103104
"test:watch": "vitest --watch",
104105
"type-tests": "yarn tsc -p tsconfig.test.json --noEmit",

0 commit comments

Comments
 (0)