eslint-config-skyux 12.12.1 → 12.13.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 +23 -1
- package/package.json +4 -4
- package/src/index.js +38 -19
- package/src/index.js.map +1 -1
package/README.md
CHANGED
@@ -18,9 +18,31 @@ module.exports = tseslint.config(
|
|
18
18
|
{
|
19
19
|
languageOptions: {
|
20
20
|
parserOptions: {
|
21
|
-
|
21
|
+
projectService: true,
|
22
|
+
tsconfigRootDir: '.',
|
22
23
|
},
|
23
24
|
},
|
24
25
|
},
|
26
|
+
{
|
27
|
+
files: ['**/*.ts],
|
28
|
+
rules: {
|
29
|
+
'@angular-eslint/directive-selector': [
|
30
|
+
'error',
|
31
|
+
{
|
32
|
+
type: 'attribute',
|
33
|
+
prefix: 'app',
|
34
|
+
style: 'camelCase',
|
35
|
+
},
|
36
|
+
],
|
37
|
+
'@angular-eslint/component-selector': [
|
38
|
+
'error',
|
39
|
+
{
|
40
|
+
type: 'element',
|
41
|
+
prefix: 'app',
|
42
|
+
style: 'kebab-case',
|
43
|
+
},
|
44
|
+
],
|
45
|
+
}
|
46
|
+
}
|
25
47
|
);
|
26
48
|
```
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint-config-skyux",
|
3
|
-
"version": "12.
|
3
|
+
"version": "12.13.1",
|
4
4
|
"author": "Blackbaud, Inc.",
|
5
5
|
"description": "Recommended ESLint configuration for SKY UX projects",
|
6
6
|
"keywords": [
|
@@ -24,17 +24,17 @@
|
|
24
24
|
"packageGroupName": "skyux-eslint",
|
25
25
|
"migrations": "@skyux-sdk/eslint-schematics/migrations.json",
|
26
26
|
"packageGroup": {
|
27
|
-
"@skyux-sdk/eslint-schematics": "12.
|
27
|
+
"@skyux-sdk/eslint-schematics": "12.13.1"
|
28
28
|
}
|
29
29
|
},
|
30
30
|
"peerDependencies": {
|
31
31
|
"@eslint/js": "^9.24.0",
|
32
32
|
"angular-eslint": "^19.3.0",
|
33
|
-
"skyux-eslint": "12.
|
33
|
+
"skyux-eslint": "12.13.1",
|
34
34
|
"typescript-eslint": "^8.30.1"
|
35
35
|
},
|
36
36
|
"dependencies": {
|
37
|
-
"@skyux-sdk/eslint-schematics": "12.
|
37
|
+
"@skyux-sdk/eslint-schematics": "12.13.1",
|
38
38
|
"tslib": "^2.8.1"
|
39
39
|
},
|
40
40
|
"types": "./src/index.d.ts",
|
package/src/index.js
CHANGED
@@ -13,24 +13,6 @@ const config = typescript_eslint_1.default.config({
|
|
13
13
|
...skyux_eslint_1.default.configs.tsRecommended,
|
14
14
|
],
|
15
15
|
processor: angular_eslint_1.default.processInlineTemplates,
|
16
|
-
rules: {
|
17
|
-
'@angular-eslint/directive-selector': [
|
18
|
-
'error',
|
19
|
-
{
|
20
|
-
type: 'attribute',
|
21
|
-
prefix: 'app',
|
22
|
-
style: 'camelCase',
|
23
|
-
},
|
24
|
-
],
|
25
|
-
'@angular-eslint/component-selector': [
|
26
|
-
'error',
|
27
|
-
{
|
28
|
-
type: 'element',
|
29
|
-
prefix: 'app',
|
30
|
-
style: 'kebab-case',
|
31
|
-
},
|
32
|
-
],
|
33
|
-
},
|
34
16
|
}, {
|
35
17
|
files: ['**/*.html'],
|
36
18
|
extends: [
|
@@ -108,6 +90,8 @@ const config = typescript_eslint_1.default.config({
|
|
108
90
|
{
|
109
91
|
files: ['**/*.ts'],
|
110
92
|
rules: {
|
93
|
+
// Floating rules that don't belong in a typescript-eslint ruleset.
|
94
|
+
// ================================================================
|
111
95
|
'default-param-last': 'off',
|
112
96
|
'@typescript-eslint/default-param-last': 'error',
|
113
97
|
'@typescript-eslint/explicit-member-accessibility': [
|
@@ -127,11 +111,46 @@ const config = typescript_eslint_1.default.config({
|
|
127
111
|
allowNamedExports: false,
|
128
112
|
},
|
129
113
|
],
|
114
|
+
'@typescript-eslint/switch-exhaustiveness-check': [
|
115
|
+
'error',
|
116
|
+
{
|
117
|
+
considerDefaultExhaustiveForUnions: true,
|
118
|
+
},
|
119
|
+
],
|
120
|
+
// Overrides from typescript-eslint's "recommendedTypeChecked" ruleset.
|
121
|
+
// ====================================================================
|
130
122
|
'@typescript-eslint/unbound-method': ['error', { ignoreStatic: true }],
|
131
123
|
// Cherry-picked rules from typescript-eslint's "strict" ruleset.
|
132
|
-
// We can't pull in the entire ruleset because it's not considered
|
124
|
+
// We can't pull in the entire ruleset because it's not considered
|
125
|
+
// SemVer safe.
|
126
|
+
// ==============================================================-
|
133
127
|
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
134
128
|
'@typescript-eslint/prefer-literal-enum-member': 'error',
|
129
|
+
// Cherry-picked rules from typescript-eslint's "strictTypeChecked"
|
130
|
+
// ruleset.
|
131
|
+
// ================================================================
|
132
|
+
'@typescript-eslint/no-confusing-void-expression': 'error',
|
133
|
+
'@typescript-eslint/no-deprecated': 'error',
|
134
|
+
'@typescript-eslint/no-mixed-enums': 'error',
|
135
|
+
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
|
136
|
+
'@typescript-eslint/prefer-return-this-type': 'error',
|
137
|
+
// Cherry-picked rules from typescript-eslint's "stylistic" ruleset.
|
138
|
+
// ================================================================-
|
139
|
+
'@typescript-eslint/array-type': 'error',
|
140
|
+
'@typescript-eslint/consistent-generic-constructors': 'error',
|
141
|
+
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
|
142
|
+
'@typescript-eslint/prefer-for-of': 'error',
|
143
|
+
'@typescript-eslint/prefer-function-type': 'error',
|
144
|
+
// Cherry-picked rules from typescript-eslint's "stylisticTypeChecked"
|
145
|
+
// ruleset.
|
146
|
+
// ==================================================================-
|
147
|
+
'dot-notation': 'off',
|
148
|
+
'@typescript-eslint/dot-notation': 'error',
|
149
|
+
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
|
150
|
+
'@typescript-eslint/prefer-includes': 'error',
|
151
|
+
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
152
|
+
'@typescript-eslint/prefer-optional-chain': 'error',
|
153
|
+
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
135
154
|
},
|
136
155
|
});
|
137
156
|
module.exports = config;
|
package/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/sdk/eslint-config-skyux/src/index.ts"],"names":[],"mappings":";;AAAA,4DAAgC;AAEhC,4EAAqC;AACrC,wEAAiC;AACjC,kFAAyC;AAEzC,MAAM,MAAM,GAAG,2BAAQ,CAAC,MAAM,CAC5B;IACE,KAAK,EAAE,CAAC,SAAS,CAAC;IAClB,OAAO,EAAE;QACP,YAAM,CAAC,OAAO,CAAC,WAAW;QAC1B,GAAG,2BAAQ,CAAC,OAAO,CAAC,sBAAsB;QAC1C,GAAG,wBAAO,CAAC,OAAO,CAAC,aAAa;QAChC,GAAG,sBAAK,CAAC,OAAO,CAAC,aAAa;KAC/B;IACD,SAAS,EAAE,wBAAO,CAAC,sBAAsB;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/sdk/eslint-config-skyux/src/index.ts"],"names":[],"mappings":";;AAAA,4DAAgC;AAEhC,4EAAqC;AACrC,wEAAiC;AACjC,kFAAyC;AAEzC,MAAM,MAAM,GAAG,2BAAQ,CAAC,MAAM,CAC5B;IACE,KAAK,EAAE,CAAC,SAAS,CAAC;IAClB,OAAO,EAAE;QACP,YAAM,CAAC,OAAO,CAAC,WAAW;QAC1B,GAAG,2BAAQ,CAAC,OAAO,CAAC,sBAAsB;QAC1C,GAAG,wBAAO,CAAC,OAAO,CAAC,aAAa;QAChC,GAAG,sBAAK,CAAC,OAAO,CAAC,aAAa;KAC/B;IACD,SAAS,EAAE,wBAAO,CAAC,sBAAsB;CAC1C,EACD;IACE,KAAK,EAAE,CAAC,WAAW,CAAC;IACpB,OAAO,EAAE;QACP,GAAG,wBAAO,CAAC,OAAO,CAAC,mBAAmB;QACtC,GAAG,sBA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