e92408e31d
* Test for market table * Remove old method * Fix typo * Add braces and curly lint
69 lines
1.7 KiB
JSON
69 lines
1.7 KiB
JSON
{
|
|
"root": true,
|
|
"ignorePatterns": ["**/*"],
|
|
"plugins": ["@nrwl/nx", "eslint-plugin-unicorn"],
|
|
"overrides": [
|
|
{
|
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
"rules": {
|
|
"@nrwl/nx/enforce-module-boundaries": [
|
|
"error",
|
|
{
|
|
"enforceBuildableLibDependency": true,
|
|
"allow": [],
|
|
"depConstraints": [
|
|
{
|
|
"sourceTag": "*",
|
|
"onlyDependOnLibsWithTags": ["*"]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"unicorn/filename-case": [
|
|
"error",
|
|
{
|
|
"case": "kebabCase",
|
|
"ignore": ["\\[[a-zA-Z]+\\]\\.page"]
|
|
}
|
|
],
|
|
"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."
|
|
}
|
|
],
|
|
"curly": "warn"
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.ts", "*.tsx"],
|
|
"extends": ["plugin:@nrwl/nx/typescript"],
|
|
"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
|
|
}
|
|
],
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
"error",
|
|
{
|
|
"prefer": "type-imports",
|
|
"disallowTypeAnnotations": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.js", "*.jsx"],
|
|
"extends": ["plugin:@nrwl/nx/javascript"],
|
|
"rules": {}
|
|
}
|
|
]
|
|
}
|