55 lines
1.2 KiB
JSON
55 lines
1.2 KiB
JSON
{
|
|
"root": true,
|
|
"ignorePatterns": ["**/*", "deploy/**/*"],
|
|
"plugins": ["@nx"],
|
|
"overrides": [
|
|
{
|
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
"rules": {
|
|
"@nx/enforce-module-boundaries": [
|
|
"error",
|
|
{
|
|
"enforceBuildableLibDependency": true,
|
|
"allow": [],
|
|
"depConstraints": [
|
|
{
|
|
"sourceTag": "*",
|
|
"onlyDependOnLibsWithTags": ["*"]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": ["lodash", "lodash/*"]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.ts", "*.tsx"],
|
|
"extends": ["plugin:@nx/typescript"],
|
|
"rules": {
|
|
"@typescript-eslint/no-extra-semi": "error",
|
|
"no-extra-semi": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.js", "*.jsx"],
|
|
"extends": ["plugin:@nx/javascript"],
|
|
"rules": {
|
|
"@typescript-eslint/no-extra-semi": "error",
|
|
"no-extra-semi": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
|
|
"env": {
|
|
"jest": true
|
|
},
|
|
"rules": {}
|
|
}
|
|
]
|
|
}
|