Skip to content

Commit 3a4f1d7

Browse files
authored
chore: update linting (#845)
1 parent 5cafd64 commit 3a4f1d7

File tree

4 files changed

+907
-157
lines changed

4 files changed

+907
-157
lines changed

eslint.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ import tseslint from 'typescript-eslint';
1111
export default tseslint.config(
1212
// Configs:
1313
js.configs.recommended,
14-
eslintPluginImport.flatConfigs
15-
? eslintPluginImport.flatConfigs.recommended // TODO: use typescript config
16-
: {},
14+
eslintPluginImport.flatConfigs.typescript,
1715
eslintPluginJest.configs['flat/recommended'],
1816
eslintPluginN.configs['flat/recommended'],
1917
eslintPluginPrettierRecommended,
@@ -134,7 +132,7 @@ export default tseslint.config(
134132
languageOptions: {
135133
parserOptions: {
136134
projectService: true,
137-
tsconfigRootDir: import.meta.dirname,
135+
tsconfigRootDir: import.meta.dirname, // eslint-disable-line n/no-unsupported-features/node-builtins
138136
},
139137
},
140138

lib/package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class Package {
7070
}
7171

7272
if (this.pnpmWorkspacePackages) {
73-
// eslint-disable-next-line unicorn/no-instanceof-array -- using Array.isArray() loses type information about the array.
73+
// eslint-disable-next-line unicorn/no-instanceof-builtins -- using Array.isArray() loses type information about the array.
7474
if (!(this.pnpmWorkspacePackages instanceof Array)) {
7575
throw new TypeError(
7676
'pnpm-workspace.yaml `packages` is not a string array.',

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,20 @@
5757
"type-fest": "^4.30.0"
5858
},
5959
"devDependencies": {
60-
"@eslint/js": "^9.0.0",
60+
"@eslint/js": "^9.29.0",
6161
"@release-it-plugins/lerna-changelog": "^7.0.0",
6262
"@types/edit-json-file": "^1.7.0",
6363
"@types/jest": "^29.5.1",
6464
"@types/mock-fs": "^4.13.1",
6565
"@types/node": "^24.0.2",
6666
"@types/semver": "^7.5.0",
67-
"eslint": "^9.0.0",
68-
"eslint-config-prettier": "^10.0.1",
69-
"eslint-plugin-import": "^2.0.0",
67+
"eslint": "^9.29.0",
68+
"eslint-config-prettier": "^10.1.5",
69+
"eslint-plugin-import": "^2.32.0",
7070
"eslint-plugin-jest": "^28.0.0",
71-
"eslint-plugin-n": "^17.0.0",
72-
"eslint-plugin-prettier": "^5.2.1",
73-
"eslint-plugin-unicorn": "^56.0.0",
71+
"eslint-plugin-n": "^17.2.0",
72+
"eslint-plugin-prettier": "^5.5.0",
73+
"eslint-plugin-unicorn": "^59.0.0",
7474
"jest": "^29.5.0",
7575
"markdownlint-cli": "^0.44.0",
7676
"mock-fs": "^5.4.1",

0 commit comments

Comments
 (0)