Skip to content

Commit 529fe3e

Browse files
committed
chore(eslint): update rules
1 parent ea0225a commit 529fe3e

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

eslint.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const angular = require('angular-eslint');
66
module.exports = tseslint.config(
77
{
88
files: ['**/*.ts'],
9+
ignores: ['dist/**'],
910
extends: [
1011
eslint.configs.recommended,
1112
...tseslint.configs.recommended,
@@ -31,12 +32,15 @@ module.exports = tseslint.config(
3132
'@typescript-eslint/no-empty-function': 'off',
3233
'@typescript-eslint/no-inferrable-types': 'off',
3334
'@typescript-eslint/no-unused-vars': 'off',
35+
'@angular-eslint/component-class-suffix': 'off',
36+
'@angular-eslint/directive-class-suffix': 'off',
3437
'@angular-eslint/no-empty-lifecycle-method': 'off',
3538
'@angular-eslint/no-output-native': 'off',
3639
},
3740
},
3841
{
3942
files: ['**/*.html'],
43+
ignores: ['dist/**'],
4044
extends: [...angular.configs.templateRecommended, ...angular.configs.templateAccessibility],
4145
rules: {
4246
'@angular-eslint/template/prefer-self-closing-tags': 'warn',

projects/dev-app/eslint.config.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
// @ts-check
2-
const tseslint = require("typescript-eslint");
3-
const rootConfig = require("../../eslint.config.js");
2+
const tseslint = require('typescript-eslint');
3+
const rootConfig = require('../../eslint.config.js');
44

55
module.exports = tseslint.config(
66
...rootConfig,
77
{
8-
files: ["**/*.ts"],
8+
files: ['**/*.ts'],
99
rules: {
10-
"@angular-eslint/directive-selector": [
11-
"error",
10+
'@angular-eslint/directive-selector': [
11+
'error',
1212
{
13-
type: "attribute",
14-
prefix: "app",
15-
style: "camelCase",
13+
type: 'attribute',
14+
prefix: 'app',
15+
style: 'camelCase',
1616
},
1717
],
18-
"@angular-eslint/component-selector": [
19-
"error",
18+
'@angular-eslint/component-selector': [
19+
'error',
2020
{
21-
type: "element",
22-
prefix: "app",
23-
style: "kebab-case",
21+
type: 'element',
22+
prefix: 'app',
23+
style: 'kebab-case',
2424
},
2525
],
2626
},
2727
},
2828
{
29-
files: ["**/*.html"],
29+
files: ['**/*.html'],
3030
rules: {},
3131
}
3232
);

projects/gui/eslint.config.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = tseslint.config(
1111
'error',
1212
{
1313
type: 'attribute',
14-
prefix: 'gui',
14+
prefix: '',
1515
style: 'camelCase',
1616
},
1717
],
@@ -23,8 +23,6 @@ module.exports = tseslint.config(
2323
style: 'kebab-case',
2424
},
2525
],
26-
'@angular-eslint/directive-class-suffix': 'off',
27-
'@angular-eslint/component-class-suffix': 'off',
2826
},
2927
},
3028
{

projects/gui/gui-utils.ts

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export class GuiEjsPipe implements PipeTransform {
5555
}
5656

5757
@Directive({
58-
// eslint-disable-next-line @angular-eslint/directive-selector
5958
selector: '[flex]',
6059
standalone: true,
6160
})

0 commit comments

Comments
 (0)