mirror of
https://github.com/google/nomulus
synced 2026-08-15 11:46:08 +00:00
- node to the most recent LTS version - angular dependencies to 22.x rather than 21.x - eslint to 10.7 (the old version was quite old) Deployed to alpha and everything looks good. The Typescript changes were all done by the migration (nothing manually). G.1 numbers 8 and 9
60 lines
2.0 KiB
JavaScript
60 lines
2.0 KiB
JavaScript
// 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",
|
|
},
|
|
}
|
|
);
|