forked from openmrs/openmrs-esm-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
36 lines (36 loc) · 1.21 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"extends": ["ts-react-important-stuff", "plugin:prettier/recommended"],
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["**/*.test.tsx"],
"rules": {
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "lodash",
"message": "Import specific methods from `lodash-es`. e.g. `import map from 'lodash-es/map'`"
},
{
"name": "lodash-es",
"message": "Import specific methods from `lodash-es`. e.g. `import map from 'lodash-es/map'`"
},
{
"name": "@carbon/icons-react",
"message": "Import from `@carbon/icons-react/es`. e.g. `import ChevronUp16 from '@carbon/icons-react/es/chevron--up/16'`"
}
],
"patterns": [
{
"group": ["carbon-components-react/lib/*"],
"message": "Import from `carbon-components-react`. e.g. `import { Toggle } from 'carbon-components-react'`"
},
{
"group": ["@carbon/icons-react/lib/*"],
"message": "Import from `@carbon/icons-react/es`. e.g. `import ChevronUp16 from '@carbon/icons-react/es/chevron--up/16'`"
}
]
}
]
}
}