datasurvey/.eslintrc.json

92 lines
2.7 KiB
JSON
Raw Permalink Normal View History

2021-07-03 21:48:27 +00:00
{
"parser": "@typescript-eslint/parser",
"plugins": ["@angular-eslint/eslint-plugin", "@typescript-eslint"],
"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"
}
],
"@angular-eslint/relative-url-prefix": "off",
2021-07-03 21:48:27 +00:00
"@typescript-eslint/ban-types": [
"off",
2021-07-03 21:48:27 +00:00
{
"extendDefaults": true,
"types": {
"{}": false
}
}
],
"@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": [
"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"] }],
"@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",
"@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",
"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
}
}