// @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" }, } );