@jkba/eslint-config-angular 2.2.0 → 3.0.0
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/eslint.config.js +8 -8
- package/index.js +2 -2
- package/package.json +7 -1
- package/prettier.config.js +2 -2
package/eslint.config.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import eslint from '@eslint/js';
|
|
4
|
+
import tseslint from 'typescript-eslint';
|
|
5
|
+
import angular from 'angular-eslint';
|
|
6
|
+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
|
7
|
+
import importPlugin from 'eslint-plugin-import';
|
|
8
|
+
import rxjs from '@smarttools/eslint-plugin-rxjs';
|
|
9
9
|
|
|
10
10
|
const config = tseslint.config(
|
|
11
11
|
{
|
|
@@ -120,7 +120,7 @@ const config = tseslint.config(
|
|
|
120
120
|
{
|
|
121
121
|
type: 'attribute',
|
|
122
122
|
prefix: 'app',
|
|
123
|
-
style: 'kebab-case', // I just don't really agree with using camelCase. Material isn't using it
|
|
123
|
+
style: 'kebab-case', // I just don't really agree with using camelCase. Material isn't using it either.
|
|
124
124
|
},
|
|
125
125
|
],
|
|
126
126
|
|
|
@@ -166,7 +166,7 @@ const config = tseslint.config(
|
|
|
166
166
|
eslintPluginPrettierRecommended,
|
|
167
167
|
);
|
|
168
168
|
|
|
169
|
-
|
|
169
|
+
export default config;
|
|
170
170
|
|
|
171
171
|
// notes
|
|
172
172
|
|
package/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import eslintconfig from './eslint.config.js';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export default eslintconfig;
|
package/package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jkba/eslint-config-angular",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "Opinionated ESLint config for Angular projects",
|
|
5
6
|
"main": "index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.js",
|
|
9
|
+
"./eslint.config": "./eslint.config.js",
|
|
10
|
+
"./prettier.config": "./prettier.config.js"
|
|
11
|
+
},
|
|
6
12
|
"scripts": {
|
|
7
13
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
14
|
},
|