2022-08-05 21:52:47 +03:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
"ignorePatterns": ["**/*"],
|
|
|
|
"plugins": ["@nrwl/nx"],
|
2023-03-21 11:51:14 +03:00
|
|
|
"extends": ["plugin:@nrwl/nx/react"],
|
2022-08-05 21:52:47 +03:00
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
2023-03-21 11:51:14 +03:00
|
|
|
"extends": ["plugin:storybook/recommended"],
|
2022-08-05 21:52:47 +03:00
|
|
|
"rules": {
|
|
|
|
"@nrwl/nx/enforce-module-boundaries": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"enforceBuildableLibDependency": true,
|
|
|
|
"allow": [],
|
|
|
|
"depConstraints": [
|
|
|
|
{
|
|
|
|
"sourceTag": "*",
|
|
|
|
"onlyDependOnLibsWithTags": ["*"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["*.ts", "*.tsx"],
|
|
|
|
"extends": ["plugin:@nrwl/nx/typescript"],
|
2023-03-21 11:51:14 +03:00
|
|
|
"rules": {
|
|
|
|
"no-unused-vars": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"args": "none",
|
|
|
|
"varsIgnorePattern": "React"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"@typescript-eslint/no-restricted-imports": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"paths": [
|
|
|
|
{
|
|
|
|
"name": "lodash",
|
|
|
|
"message": "Please use sub imports (eg, lodash/get) instead of the global lodash import.",
|
|
|
|
"allowTypeImports": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"jsx-a11y/alt-text": "error"
|
|
|
|
}
|
2022-08-05 21:52:47 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["*.js", "*.jsx"],
|
|
|
|
"extends": ["plugin:@nrwl/nx/javascript"],
|
2023-03-21 11:51:14 +03:00
|
|
|
"rules": {
|
|
|
|
"no-unused-vars": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"args": "none",
|
|
|
|
"varsIgnorePattern": "React"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-restricted-imports": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"paths": [
|
|
|
|
{
|
|
|
|
"name": "lodash",
|
|
|
|
"message": "Please use sub imports (eg, lodash/get) instead of the global lodash import."
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"jsx-a11y/alt-text": "error"
|
|
|
|
}
|
2023-01-20 19:04:25 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": "*.json",
|
|
|
|
"parser": "jsonc-eslint-parser",
|
|
|
|
"rules": {}
|
2022-08-05 21:52:47 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|