@mikey-pro/eslint-config-angular 7.4.12 → 7.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +14 -56
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -1,34 +1,19 @@
1
- const path = require('node:path');
2
-
3
1
  const baseConfig = require('@mikey-pro/eslint-config');
2
+ const overrides = require('@mikey-pro/eslint-config/overrides');
4
3
 
5
4
  module.exports = {
6
5
  ...baseConfig,
7
6
  overrides: [
8
7
  ...baseConfig.overrides,
9
8
  {
10
- files: ['*.ts'],
11
- parser: '@typescript-eslint/parser',
9
+ ...overrides.ts,
12
10
  extends: [
13
- 'plugin:@typescript-eslint/all',
14
- 'plugin:@typescript-eslint/recommended-requiring-type-checking',
15
- 'plugin:import/typescript',
11
+ ...overrides.ts.extends,
16
12
  'plugin:@angular-eslint/all',
17
13
  'plugin:@angular-eslint/template/process-inline-templates',
18
14
  ],
19
- parserOptions: {
20
- project: 'tsconfig.json',
21
- tsconfigRootDir: path.join(__dirname, '../../..'),
22
- },
23
15
  rules: {
24
- '@angular-eslint/directive-selector': [
25
- 'warn',
26
- {
27
- type: 'attribute',
28
- prefix: 'app',
29
- style: 'camelCase',
30
- },
31
- ],
16
+ ...overrides.ts.rules,
32
17
  '@angular-eslint/component-selector': [
33
18
  'warn',
34
19
  {
@@ -37,59 +22,32 @@ module.exports = {
37
22
  style: 'kebab-case',
38
23
  },
39
24
  ],
40
- '@angular-eslint/prefer-standalone': 'off',
41
- '@angular-eslint/prefer-standalone-component': 'off',
42
25
  '@angular-eslint/consistent-component-styles': 'off',
43
- '@angular-eslint/prefer-on-push-component-change-detection': 'off',
44
- '@typescript-eslint/prefer-readonly-parameter-types': 'off',
45
- '@typescript-eslint/parameter-properties': 'off',
46
- '@typescript-eslint/prefer-readonly': 'off',
47
- '@typescript-eslint/no-unnecessary-condition': 'off',
48
- '@typescript-eslint/prefer-nullish-coalescing': 'off',
49
- '@typescript-eslint/strict-boolean-expressions': 'off',
50
- '@typescript-eslint/class-methods-use-this': 'off',
51
- '@typescript-eslint/consistent-type-imports': [
52
- 'warn',
53
- { fixStyle: 'inline-type-imports' },
54
- ],
55
- '@typescript-eslint/explicit-member-accessibility': [
26
+ '@angular-eslint/directive-selector': [
56
27
  'warn',
57
28
  {
58
- accessibility: 'explicit',
59
- overrides: {
60
- accessors: 'explicit',
61
- constructors: 'no-public',
62
- methods: 'no-public',
63
- properties: 'off',
64
- parameterProperties: 'explicit',
65
- },
29
+ type: 'attribute',
30
+ prefix: 'app',
31
+ style: 'camelCase',
66
32
  },
67
33
  ],
34
+ '@angular-eslint/prefer-on-push-component-change-detection': 'off',
35
+ '@angular-eslint/prefer-standalone': 'off',
36
+ '@angular-eslint/prefer-standalone-component': 'off',
68
37
  'prettier/prettier': ['warn', { parser: 'typescript' }],
69
38
  },
70
39
  },
71
40
  {
72
- files: ['*.html'],
41
+ ...overrides.html,
73
42
  extends: [
74
- 'plugin:@html-eslint/recommended',
43
+ ...overrides.html.extends,
75
44
  'plugin:@angular-eslint/template/recommended',
76
45
  'plugin:@angular-eslint/template/accessibility',
77
- 'plugin:prettier/recommended',
78
46
  ],
79
47
  parser: '@angular-eslint/template-parser',
80
- plugins: ['@html-eslint'],
81
48
  rules: {
82
- '@html-eslint/indent': 'off',
83
- '@html-eslint/no-extra-spacing-attrs': 'off',
84
- '@html-eslint/require-closing-tags': 'off',
85
- '@html-eslint/element-newline': 'off',
86
- 'disable-autofix/@html-eslint/require-closing-tags': [
87
- 'warn',
88
- { selfClosing: 'always' },
89
- ],
90
- 'spaced-comment': 'off',
49
+ ...overrides.html.rules,
91
50
  '@angular-eslint/template/alt-text': 'warn',
92
- strict: 'off',
93
51
  'prettier/prettier': [
94
52
  'warn',
95
53
  {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config-angular",
3
- "version": "7.4.12",
3
+ "version": "7.5.3",
4
4
  "description": "Mikey Pro ESLint Angular configuration",
5
5
  "main": "index.js",
6
6
  "dependencies": {
7
- "@angular-eslint/eslint-plugin": "^17.3.0",
8
- "@angular-eslint/eslint-plugin-template": "^17.3.0",
9
- "@angular-eslint/template-parser": "^17.3.0"
7
+ "@angular-eslint/eslint-plugin": "^17.5.2",
8
+ "@angular-eslint/eslint-plugin-template": "^17.5.2",
9
+ "@angular-eslint/template-parser": "^17.5.2"
10
10
  },
11
11
  "files": [
12
12
  "index.js",