You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.4 KiB
66 lines
1.4 KiB
const { FlatCompat } = require('@eslint/eslintrc');
|
|
const js = require('@eslint/js');
|
|
const baseConfig = require('../../eslint.config.cjs');
|
|
|
|
const compat = new FlatCompat({
|
|
baseDirectory: __dirname,
|
|
recommendedConfig: js.configs.recommended
|
|
});
|
|
|
|
module.exports = [
|
|
{
|
|
ignores: ['**/dist']
|
|
},
|
|
...baseConfig,
|
|
...compat
|
|
.config({
|
|
extends: [
|
|
'plugin:@nx/angular',
|
|
'plugin:@angular-eslint/template/process-inline-templates'
|
|
]
|
|
})
|
|
.map((config) => ({
|
|
...config,
|
|
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
|
|
rules: {
|
|
...config.rules,
|
|
'@angular-eslint/directive-selector': [
|
|
'error',
|
|
{
|
|
type: 'attribute',
|
|
prefix: 'gf',
|
|
style: 'camelCase'
|
|
}
|
|
],
|
|
'@angular-eslint/component-selector': [
|
|
'error',
|
|
{
|
|
type: 'element',
|
|
prefix: 'gf',
|
|
style: 'kebab-case'
|
|
}
|
|
],
|
|
'@angular-eslint/prefer-standalone': 'off'
|
|
},
|
|
languageOptions: {
|
|
parserOptions: {
|
|
project: ['libs/ui/tsconfig.*?.json']
|
|
}
|
|
}
|
|
})),
|
|
...compat
|
|
.config({
|
|
extends: ['plugin:@nx/angular-template']
|
|
})
|
|
.map((config) => ({
|
|
...config,
|
|
files: ['**/*.html'],
|
|
rules: {
|
|
...config.rules
|
|
}
|
|
})),
|
|
{
|
|
ignores: ['**/*.stories.ts']
|
|
}
|
|
];
|