Skip to content

Commit 8cd3aa5

Browse files
brijeshb42Brijesh Bittu
andauthored
[code-infra] Bump eslint to v9 (#46222)
Co-authored-by: Brijesh Bittu <[email protected]>
1 parent 024ee3d commit 8cd3aa5

File tree

4 files changed

+337
-159
lines changed

4 files changed

+337
-159
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ module.exports = /** @type {Config} */ ({
8282
'eslint-plugin-material-ui',
8383
'eslint-plugin-react-hooks',
8484
'@typescript-eslint',
85-
'eslint-plugin-filenames',
85+
'eslint-plugin-consistent-default-export-name',
8686
...(ENABLE_REACT_COMPILER_PLUGIN ? ['eslint-plugin-react-compiler'] : []),
8787
],
8888
settings: {
@@ -390,7 +390,7 @@ module.exports = /** @type {Config} */ ({
390390
'docs/data/**/{css,system,tailwind}/*',
391391
],
392392
rules: {
393-
'filenames/match-exported': ['error'],
393+
'consistent-default-export-name/default-export-match-filename': ['error'],
394394
},
395395
},
396396
{

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"template:screenshot": "cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js\" ./docs/scripts/generateTemplateScreenshots",
4444
"install:codesandbox": "pnpm install --no-frozen-lockfile",
4545
"jsonlint": "node ./scripts/jsonlint.mjs",
46-
"eslint": "eslint . --cache --report-unused-disable-directives --ext .js,.ts,.tsx --max-warnings 0",
47-
"eslint:ci": "eslint . --report-unused-disable-directives --ext .js,.ts,.tsx --max-warnings 0",
46+
"eslint": "ESLINT_USE_FLAT_CONFIG=false eslint . --cache --report-unused-disable-directives --ext .js,.ts,.tsx --max-warnings 0",
47+
"eslint:ci": "ESLINT_USE_FLAT_CONFIG=false eslint . --report-unused-disable-directives --ext .js,.ts,.tsx --max-warnings 0",
4848
"stylelint": "stylelint --reportInvalidScopeDisables --reportNeedlessDisables \"docs/**/*.?(c|m)[jt]s?(x)\" --ignore-path .gitignore",
4949
"markdownlint": "markdownlint-cli2 \"**/*.md\"",
5050
"valelint": "pnpm vale sync && git ls-files | grep -h \".md$\" | xargs pnpm vale --filter='.Level==\"error\"'",
@@ -142,8 +142,8 @@
142142
"@types/node": "^20.17.50",
143143
"@types/react": "^19.1.6",
144144
"@types/yargs": "^17.0.33",
145-
"@typescript-eslint/eslint-plugin": "^8.31.1",
146-
"@typescript-eslint/parser": "^8.31.1",
145+
"@typescript-eslint/eslint-plugin": "^8.32.1",
146+
"@typescript-eslint/parser": "^8.32.1",
147147
"@vitejs/plugin-react": "^4.4.1",
148148
"@vitest/browser": "^3.1.4",
149149
"@vitest/coverage-v8": "^3.1.3",
@@ -161,13 +161,13 @@
161161
"cpy-cli": "^5.0.0",
162162
"cross-env": "^7.0.3",
163163
"danger": "^13.0.4",
164-
"eslint": "^8.57.1",
164+
"eslint": "^9.27.0",
165165
"eslint-config-airbnb": "^19.0.4",
166166
"eslint-config-airbnb-base": "^15.0.0",
167167
"eslint-config-prettier": "^10.1.5",
168168
"eslint-import-resolver-webpack": "^0.13.10",
169169
"eslint-plugin-babel": "^5.3.1",
170-
"eslint-plugin-filenames": "^1.3.2",
170+
"eslint-plugin-consistent-default-export-name": "^0.0.15",
171171
"eslint-plugin-import": "^2.31.0",
172172
"eslint-plugin-jsx-a11y": "^6.10.2",
173173
"eslint-plugin-material-ui": "workspace:^",

packages/mui-material/src/useAutocomplete/useAutocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use client';
2-
/* eslint-disable no-constant-condition */
2+
33
import * as React from 'react';
44
import setRef from '@mui/utils/setRef';
55
import useEventCallback from '@mui/utils/useEventCallback';

0 commit comments

Comments
 (0)