2021-07-03 21:48:27 +00:00
|
|
|
{
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"plugins": ["@angular-eslint/eslint-plugin", "@typescript-eslint"],
|
2021-07-04 00:07:10 +00:00
|
|
|
"extends": ["prettier", "eslint-config-prettier"],
|
2021-07-03 21:48:27 +00:00
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es6": true,
|
|
|
|
"commonjs": true
|
|
|
|
},
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 2018,
|
|
|
|
"sourceType": "module",
|
|
|
|
"project": "./tsconfig.json"
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"@angular-eslint/component-selector": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"type": "element",
|
|
|
|
"prefix": "jhi",
|
|
|
|
"style": "kebab-case"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"@angular-eslint/directive-selector": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"type": "attribute",
|
|
|
|
"prefix": "jhi",
|
|
|
|
"style": "camelCase"
|
|
|
|
}
|
|
|
|
],
|
2021-07-04 00:07:10 +00:00
|
|
|
"@angular-eslint/relative-url-prefix": "off",
|
2021-07-03 21:48:27 +00:00
|
|
|
"@typescript-eslint/ban-types": [
|
2021-07-04 00:07:10 +00:00
|
|
|
"off",
|
2021-07-03 21:48:27 +00:00
|
|
|
{
|
|
|
|
"extendDefaults": true,
|
|
|
|
"types": {
|
|
|
|
"{}": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2021-07-04 00:07:10 +00:00
|
|
|
"@typescript-eslint/explicit-function-return-type": ["off", { "allowExpressions": true }],
|
2021-07-03 21:48:27 +00:00
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
|
|
"@typescript-eslint/member-ordering": [
|
2021-07-04 00:07:10 +00:00
|
|
|
"off",
|
2021-07-03 21:48:27 +00:00
|
|
|
{
|
|
|
|
"default": [
|
|
|
|
"public-static-field",
|
|
|
|
"protected-static-field",
|
|
|
|
"private-static-field",
|
|
|
|
"public-instance-field",
|
|
|
|
"protected-instance-field",
|
|
|
|
"private-instance-field",
|
|
|
|
"constructor",
|
|
|
|
"public-static-method",
|
|
|
|
"protected-static-method",
|
|
|
|
"private-static-method",
|
|
|
|
"public-instance-method",
|
|
|
|
"protected-instance-method",
|
|
|
|
"private-instance-method"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
"@typescript-eslint/no-floating-promises": "off",
|
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
|
|
"@typescript-eslint/no-parameter-properties": ["warn", { "allows": ["public", "private", "protected"] }],
|
2021-07-04 00:07:10 +00:00
|
|
|
"@typescript-eslint/no-shadow": ["off"],
|
|
|
|
"@typescript-eslint/no-unnecessary-condition": "off",
|
2021-07-03 21:48:27 +00:00
|
|
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
|
|
"@typescript-eslint/no-unsafe-call": "off",
|
|
|
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
2021-07-04 00:07:10 +00:00
|
|
|
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
|
|
"@typescript-eslint/prefer-optional-chain": "off",
|
2021-07-03 21:48:27 +00:00
|
|
|
"@typescript-eslint/unbound-method": "off",
|
2021-07-04 00:07:10 +00:00
|
|
|
"arrow-body-style": "off",
|
|
|
|
"curly": "off",
|
|
|
|
"eqeqeq": ["off", "always", { "null": "ignore" }],
|
|
|
|
"guard-for-in": "off",
|
|
|
|
"no-bitwise": "off",
|
|
|
|
"no-caller": "off",
|
|
|
|
"no-console": ["off", { "allow": ["warn", "off"] }],
|
|
|
|
"no-eval": "off",
|
|
|
|
"no-labels": "off",
|
|
|
|
"no-new": "off",
|
|
|
|
"no-new-wrappers": "off",
|
|
|
|
"object-shorthand": ["off", "always", { "avoidExplicitReturnArrows": true }],
|
|
|
|
"radix": "off",
|
|
|
|
"spaced-comment": ["off", "always"]
|
2021-07-03 21:48:27 +00:00
|
|
|
}
|
|
|
|
}
|