// Copyright 2026 The Nomulus Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. const eslint = require("@eslint/js"); const tseslint = require("typescript-eslint"); const angular = require("angular-eslint"); module.exports = tseslint.config( { ignores: ["projects/**/*", "dist/**/*", "staged/**/*", "coverage/**/*"], }, { files: ["**/*.ts"], extends: [ eslint.configs.recommended, ...tseslint.configs.recommended, ...angular.configs.tsRecommended, ], processor: angular.processInlineTemplates, rules: { "@angular-eslint/directive-selector": "off", "@angular-eslint/component-selector": "off", "eol-last": ["error", "always"], "@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-wrapper-object-types": "off", "@typescript-eslint/no-unsafe-function-type": "off", "@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/no-unused-expressions": "off", "@angular-eslint/prefer-on-push-component-change-detection": "off", "@angular-eslint/prefer-inject": "off", "@angular-eslint/prefer-standalone": "off", "@angular-eslint/no-output-on-prefix": "off", "no-var": "off", "prefer-const": "off", }, }, { files: ["**/*.html"], extends: [ ...angular.configs.templateRecommended, ...angular.configs.templateAccessibility, ], rules: { "@angular-eslint/template/eqeqeq": "off", }, } );