mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
- Convert eslint.config.mjs files to eslint.config.js format across workspace - Remove build targets from remission libraries (data-access, feature/remission-list, helpers, shared) - Remove build target from icons library - Delete ng-package.json and tsconfig.lib.prod.json files from buildable libraries - Update tsconfig.lib.json configurations to remove bundler moduleResolution - Clean up build artifacts and simplify library configurations - Libraries now compile on-demand during application build instead of pre-compilation
56 lines
1.5 KiB
JavaScript
56 lines
1.5 KiB
JavaScript
const nx = require('@nx/eslint-plugin');
|
|
const baseConfig = require('../../eslint.config.js');
|
|
|
|
module.exports = [
|
|
...baseConfig,
|
|
...nx.configs['flat/angular'],
|
|
...nx.configs['flat/angular-template'],
|
|
{
|
|
files: ['**/*.ts'],
|
|
rules: {
|
|
'@angular-eslint/directive-selector': [
|
|
'error',
|
|
{
|
|
type: 'attribute',
|
|
prefix: 'app',
|
|
style: 'camelCase',
|
|
},
|
|
],
|
|
'@angular-eslint/component-selector': [
|
|
'error',
|
|
{
|
|
type: 'element',
|
|
prefix: 'app',
|
|
style: 'kebab-case',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.ts'],
|
|
rules: {
|
|
'@typescript-eslint/no-unused-expressions': 'warn',
|
|
'prefer-const': 'warn',
|
|
'@angular-eslint/contextual-lifecycle': 'warn',
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
'@angular-eslint/no-empty-lifecycle-method': 'warn',
|
|
'@typescript-eslint/no-inferrable-types': 'warn',
|
|
'@angular-eslint/component-selector': 'warn',
|
|
'@angular-eslint/prefer-standalone': 'warn',
|
|
'@typescript-eslint/no-inferrable-types': 'warn',
|
|
'no-empty-function': 'warn',
|
|
'@typescript-eslint/no-empty-function': 'warn',
|
|
'@typescript-eslint/no-unused-vars': 'warn',
|
|
'@angular-eslint/directive-selector': 'warn',
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.html'],
|
|
// Override or add rules here
|
|
rules: {
|
|
'@angular-eslint/template/elements-content': 'warn',
|
|
'@angular-eslint/template/no-autofocus': 'warn',
|
|
},
|
|
},
|
|
];
|