@jkba/eslint-config-angular 1.1.0 → 1.2.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 +23 -0
- package/package.json +2 -1
package/eslint.config.js
CHANGED
|
@@ -47,6 +47,29 @@ module.exports = {
|
|
|
47
47
|
'rxjs-angular/prefer-async-pipe': 'error',
|
|
48
48
|
'rxjs-angular/prefer-composition': 'error',
|
|
49
49
|
'rxjs-angular/prefer-takeuntil': 'error',
|
|
50
|
+
|
|
51
|
+
// Reference https://github.com/cartant/eslint-plugin-rxjs/blob/main/docs/rules/finnish.md
|
|
52
|
+
'rxjs/finnish': [
|
|
53
|
+
'error',
|
|
54
|
+
{
|
|
55
|
+
'functions': false,
|
|
56
|
+
'methods': false,
|
|
57
|
+
'names': {
|
|
58
|
+
'^(canActivate|canActivateChild|canDeactivate|canLoad|intercept|resolve|validate)$': false
|
|
59
|
+
},
|
|
60
|
+
'parameters': true,
|
|
61
|
+
'properties': true,
|
|
62
|
+
'strict': false,
|
|
63
|
+
'types': {
|
|
64
|
+
'^EventEmitter$': false,
|
|
65
|
+
'^Store$': false
|
|
66
|
+
},
|
|
67
|
+
'variables': true
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
'rxjs/no-exposed-subjects': [ 'error', { 'allowProtected': true } ],
|
|
71
|
+
'rxjs/no-compat': 'error',
|
|
72
|
+
'rxjs/throw-error': 'error',
|
|
50
73
|
|
|
51
74
|
'@typescript-eslint/unbound-method': ['error', { ignoreStatic: true }], // Ignore `Validators.required` etc.
|
|
52
75
|
'@typescript-eslint/no-confusing-void-expression': 'off', // I just simply disagree with this rule
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jkba/eslint-config-angular",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Opinionated ESLint config for Angular projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"package.json",
|
|
25
25
|
"prettier.config.js"
|
|
26
26
|
],
|
|
27
|
+
"readme": "README.md",
|
|
27
28
|
"author": "Jakub Meinlschmidt",
|
|
28
29
|
"license": "MIT",
|
|
29
30
|
"bugs": {
|