@jkba/eslint-config-angular 1.3.0 → 1.3.1
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/README.md +5 -0
- package/eslint.config.js +18 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -111,6 +111,11 @@ PRs are welcome but keep in mind this is an opinionated configuration.
|
|
|
111
111
|
Reference [Share Configurations](https://eslint.org/docs/latest/extend/shareable-configs).
|
|
112
112
|
|
|
113
113
|
|
|
114
|
+
## Release
|
|
115
|
+
|
|
116
|
+
Use `npm version`, don't forget to push the tag and the CI will take care of the rest.
|
|
117
|
+
|
|
118
|
+
|
|
114
119
|
## License
|
|
115
120
|
|
|
116
121
|
This project is licensed under [MIT License](http://opensource.org/licenses/MIT/).
|
package/eslint.config.js
CHANGED
|
@@ -51,8 +51,8 @@ module.exports = {
|
|
|
51
51
|
*/
|
|
52
52
|
'no-unused-vars': 'off',
|
|
53
53
|
|
|
54
|
-
'rxjs-angular/prefer-async-pipe': '
|
|
55
|
-
'rxjs-angular/prefer-composition': '
|
|
54
|
+
'rxjs-angular/prefer-async-pipe': 'warn',
|
|
55
|
+
'rxjs-angular/prefer-composition': 'off', // I prefer takeUntilDestroyed() operator
|
|
56
56
|
'rxjs-angular/prefer-takeuntil': 'error',
|
|
57
57
|
|
|
58
58
|
// Reference https://github.com/cartant/eslint-plugin-rxjs/blob/main/docs/rules/finnish.md
|
|
@@ -103,6 +103,22 @@ module.exports = {
|
|
|
103
103
|
'@angular-eslint/relative-url-prefix': 'error',
|
|
104
104
|
// '@angular-eslint/require-localize-metadata': 'error', // TODO: https://github.com/jmeinlschmidt/eslint-config-angular/issues/13
|
|
105
105
|
'@angular-eslint/use-component-selector': 'error',
|
|
106
|
+
"@angular-eslint/component-selector": [
|
|
107
|
+
"error",
|
|
108
|
+
{
|
|
109
|
+
"type": "element",
|
|
110
|
+
"prefix": "app",
|
|
111
|
+
"style": "kebab-case",
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"@angular-eslint/directive-selector": [
|
|
115
|
+
"error",
|
|
116
|
+
{
|
|
117
|
+
"type": "attribute",
|
|
118
|
+
"prefix": "app",
|
|
119
|
+
"style": "kebab-case", // I just don't really agree with using camelCase. Material isn't using it neither.
|
|
120
|
+
}
|
|
121
|
+
],
|
|
106
122
|
|
|
107
123
|
'import/no-absolute-path': 'error',
|
|
108
124
|
'import/newline-after-import': [ 'error', { 'count': 1 } ],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jkba/eslint-config-angular",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Opinionated ESLint config for Angular projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@angular-eslint/eslint-plugin-template": ">=16",
|
|
37
37
|
"@angular-eslint/template-parser": ">=16",
|
|
38
38
|
"@ngrx/eslint-plugin": "^16.2.0",
|
|
39
|
-
"@typescript-eslint/eslint-plugin": ">=
|
|
40
|
-
"@typescript-eslint/parser": ">=
|
|
39
|
+
"@typescript-eslint/eslint-plugin": ">=5",
|
|
40
|
+
"@typescript-eslint/parser": ">=5",
|
|
41
41
|
"eslint": ">=8",
|
|
42
42
|
"eslint-config-prettier": ">=8",
|
|
43
43
|
"eslint-import-resolver-typescript": ">= 3.5.5",
|