Skip to content

Commit

Permalink
chore: fix all lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
robertIsaac committed Dec 23, 2024
1 parent 14abe0b commit c8803eb
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 212 deletions.
33 changes: 0 additions & 33 deletions libs/docs/core/schema/.eslintrc.json

This file was deleted.

58 changes: 29 additions & 29 deletions libs/docs/core/schema/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
const nx = require('@nx/eslint-plugin');
const baseConfig = require('../../eslint.config.js');
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',
},
],
...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: ['**/*.html'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {}
}
];
21 changes: 0 additions & 21 deletions libs/docs/i18n/.eslintrc.json

This file was deleted.

46 changes: 17 additions & 29 deletions libs/docs/i18n/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,22 @@
const nx = require('@nx/eslint-plugin');
const baseConfig = require('../../eslint.config.js');
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',
},
],
...baseConfig,
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': ['off'],
'@angular-eslint/component-selector': ['off']
}
},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {
'@angular-eslint/template/elements-content': 'off'
}
}
];
21 changes: 0 additions & 21 deletions libs/docs/schema/.eslintrc.json

This file was deleted.

44 changes: 15 additions & 29 deletions libs/docs/schema/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,20 @@
const nx = require('@nx/eslint-plugin');
const baseConfig = require('../../eslint.config.js');
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',
},
],
...baseConfig,
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': ['off'],
'@angular-eslint/component-selector': ['off']
}
},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {}
}
];
21 changes: 0 additions & 21 deletions libs/docs/shared/.eslintrc.json

This file was deleted.

49 changes: 20 additions & 29 deletions libs/docs/shared/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
const nx = require('@nx/eslint-plugin');
const baseConfig = require('../../eslint.config.js');
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',
},
],
...baseConfig,
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': ['off'],
'@angular-eslint/component-selector': ['off']
}
},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {
'@angular-eslint/template/elements-content': 'off',
'@angular-eslint/template/click-events-have-key-events': 'off',
'@angular-eslint/template/interactive-supports-focus': 'off',
'@angular-eslint/template/label-has-associated-control': 'off'
}
}
];

0 comments on commit c8803eb

Please sign in to comment.