mirror of
https://github.com/clearml/clearml-web
synced 2025-01-30 22:17:22 +00:00
99 lines
2.3 KiB
JSON
99 lines
2.3 KiB
JSON
{
|
|
"root": true,
|
|
"ignorePatterns": [
|
|
"projects/**/*"
|
|
],
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"*.ts"
|
|
],
|
|
"parserOptions": {
|
|
"project": [
|
|
"tsconfig.json"
|
|
],
|
|
"createDefaultProgram": true
|
|
},
|
|
"extends": [
|
|
"plugin:@angular-eslint/ng-cli-compat",
|
|
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
|
|
"plugin:@angular-eslint/template/process-inline-templates"
|
|
],
|
|
"rules": {
|
|
"no-console": "error",
|
|
"no-debugger": "error",
|
|
"@angular-eslint/component-selector": [
|
|
"error",
|
|
{
|
|
"type": "element",
|
|
"prefix": "sm",
|
|
"style": "kebab-case"
|
|
}
|
|
],
|
|
"@angular-eslint/directive-selector": [
|
|
"error",
|
|
{
|
|
"type": "attribute",
|
|
"prefix": "sm",
|
|
"style": "camelCase"
|
|
}
|
|
],
|
|
"@typescript-eslint/consistent-type-definitions": "error",
|
|
"@typescript-eslint/dot-notation": "off",
|
|
"@typescript-eslint/member-ordering": "off",
|
|
"@typescript-eslint/explicit-member-accessibility": [
|
|
"off",
|
|
{
|
|
"accessibility": "explicit"
|
|
}
|
|
],
|
|
"@typescript-eslint/no-inferrable-types": [
|
|
"off",
|
|
{
|
|
"ignoreParameters": true
|
|
}
|
|
],
|
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
"@typescript-eslint/no-unused-vars": "error",
|
|
"@typescript-eslint/no-use-before-define": "error",
|
|
"brace-style": [
|
|
"error",
|
|
"1tbs"
|
|
],
|
|
"eqeqeq": [
|
|
"off",
|
|
"smart"
|
|
],
|
|
"id-blacklist": "off",
|
|
"id-match": "off",
|
|
"max-len": [
|
|
"error",
|
|
{
|
|
"code": 2000
|
|
}
|
|
],
|
|
"no-bitwise": "off",
|
|
"no-shadow": [
|
|
"off",
|
|
{
|
|
"hoist": "all"
|
|
}
|
|
],
|
|
"no-underscore-dangle": "off",
|
|
"valid-typeof": "error"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"*.html"
|
|
],
|
|
"extends": [
|
|
"plugin:@angular-eslint/template/recommended"
|
|
],
|
|
"rules": {
|
|
"@angular-eslint/template/use-track-by-function": "warn"
|
|
}
|
|
}
|
|
]
|
|
}
|