|
19 | 19 | ], |
20 | 20 | "parser": "@typescript-eslint/parser", |
21 | 21 | "parserOptions": { |
22 | | - "project": true, |
23 | | - "tsconfigRootDir": "__dirname" |
| 22 | + "project": true |
24 | 23 | }, |
25 | 24 | "plugins": ["@typescript-eslint", "import", "jest-dom", "react-hooks", "testing-library"], |
26 | 25 | "root": true, |
27 | 26 | "rules": { |
28 | | - // The following rules need `noImplicitAny` to be set to `true` in our tsconfig. They are too restrictive for now, but should be reconsidered in future |
29 | 27 | "@typescript-eslint/ban-types": "off", |
30 | 28 | "@typescript-eslint/ban-ts-comment": "off", |
31 | 29 | "@typescript-eslint/no-explicit-any": "off", |
| 30 | + "@typescript-eslint/no-wrapper-object-types": "off", |
32 | 31 | "@typescript-eslint/no-floating-promises": "off", |
33 | 32 | "@typescript-eslint/no-unsafe-argument": "off", |
34 | 33 | "@typescript-eslint/no-unsafe-assignment": "off", |
|
39 | 38 | "@typescript-eslint/unbound-method": "off", |
40 | 39 | "@typescript-eslint/consistent-type-definitions": "off", |
41 | 40 | "@typescript-eslint/consistent-type-exports": "error", |
42 | | - // Use `import type` instead of `import` for type imports |
43 | 41 | "@typescript-eslint/consistent-type-imports": [ |
44 | 42 | "error", |
45 | 43 | { |
|
52 | 50 | "error", |
53 | 51 | { |
54 | 52 | "paths": [ |
55 | | - // These two rules ensure that we're importing lodash and lodash-es correctly. Not doing so can bloat our bundle size significantly. |
56 | 53 | { |
57 | 54 | "name": "lodash", |
58 | 55 | "message": "Import specific methods from `lodash`. e.g. `import map from 'lodash/map'`" |
|
62 | 59 | "importNames": ["default"], |
63 | 60 | "message": "Import specific methods from `lodash-es`. e.g. `import { map } from 'lodash-es'`" |
64 | 61 | }, |
65 | | - // These two rules ensure that we're importing Carbon components and icons from the correct packages (after v10). May be removed in the future. |
66 | 62 | { |
67 | 63 | "name": "carbon-components-react", |
68 | 64 | "message": "Import from `@carbon/react` directly. e.g. `import { Toggle } from '@carbon/react'`" |
|
0 commit comments