mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
95 lines
3.0 KiB
JSON
95 lines
3.0 KiB
JSON
{
|
|
"extends": ["../../.eslintrc.js"],
|
|
"ignorePatterns": ["!**/*"],
|
|
"overrides": [
|
|
{
|
|
"files": ["*.ts"],
|
|
"extends": ["plugin:@nx/angular"],
|
|
"parserOptions": {
|
|
"project": ["lib/content-services/tsconfig.lib.json", "lib/content-services/tsconfig.spec.json"],
|
|
"createDefaultProgram": true
|
|
},
|
|
"rules": {
|
|
"jsdoc/tag-lines": ["error", "any", {"startLines": 1}],
|
|
"@typescript-eslint/naming-convention": "warn",
|
|
"@typescript-eslint/consistent-type-assertions": "warn",
|
|
"@typescript-eslint/prefer-for-of": "warn",
|
|
"@typescript-eslint/member-ordering": "off",
|
|
"no-underscore-dangle": [
|
|
"error",
|
|
{
|
|
"allowAfterThis": true
|
|
}
|
|
],
|
|
"no-shadow": "warn",
|
|
"quote-props": "off",
|
|
"object-shorthand": "warn",
|
|
"prefer-const": "warn",
|
|
"arrow-body-style": "warn",
|
|
"@angular-eslint/no-output-native": "off",
|
|
"space-before-function-paren": "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-inferrable-types": "off",
|
|
"@typescript-eslint/no-require-imports": "off",
|
|
"@typescript-eslint/no-var-requires": "error",
|
|
"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"],
|
|
"parserOptions": {
|
|
"project": ["lib/content-services/tsconfig.lib.json", "lib/content-services/tsconfig.spec.json"],
|
|
"createDefaultProgram": true
|
|
},
|
|
"extends": ["plugin:@nx/angular-template"],
|
|
"rules": {
|
|
"@angular-eslint/template/no-autofocus": "error",
|
|
"@angular-eslint/template/no-positive-tabindex": "error"
|
|
}
|
|
}
|
|
]
|
|
}
|