Skip to content

Commit 0ff85e2

Browse files
committed
internal: Fix linting issues.
1 parent fd04eaf commit 0ff85e2

File tree

18 files changed

+228
-220
lines changed

18 files changed

+228
-220
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"packages/*"
1313
],
1414
"devDependencies": {
15-
"@babel/core": "^7.26.9",
15+
"@babel/core": "^7.26.10",
1616
"@moonrepo/cli": "^1.30.0",
1717
"@moonrepo/dev": "workspace:*",
1818
"eslint": "^9.22.0",

packages/babel-preset/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"babel-preset-solid": "^1.9.5"
4747
},
4848
"devDependencies": {
49-
"@babel/core": "^7.26.9"
49+
"@babel/core": "^7.26.10"
5050
},
5151
"funding": {
5252
"type": "ko-fi",

packages/dev/src/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function parseJson<T>(filePath: string): T {
1515
}
1616

1717
export function parseVersion(version: string): number {
18-
return Number.parseFloat(version.replace(/[^\d.]+/g, ''));
18+
return Number.parseFloat(version.replaceAll(/[^\d.]+/g, ''));
1919
}
2020

2121
// PACKAGE.JSON

packages/eslint-config/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"dependencies": {
3636
"@eslint/compat": "^1.2.7",
3737
"@moonrepo/dev": "^3.0.2",
38-
"@typescript-eslint/eslint-plugin": "^8.26.0",
39-
"@typescript-eslint/parser": "^8.26.0",
38+
"@typescript-eslint/eslint-plugin": "^8.26.1",
39+
"@typescript-eslint/parser": "^8.26.1",
4040
"eslint-config-airbnb-base": "^15.0.0",
4141
"eslint-config-prettier": "^10.1.1",
4242
"eslint-plugin-compat": "^6.0.2",

packages/eslint-config/src/async.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import promisePlugin from 'eslint-plugin-promise';
44

55
const config: eslint.Linter.Config = {
66
name: 'moon:async',
7+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
78
plugins: { promise: promisePlugin },
89
rules: {
910
'promise/param-names': 'error',

packages/eslint-config/src/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type eslint from 'eslint';
2-
import { CONFIGS_LIST, TESTS_LIST } from '@moonrepo/dev';
32
import compatPlugin from 'eslint-plugin-compat';
43
import globals from 'globals';
4+
import { CONFIGS_LIST, TESTS_LIST } from '@moonrepo/dev';
55

66
const config: eslint.Linter.Config = {
77
name: 'moon:browser',

packages/eslint-config/src/jest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type eslint from 'eslint';
2-
import { EXTENSIONS_PATTERN, TESTS_LIST } from '@moonrepo/dev';
32
import jestPlugin from 'eslint-plugin-jest';
3+
import { EXTENSIONS_PATTERN, TESTS_LIST } from '@moonrepo/dev';
44

55
const jestConfig: eslint.Linter.Config = {
66
name: 'moon:jest',

packages/eslint-config/src/module.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
import { builtinModules } from 'module';
22
import type eslint from 'eslint';
3+
// @ts-expect-error Not typed
4+
import * as importPlugin from 'eslint-plugin-import';
5+
import simpleImportSortPlugin from 'eslint-plugin-simple-import-sort';
36
import {
47
CONFIGS_LIST,
58
EXTENSIONS,
69
IGNORE_LIST,
710
NON_JS_REGEX,
811
TS_PATH_PREFIX_REGEX,
912
} from '@moonrepo/dev';
10-
// @ts-expect-error Not typed
11-
import * as importPlugin from 'eslint-plugin-import';
12-
import simpleImportSortPlugin from 'eslint-plugin-simple-import-sort';
1313

1414
const config: eslint.Linter.Config = {
1515
name: 'moon:module',
1616
plugins: {
17+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
1718
import: importPlugin,
1819
'simple-import-sort': simpleImportSortPlugin,
1920
},

packages/eslint-config/src/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type eslint from 'eslint';
2-
import nodePlugin from 'eslint-plugin-n';
32
import compatPlugin from 'eslint-plugin-compat';
3+
import nodePlugin from 'eslint-plugin-n';
44
import globals from 'globals';
55

66
const config: eslint.Linter.Config = {

packages/eslint-config/src/react.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type eslint from 'eslint';
2-
import { CASE_SENSITIVE, getPackageVersion } from '@moonrepo/dev';
32
// @ts-expect-error Not typed
43
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
54
import reactPlugin from 'eslint-plugin-react';
65
import reactHooksPlugin from 'eslint-plugin-react-hooks';
76
// @ts-expect-error Not typed
87
import reactPerfPlugin from 'eslint-plugin-react-perf';
8+
import { CASE_SENSITIVE, getPackageVersion } from '@moonrepo/dev';
99
import browserConfig from './browser';
1010

1111
const reactVersion = getPackageVersion('react');
@@ -21,9 +21,11 @@ const reactConfig: eslint.Linter.Config = {
2121
},
2222
},
2323
plugins: {
24+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
2425
'jsx-a11y': jsxA11yPlugin,
2526
react: reactPlugin,
2627
'react-hooks': reactHooksPlugin,
28+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
2729
'react-perf': reactPerfPlugin,
2830
},
2931
settings: {
@@ -302,7 +304,8 @@ const testsConfig: eslint.Linter.Config = {
302304
// to TSX files. Not the entire codebase.
303305
export default [
304306
browserConfig,
305-
jsxA11yPlugin.configs.recommended,
307+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
308+
jsxA11yPlugin.flatConfigs.recommended,
306309
reactConfig,
307310
hooksConfig,
308311
testsConfig,

0 commit comments

Comments
 (0)