mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
101 lines
2.5 KiB
JSON
101 lines
2.5 KiB
JSON
{
|
|
"extends": "../../.eslintrc.json",
|
|
"ignorePatterns": [
|
|
"!**/*"
|
|
],
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"*.ts"
|
|
],
|
|
"parserOptions": {
|
|
"project": [
|
|
"lib/insights/tsconfig.lib.json",
|
|
"lib/insights/tsconfig.spec.json"
|
|
],
|
|
"createDefaultProgram": true
|
|
},
|
|
"plugins": [
|
|
"eslint-plugin-unicorn",
|
|
"eslint-plugin-rxjs"
|
|
],
|
|
"rules": {
|
|
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
|
|
"@angular-eslint/no-output-native": "off",
|
|
|
|
"@angular-eslint/component-selector": [
|
|
"error",
|
|
{
|
|
"type": "element",
|
|
"prefix": [
|
|
"adf",
|
|
"app"
|
|
],
|
|
"style": "kebab-case"
|
|
}
|
|
],
|
|
"@angular-eslint/directive-selector": [
|
|
"error",
|
|
{
|
|
"type": [
|
|
"element",
|
|
"attribute"
|
|
],
|
|
"prefix": [
|
|
"adf",
|
|
"app"
|
|
],
|
|
"style": "kebab-case"
|
|
}
|
|
],
|
|
"@angular-eslint/no-host-metadata-property": "off",
|
|
"@angular-eslint/no-input-prefix": "error",
|
|
"@typescript-eslint/consistent-type-definitions": "error",
|
|
"@typescript-eslint/dot-notation": "off",
|
|
"@typescript-eslint/explicit-member-accessibility": [
|
|
"off",
|
|
{
|
|
"accessibility": "explicit"
|
|
}
|
|
],
|
|
"@typescript-eslint/no-floating-promises": "off",
|
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
"@typescript-eslint/no-require-imports": "off",
|
|
"@typescript-eslint/no-var-requires": "error",
|
|
"brace-style": [
|
|
"error",
|
|
"1tbs"
|
|
],
|
|
"comma-dangle": "error",
|
|
"default-case": "error",
|
|
"import/order": "off",
|
|
"max-len": [
|
|
"error",
|
|
{
|
|
"code": 240
|
|
}
|
|
],
|
|
"no-bitwise": "off",
|
|
"no-duplicate-imports": "error",
|
|
"no-multiple-empty-lines": "error",
|
|
"no-redeclare": "error",
|
|
"no-return-await": "error",
|
|
"rxjs/no-create": "error",
|
|
"rxjs/no-subject-unsubscribe": "error",
|
|
"rxjs/no-subject-value": "error",
|
|
"rxjs/no-unsafe-takeuntil": "error",
|
|
"unicorn/filename-case": "error"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"*.html"
|
|
],
|
|
"rules": {
|
|
"@angular-eslint/template/no-autofocus": "error",
|
|
"@angular-eslint/template/no-positive-tabindex": "error"
|
|
}
|
|
}
|
|
]
|
|
}
|