|
102 | 102 | "@babel/preset-env": "^7.0.0", |
103 | 103 | "@jupyterlab/builder": "^4.0.0", |
104 | 104 | "@jupyterlab/testutils": "^4.0.0", |
| 105 | + "@stylistic/eslint-plugin": "^3.0.1", |
105 | 106 | "@testing-library/jest-dom": "^6.1.4", |
106 | 107 | "@testing-library/react": "^14.0.0", |
107 | 108 | "@testing-library/user-event": "^14.5.1", |
|
114 | 115 | "@types/react-virtualized-auto-sizer": "^1.0.0", |
115 | 116 | "@types/react-window": "^1.8.2", |
116 | 117 | "@types/resize-observer-browser": "^0.1.7", |
117 | | - "@typescript-eslint/eslint-plugin": "^6.1.0", |
118 | | - "@typescript-eslint/parser": "^6.1.0", |
| 118 | + "@typescript-eslint/eslint-plugin": "^8.0.0", |
| 119 | + "@typescript-eslint/parser": "^8.0.0", |
119 | 120 | "all-contributors-cli": "^6.14.0", |
120 | 121 | "css-loader": "^6.7.1", |
121 | | - "eslint": "^8.36.0", |
| 122 | + "eslint": "^8.56.0", |
122 | 123 | "eslint-config-prettier": "^8.8.0", |
123 | 124 | "eslint-plugin-prettier": "^5.0.0", |
124 | 125 | "eslint-plugin-react": "^7.33.0", |
|
210 | 211 | "sourceType": "module" |
211 | 212 | }, |
212 | 213 | "plugins": [ |
| 214 | + "@stylistic", |
213 | 215 | "@typescript-eslint" |
214 | 216 | ], |
215 | 217 | "rules": { |
|
235 | 237 | "@typescript-eslint/no-explicit-any": "off", |
236 | 238 | "@typescript-eslint/no-namespace": "off", |
237 | 239 | "@typescript-eslint/no-use-before-define": "off", |
238 | | - "@typescript-eslint/quotes": [ |
| 240 | + "@stylistic/quotes": [ |
239 | 241 | "error", |
240 | 242 | "single", |
241 | 243 | { |
|
248 | 250 | "all" |
249 | 251 | ], |
250 | 252 | "eqeqeq": "error", |
| 253 | + "no-restricted-imports": [ |
| 254 | + "error", |
| 255 | + { |
| 256 | + "paths": [ |
| 257 | + { |
| 258 | + "name": "@mui/icons-material", |
| 259 | + "message": |
| 260 | + "Please import icons using path imports, e.g. import AddIcon from '@mui/icons-material/Add'" |
| 261 | + } |
| 262 | + ], |
| 263 | + "patterns": [ |
| 264 | + { |
| 265 | + "group": ["@mui/*/*/*"], |
| 266 | + "message": "3rd level imports in mui are considered private" |
| 267 | + } |
| 268 | + ] |
| 269 | + } |
| 270 | + ], |
251 | 271 | "prefer-arrow-callback": "error" |
252 | 272 | } |
253 | 273 | }, |
|
0 commit comments