eslint-config-angular-strict 2.0.4 → 2.0.6
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 +11 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import angular from '@angular-eslint/eslint-plugin';
|
|
2
2
|
import angularTemplate from '@angular-eslint/eslint-plugin-template';
|
|
3
3
|
import angularTemplateParser from '@angular-eslint/template-parser';
|
|
4
|
+
import importX from 'eslint-plugin-import-x'
|
|
4
5
|
import stylistic from '@stylistic/eslint-plugin';
|
|
5
6
|
import tsParser from '@typescript-eslint/parser';
|
|
6
7
|
import typescriptEslint from '@typescript-eslint/eslint-plugin';
|
|
7
|
-
import { importX } from 'eslint-plugin-import-x';
|
|
8
8
|
|
|
9
9
|
export default [
|
|
10
10
|
importX.flatConfigs.recommended,
|
|
@@ -12,7 +12,10 @@ export default [
|
|
|
12
12
|
{
|
|
13
13
|
// TypeScript files configuration
|
|
14
14
|
files: ['**/*.ts'],
|
|
15
|
-
languageOptions: {
|
|
15
|
+
languageOptions: {
|
|
16
|
+
parser: tsParser,
|
|
17
|
+
parserOptions: { ecmaVersion: 'latest', project: './tsconfig.json', sourceType: 'module' },
|
|
18
|
+
},
|
|
16
19
|
plugins: {
|
|
17
20
|
'@angular-eslint': angular,
|
|
18
21
|
'@stylistic': stylistic,
|
|
@@ -142,8 +145,12 @@ export default [
|
|
|
142
145
|
{
|
|
143
146
|
// HTML Template files configuration
|
|
144
147
|
files: ['**/*.html'],
|
|
145
|
-
languageOptions: {
|
|
146
|
-
|
|
148
|
+
languageOptions: {
|
|
149
|
+
parser: angularTemplateParser,
|
|
150
|
+
},
|
|
151
|
+
plugins: {
|
|
152
|
+
'@angular-eslint/template': angularTemplate,
|
|
153
|
+
},
|
|
147
154
|
rules: {
|
|
148
155
|
'@angular-eslint/template/attributes-order': ['error', { alphabetical: true }],
|
|
149
156
|
'@angular-eslint/template/banana-in-box': 'error',
|