2022-02-11 13:56:28 +00:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
"ignorePatterns": ["**/*"],
|
2023-07-04 11:01:25 +00:00
|
|
|
"plugins": ["@nx", "eslint-plugin-unicorn", "jsx-a11y", "jest"],
|
2022-07-07 11:01:03 +00:00
|
|
|
"settings": {
|
|
|
|
"jsx-a11y": {
|
|
|
|
"components": {
|
|
|
|
"Button": "button",
|
|
|
|
"Input": "input",
|
|
|
|
"Select": "select",
|
|
|
|
"Radio": "radio",
|
|
|
|
"TextArea": "textarea"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-02-11 13:56:28 +00:00
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
2022-07-07 11:01:03 +00:00
|
|
|
"extends": ["plugin:jsx-a11y/strict"],
|
2022-02-11 13:56:28 +00:00
|
|
|
"rules": {
|
2023-07-04 11:01:25 +00:00
|
|
|
"@nx/enforce-module-boundaries": [
|
2022-02-11 13:56:28 +00:00
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"enforceBuildableLibDependency": true,
|
|
|
|
"allow": [],
|
|
|
|
"depConstraints": [
|
|
|
|
{
|
|
|
|
"sourceTag": "*",
|
|
|
|
"onlyDependOnLibsWithTags": ["*"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2022-03-08 14:26:42 +00:00
|
|
|
],
|
|
|
|
"unicorn/filename-case": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"case": "kebabCase",
|
|
|
|
"ignore": ["\\[[a-zA-Z]+\\]\\.page"]
|
|
|
|
}
|
2022-03-23 15:01:50 +00:00
|
|
|
],
|
|
|
|
"no-restricted-imports": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"name": "lodash",
|
|
|
|
"message": "Import the specific methods you need from lodash e.g. `import get from 'lodash/get'`. This helps with bundle sizing."
|
|
|
|
}
|
2022-04-11 15:35:38 +00:00
|
|
|
],
|
2022-05-08 23:53:02 +00:00
|
|
|
"jsx-a11y/no-redundant-roles": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"ul": ["list"],
|
|
|
|
"ol": ["list"]
|
|
|
|
}
|
2022-09-16 16:04:32 +00:00
|
|
|
]
|
2022-02-11 13:56:28 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["*.ts", "*.tsx"],
|
2023-07-04 11:01:25 +00:00
|
|
|
"extends": ["plugin:@nx/typescript"],
|
2022-02-14 13:35:50 +00:00
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/ban-ts-comment": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"ts-expect-error": "allow-with-description",
|
|
|
|
"ts-ignore": "allow-with-description",
|
|
|
|
"ts-nocheck": true,
|
|
|
|
"ts-check": false,
|
|
|
|
"minimumDescriptionLength": 10
|
|
|
|
}
|
2022-03-30 09:49:48 +00:00
|
|
|
],
|
|
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"prefer": "type-imports",
|
|
|
|
"disallowTypeAnnotations": true
|
|
|
|
}
|
2022-09-16 16:04:32 +00:00
|
|
|
],
|
|
|
|
"curly": ["error", "multi-line"]
|
2022-02-14 13:35:50 +00:00
|
|
|
}
|
2022-02-11 13:56:28 +00:00
|
|
|
},
|
2022-05-12 12:32:14 +00:00
|
|
|
{
|
|
|
|
"files": ["*.spec.ts", "*.spec.tsx"],
|
2023-07-04 11:01:25 +00:00
|
|
|
"extends": ["plugin:@nx/typescript", "plugin:jest/recommended"],
|
2022-05-12 12:32:14 +00:00
|
|
|
"rules": {
|
2023-07-04 11:01:25 +00:00
|
|
|
"jest/consistent-test-it": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"fn": "it"
|
|
|
|
}
|
|
|
|
]
|
2022-05-12 12:32:14 +00:00
|
|
|
}
|
|
|
|
},
|
2022-02-11 13:56:28 +00:00
|
|
|
{
|
|
|
|
"files": ["*.js", "*.jsx"],
|
2023-07-04 11:01:25 +00:00
|
|
|
"extends": ["plugin:@nx/javascript"],
|
2022-02-11 13:56:28 +00:00
|
|
|
"rules": {}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|