mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
* [AAE-10474] Add husky pre-commit script to run lint-staged * [AAE-10474] Enable lint rules for console log * [AAE-10474] Run affected:lint command on pre-commit, remoive old scripts that use tslint * [AAE-10474] Remove console.log * [AAE-10474] Disable no-console lint rule for 'testing' and 'cli' projects
49 lines
1.4 KiB
JSON
49 lines
1.4 KiB
JSON
{
|
|
"extends": ["../../.eslintrc.json"],
|
|
"ignorePatterns": ["!**/*", "dist", "node_modules"],
|
|
"overrides": [
|
|
{
|
|
"files": ["*.ts"],
|
|
"extends": [
|
|
"plugin:@nrwl/nx/angular",
|
|
"plugin:@angular-eslint/template/process-inline-templates"
|
|
],
|
|
"rules": {
|
|
"prefer-arrow/prefer-arrow-functions": "off",
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
"@typescript-eslint/naming-convention": "warn",
|
|
"quote-props": "warn",
|
|
"no-shadow": "warn",
|
|
"no-restricted-syntax": "off",
|
|
"no-underscore-dangle": "off",
|
|
"@typescript-eslint/consistent-type-assertions": "warn",
|
|
"@typescript-eslint/prefer-for-of": "off",
|
|
"@typescript-eslint/consistent-type-definitions": "error",
|
|
"@typescript-eslint/dot-notation": "off",
|
|
"@typescript-eslint/no-floating-promises": "off",
|
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
"@typescript-eslint/no-require-imports": "off",
|
|
"default-case": "error",
|
|
"import/order": "off",
|
|
"max-len": [
|
|
"error",
|
|
{
|
|
"code": 240
|
|
}
|
|
],
|
|
"no-duplicate-imports": "error",
|
|
"no-multiple-empty-lines": "error",
|
|
"no-redeclare": "error",
|
|
"no-return-await": "error",
|
|
"no-console": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.html"],
|
|
"extends": ["plugin:@nrwl/nx/angular-template"],
|
|
"rules": {
|
|
}
|
|
}
|
|
]
|
|
}
|