@factory-utils/linter
Version:
Factory-Utils Linter contains configuration files for various linters
150 lines (149 loc) • 4.26 kB
Plain Text
{
"env": {
"browser": true,
"es6": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@factory-utils",
"@typescript-eslint",
"jsdoc"
],
"root": true,
"rules": {
"@factory-utils/brace-style": [
"error",
"adv"
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": [
"error",
{
"allowArgumentsExplicitlyTypedAsAny": true,
"allowDirectConstAssertionInArrowFunctions": true,
"allowHigherOrderFunctions": false,
"allowTypedFunctionExpressions": false,
"allowedNames": ["ngOnChanges", "ngOnInit", "ngDoCheck", "ngAfterContentInit", "ngAfterContentChecked", "ngAfterViewInit", "ngAfterViewChecked", "ngOnDestroy"]
}
],
"@typescript-eslint/indent": [
"error",
4,
{
"SwitchCase": 1,
"ignoredNodes": [
"PropertyDefinition[decorators]",
"TSUnionType"
]
}
],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "enumMember",
"format": ["camelCase", "UPPER_CASE"]
}
],
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/quotes": [
"error",
"single"
],
"@typescript-eslint/semi": [
"error",
"always"
],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/typedef": [
"error",
{
"parameter": true,
"variableDeclaration": true,
"memberVariableDeclaration": true
}
],
"arrow-parens": [
"error",
"as-needed"
],
"comma-dangle": "error",
"curly": "error",
"eol-last": "error",
"eqeqeq": [
"error",
"always"
],
"id-denylist": [
"error",
"any",
"Number",
"number",
"String",
"string",
"Boolean",
"boolean",
"Undefined",
"undefined"
],
"id-match": "error",
"indent": "off",
"jsdoc/check-alignment": "error",
"linebreak-style": [
"error",
"unix"
],
"new-parens": "error",
"no-cond-assign": "error",
"no-debugger": "error",
"no-empty": "error",
"no-empty-function": "off",
"no-eval": "error",
"no-multiple-empty-lines": "error",
"no-new-wrappers": "error",
"no-redeclare": "error",
"no-trailing-spaces": "error",
"no-underscore-dangle": "off",
"no-unsafe-finally": "error",
"no-unused-expressions": "off",
"no-use-before-define": "off",
"no-var": "error",
"one-var": [
"error",
"never"
],
"quotes": "off",
"semi": "off",
"spaced-comment": [
"error",
"always",
{
"markers": [
"/"
]
}
],
"use-isnan": "error"
}
}