mirror of
https://github.com/valitydev/dashboard.git
synced 2024-11-06 10:35:21 +00:00
115 lines
4.2 KiB
JSON
115 lines
4.2 KiB
JSON
{
|
|
"root": true,
|
|
"plugins": ["import", "jasmine"],
|
|
"ignorePatterns": ["**/openapi-codegen/**/*.ts", "**/swagger-codegen/**/*.ts"],
|
|
"overrides": [
|
|
{
|
|
"files": ["*.ts"],
|
|
"parserOptions": {
|
|
"project": ["tsconfig.json", "e2e/tsconfig.json"],
|
|
"createDefaultProgram": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:jasmine/recommended",
|
|
"plugin:import/errors",
|
|
"plugin:import/warnings",
|
|
"plugin:import/typescript",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
"plugin:@angular-eslint/recommended",
|
|
"plugin:@angular-eslint/template/process-inline-templates",
|
|
"prettier"
|
|
],
|
|
"rules": {
|
|
"@angular-eslint/directive-selector": [
|
|
"error",
|
|
{
|
|
"type": "attribute",
|
|
"prefix": "dsh",
|
|
"style": "camelCase"
|
|
}
|
|
],
|
|
"@angular-eslint/component-selector": [
|
|
"error",
|
|
{
|
|
"type": "element",
|
|
"prefix": "dsh",
|
|
"style": "kebab-case"
|
|
}
|
|
],
|
|
|
|
"no-console": ["error", { "allow": ["warn", "error"] }],
|
|
|
|
"import/no-unresolved": "off",
|
|
"import/namespace": "off",
|
|
"import/order": [
|
|
"error",
|
|
{
|
|
"groups": [["builtin", "external"], "internal", ["parent", "sibling", "index"], "object"],
|
|
"pathGroups": [
|
|
{
|
|
"pattern": "@dsh/**",
|
|
"group": "internal"
|
|
}
|
|
],
|
|
"pathGroupsExcludedImportTypes": ["builtin"],
|
|
"newlines-between": "always",
|
|
"alphabetize": {
|
|
"order": "asc",
|
|
"caseInsensitive": true
|
|
}
|
|
}
|
|
],
|
|
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"paths": ["rxjs/Rx", "rxjs/internal", "lodash", "lodash-es", "."],
|
|
"patterns": ["src/*"]
|
|
}
|
|
],
|
|
|
|
"jasmine/new-line-before-expect": "off",
|
|
|
|
"@typescript-eslint/naming-convention": [
|
|
"error",
|
|
{
|
|
"selector": "typeLike",
|
|
"format": ["PascalCase"],
|
|
"leadingUnderscore": "allow"
|
|
}
|
|
],
|
|
|
|
"@typescript-eslint/member-ordering": [
|
|
"error",
|
|
{
|
|
"default": ["field", "method"]
|
|
}
|
|
],
|
|
|
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
"@typescript-eslint/no-unused-expressions": "error",
|
|
|
|
"@typescript-eslint/no-floating-promises": "warn",
|
|
"@typescript-eslint/no-unsafe-call": "warn",
|
|
"@typescript-eslint/no-unsafe-member-access": "warn",
|
|
"@typescript-eslint/no-unsafe-assignment": "warn",
|
|
"@typescript-eslint/no-unsafe-return": "warn",
|
|
"@typescript-eslint/no-misused-promises": "warn",
|
|
"@typescript-eslint/unbound-method": "warn",
|
|
"@typescript-eslint/restrict-plus-operands": "warn",
|
|
"@typescript-eslint/restrict-template-expressions": "warn"
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.html"],
|
|
"extends": ["plugin:@angular-eslint/template/recommended"],
|
|
"rules": {
|
|
"@angular-eslint/template/no-negated-async": "warn"
|
|
}
|
|
}
|
|
]
|
|
}
|