eslint-config-angular-strict 2.0.3 → 2.0.5
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.
- package/index.js +9 -12
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
// ESLint 9 flat configuration export
|
|
2
1
|
import angular from '@angular-eslint/eslint-plugin';
|
|
3
2
|
import angularTemplate from '@angular-eslint/eslint-plugin-template';
|
|
4
3
|
import angularTemplateParser from '@angular-eslint/template-parser';
|
|
5
|
-
import importPlugin from 'eslint-plugin-import-x';
|
|
6
4
|
import stylistic from '@stylistic/eslint-plugin';
|
|
5
|
+
import tsParser from '@typescript-eslint/parser';
|
|
7
6
|
import typescriptEslint from '@typescript-eslint/eslint-plugin';
|
|
8
|
-
import
|
|
7
|
+
import { importX } from 'eslint-plugin-import-x'
|
|
9
8
|
|
|
10
9
|
export default [
|
|
11
|
-
|
|
10
|
+
importX.flatConfigs.recommended,
|
|
11
|
+
importX.flatConfigs.typescript,
|
|
12
12
|
{
|
|
13
|
+
// TypeScript files configuration
|
|
13
14
|
files: ['**/*.ts'],
|
|
14
15
|
languageOptions: {
|
|
15
|
-
parser:
|
|
16
|
-
parserOptions: {
|
|
17
|
-
ecmaVersion: 2022,
|
|
18
|
-
project: './tsconfig.json',
|
|
19
|
-
sourceType: 'module',
|
|
20
|
-
},
|
|
16
|
+
parser: tsParser,
|
|
17
|
+
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
|
|
21
18
|
},
|
|
22
19
|
plugins: {
|
|
23
20
|
'@angular-eslint': angular,
|
|
24
21
|
'@stylistic': stylistic,
|
|
25
22
|
'@typescript-eslint': typescriptEslint,
|
|
26
|
-
import:
|
|
23
|
+
import: importX,
|
|
27
24
|
},
|
|
28
25
|
rules: {
|
|
29
26
|
// Angular ESLint rules
|
|
@@ -145,8 +142,8 @@ export default [
|
|
|
145
142
|
},
|
|
146
143
|
},
|
|
147
144
|
|
|
148
|
-
// HTML Template files configuration
|
|
149
145
|
{
|
|
146
|
+
// HTML Template files configuration
|
|
150
147
|
files: ['**/*.html'],
|
|
151
148
|
languageOptions: {
|
|
152
149
|
parser: angularTemplateParser,
|