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": {
|
2023-05-22 22:03:34 +03:00
|
|
|
"react/jsx-no-useless-fragment": ["warn", { "allowExpressions": true }],
|
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
"warn",
|
|
|
|
{ "ignoreRestSiblings": true }
|
|
|
|
],
|
2023-05-09 13:41:15 +03:00
|
|
|
"@nrwl/nx/workspace/additional-dep-constraints": "error",
|
2022-08-05 21:52:47 +03:00
|
|
|
"@nrwl/nx/enforce-module-boundaries": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"enforceBuildableLibDependency": true,
|
|
|
|
"allow": [],
|
|
|
|
"depConstraints": [
|
|
|
|
{
|
2023-05-09 13:41:15 +03:00
|
|
|
"sourceTag": "scope:shared",
|
|
|
|
"onlyDependOnLibsWithTags": ["scope:shared"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"sourceTag": "scope:console",
|
|
|
|
"onlyDependOnLibsWithTags": ["scope:console", "scope:shared"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"sourceTag": "scope:nx-plugins",
|
|
|
|
"onlyDependOnLibsWithTags": ["scope:shared", "scope:nx-plugins"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"sourceTag": "type:utils",
|
|
|
|
"onlyDependOnLibsWithTags": ["type:utils"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"sourceTag": "type:data",
|
|
|
|
"onlyDependOnLibsWithTags": ["type:data", "type:utils"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"sourceTag": "type:ui",
|
|
|
|
"onlyDependOnLibsWithTags": ["type:ui", "type:utils"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"sourceTag": "type:feature",
|
|
|
|
"onlyDependOnLibsWithTags": [
|
|
|
|
"type:data",
|
|
|
|
"type:feature",
|
|
|
|
"type:ui",
|
|
|
|
"type:utils"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"sourceTag": "type:app",
|
|
|
|
"onlyDependOnLibsWithTags": [
|
|
|
|
"type:data",
|
|
|
|
"type:utils",
|
|
|
|
"type:ui",
|
|
|
|
"type:feature"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"sourceTag": "type:storybook",
|
|
|
|
"onlyDependOnLibsWithTags": [
|
|
|
|
"type:data",
|
|
|
|
"type:storybook",
|
|
|
|
"type:utils",
|
|
|
|
"type:feature",
|
|
|
|
"type:ui"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"sourceTag": "type:e2e",
|
|
|
|
"onlyDependOnLibsWithTags": [
|
|
|
|
"type:data",
|
|
|
|
"type:e2e",
|
|
|
|
"type:app",
|
|
|
|
"type:ui",
|
|
|
|
"type:storybook",
|
|
|
|
"type:feature",
|
|
|
|
"type:utils"
|
|
|
|
]
|
2022-08-05 21:52:47 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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",
|
2023-05-09 13:41:15 +03:00
|
|
|
"rules": {
|
|
|
|
"@nrwl/nx/workspace/allowed-project-tags": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"tags": {
|
|
|
|
"scope": {
|
|
|
|
"prefix": "scope:",
|
|
|
|
"allowMultiplePerProject": false,
|
|
|
|
"enforceAtLeastOne": true,
|
|
|
|
"allowedTags": ["console", "nx-plugins", "shared"]
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"prefix": "type:",
|
|
|
|
"allowMultiplePerProject": false,
|
|
|
|
"enforceAtLeastOne": true,
|
|
|
|
"allowedTags": [
|
|
|
|
"utils",
|
|
|
|
"data",
|
|
|
|
"ui",
|
|
|
|
"feature",
|
|
|
|
"app",
|
|
|
|
"storybook",
|
|
|
|
"e2e"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"meta": {
|
|
|
|
"prefix": "meta:",
|
|
|
|
"allowMultiplePerProject": true,
|
|
|
|
"enforceAtLeastOne": false,
|
|
|
|
"allowedTags": ["legacy", "package"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2022-08-05 21:52:47 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|