92 lines
2.7 KiB
JSON
92 lines
2.7 KiB
JSON
{
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": ["@angular-eslint/eslint-plugin", "@typescript-eslint"],
|
|
"extends": ["prettier", "eslint-config-prettier"],
|
|
"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"
|
|
}
|
|
],
|
|
"@angular-eslint/relative-url-prefix": "off",
|
|
"@typescript-eslint/ban-types": [
|
|
"off",
|
|
{
|
|
"extendDefaults": true,
|
|
"types": {
|
|
"{}": false
|
|
}
|
|
}
|
|
],
|
|
"@typescript-eslint/explicit-function-return-type": ["off", { "allowExpressions": true }],
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
"@typescript-eslint/member-ordering": [
|
|
"off",
|
|
{
|
|
"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"] }],
|
|
"@typescript-eslint/no-shadow": ["off"],
|
|
"@typescript-eslint/no-unnecessary-condition": "off",
|
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
"@typescript-eslint/no-unsafe-call": "off",
|
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
"@typescript-eslint/prefer-optional-chain": "off",
|
|
"@typescript-eslint/unbound-method": "off",
|
|
"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"]
|
|
}
|
|
}
|