mirror of
https://github.com/clearml/clearml-web
synced 2025-01-30 14:07:13 +00:00
ff27bad900
Co-authored-by: shallegro <shay@allego.ai>
53 lines
1.3 KiB
JavaScript
53 lines
1.3 KiB
JavaScript
// @ts-check
|
|
const eslint = require("@eslint/js");
|
|
const tseslint = require("typescript-eslint");
|
|
const angular = require("angular-eslint");
|
|
|
|
module.exports = tseslint.config(
|
|
{
|
|
ignores: ["node_modules/*", "build/*", "dist/*", "electron/*"],
|
|
files: ["**/*.ts"],
|
|
extends: [
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
...tseslint.configs.stylistic,
|
|
...angular.configs.tsRecommended,
|
|
],
|
|
processor: angular.processInlineTemplates,
|
|
rules: {
|
|
"no-console": "error",
|
|
"no-debugger": "error",
|
|
"quotes": ["error", "single", {
|
|
"allowTemplateLiterals": true
|
|
}],
|
|
"@angular-eslint/directive-selector": [
|
|
"error",
|
|
{
|
|
"type": "attribute",
|
|
"prefix": "sm",
|
|
"style": "camelCase"
|
|
}
|
|
],
|
|
"@angular-eslint/component-selector": [
|
|
"error",
|
|
{
|
|
"type": "element",
|
|
"prefix": "sm",
|
|
"style": "kebab-case"
|
|
}
|
|
],
|
|
"@ngrx/prefer-effect-callback-in-block-statement": "off"
|
|
},
|
|
},
|
|
{
|
|
files: ["**/*.html"],
|
|
extends: [
|
|
...angular.configs.templateRecommended,
|
|
...angular.configs.templateAccessibility,
|
|
],
|
|
rules: {
|
|
"@angular-eslint/template/use-track-by-function": "warn"
|
|
},
|
|
}
|
|
);
|