Skip to content

Commit 73f1e24

Browse files
authored
Merge branch 'jh-eslint-config-fixes' into cass-gm-1087
2 parents aa56ddb + dd849bc commit 73f1e24

File tree

4 files changed

+197
-392
lines changed

4 files changed

+197
-392
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"enzyme": "3.11.0",
8181
"enzyme-adapter-react-16": "1.15.7",
8282
"enzyme-to-json": "3.6.2",
83-
"eslint": "^8.11.0",
83+
"eslint": "^8.57.1",
8484
"eslint-plugin-jest": "^28.11.0",
8585
"eslint-plugin-jest-react": "^0.1.0",
8686
"eslint-plugin-jsx-a11y": "^6.10.2",
@@ -105,7 +105,7 @@
105105
"semver": "7.7.1",
106106
"syncpack": "^14.0.0-alpha.10",
107107
"turbo": "^1.1.2",
108-
"typescript": "4.4.2"
108+
"typescript": "5.8.3"
109109
},
110110
"packageManager": "[email protected]"
111111
}

packages/eslint-config/index.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ module.exports = {
1010

1111
extends: [
1212
'eslint:recommended',
13+
'plugin:import/errors',
14+
'plugin:import/typescript',
1315
'plugin:jsx-a11y/strict',
1416
'plugin:react/recommended',
1517
'plugin:react-hooks/recommended',
@@ -60,11 +62,25 @@ module.exports = {
6062
},
6163
},
6264
],
65+
'@typescript-eslint/no-unused-vars': [
66+
'error',
67+
{
68+
vars: 'all',
69+
varsIgnorePattern: '^_',
70+
args: 'after-used',
71+
argsIgnorePattern: '^_',
72+
caughtErrors: 'none',
73+
caughtErrorsIgnorePattern: '^_',
74+
destructuredArrayIgnorePattern: '^_',
75+
ignoreRestSiblings: true,
76+
},
77+
],
6378
},
6479
},
6580
],
6681

6782
plugins: [
83+
'import',
6884
'jest',
6985
'jsx-a11y',
7086
'no-only-tests',
@@ -117,7 +133,11 @@ module.exports = {
117133
'default-case': 'off',
118134
'func-names': 'off',
119135
'global-require': 'off',
120-
136+
'import/export': 'off',
137+
'import/extensions': 'off',
138+
'import/no-default-export': 'off',
139+
'import/no-unresolved': 'off',
140+
'import/prefer-default-export': 'off',
121141
'lines-between-class-members': 'off',
122142
'max-classes-per-file': 'off',
123143
'no-bitwise': 'off',

packages/eslint-config/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@typescript-eslint/parser": "^8.31.0",
2828
"eslint-config-prettier": "^10.1.2",
2929
"eslint-mdx": "^3.4.1",
30+
"eslint-plugin-import": "^2.25.2",
3031
"eslint-plugin-jest": "^28.11.0",
3132
"eslint-plugin-jsx-a11y": "^6.10.2",
3233
"eslint-plugin-no-only-tests": "^3.3.0",
@@ -37,7 +38,7 @@
3738
"yargs": "^17.7.2"
3839
},
3940
"devDependencies": {
40-
"eslint": "^8.11.0"
41+
"eslint": "^8.57.1"
4142
},
4243
"publishConfig": {
4344
"access": "public"

0 commit comments

Comments
 (0)