@andrewt03/eslint-typescript-rules 0.0.55 → 0.0.57
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 +56 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -127,6 +127,34 @@ module.exports = [
|
|
|
127
127
|
...ESLINT_RULES.SORT_IMPORT_ESLINT_CONFIG_RULES,
|
|
128
128
|
|
|
129
129
|
// ESLint Rules: Angular
|
|
130
|
+
"@angular-eslint/component-class-suffix": [
|
|
131
|
+
"error",
|
|
132
|
+
{
|
|
133
|
+
suffixes: ["Component"]
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"@angular-eslint/component-selector": [
|
|
137
|
+
"warn",
|
|
138
|
+
{
|
|
139
|
+
type: "element",
|
|
140
|
+
prefix: "app",
|
|
141
|
+
style: "kebab-case"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"@angular-eslint/directive-class-suffix": [
|
|
145
|
+
"error",
|
|
146
|
+
{
|
|
147
|
+
suffixes: ["Directive"]
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"@angular-eslint/directive-selector": [
|
|
151
|
+
"warn",
|
|
152
|
+
{
|
|
153
|
+
type: "attribute",
|
|
154
|
+
prefix: "app",
|
|
155
|
+
style: "camelCase"
|
|
156
|
+
}
|
|
157
|
+
],
|
|
130
158
|
...ESLINT_RULES.ANGULAR_ESLINT_CONFIG_RULES,
|
|
131
159
|
|
|
132
160
|
// ESLint Rules: React
|
|
@@ -215,6 +243,34 @@ export default [
|
|
|
215
243
|
...ESLINT_RULES.SORT_IMPORT_ESLINT_CONFIG_RULES,
|
|
216
244
|
|
|
217
245
|
// ESLint Rules: Angular
|
|
246
|
+
"@angular-eslint/component-class-suffix": [
|
|
247
|
+
"error",
|
|
248
|
+
{
|
|
249
|
+
suffixes: ["Component"]
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
"@angular-eslint/component-selector": [
|
|
253
|
+
"warn",
|
|
254
|
+
{
|
|
255
|
+
type: "element",
|
|
256
|
+
prefix: "app",
|
|
257
|
+
style: "kebab-case"
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"@angular-eslint/directive-class-suffix": [
|
|
261
|
+
"error",
|
|
262
|
+
{
|
|
263
|
+
suffixes: ["Directive"]
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"@angular-eslint/directive-selector": [
|
|
267
|
+
"warn",
|
|
268
|
+
{
|
|
269
|
+
type: "attribute",
|
|
270
|
+
prefix: "app",
|
|
271
|
+
style: "camelCase"
|
|
272
|
+
}
|
|
273
|
+
],
|
|
218
274
|
...ESLINT_RULES.ANGULAR_ESLINT_CONFIG_RULES,
|
|
219
275
|
|
|
220
276
|
// ESLint Rules: React
|
package/dist/index.js
CHANGED
|
@@ -253,7 +253,7 @@ var TYPESCRIPT_ESLINT_CONFIG_RULES = {
|
|
|
253
253
|
"@typescript-eslint/naming-convention": [
|
|
254
254
|
"error",
|
|
255
255
|
{
|
|
256
|
-
selector: ["variable", "
|
|
256
|
+
selector: ["variable", "classProperty", "parameter"],
|
|
257
257
|
types: ["boolean"],
|
|
258
258
|
format: ["PascalCase"],
|
|
259
259
|
prefix: ["is", "should", "has", "can", "will", "needs"]
|
package/dist/index.mjs
CHANGED
|
@@ -219,7 +219,7 @@ var TYPESCRIPT_ESLINT_CONFIG_RULES = {
|
|
|
219
219
|
"@typescript-eslint/naming-convention": [
|
|
220
220
|
"error",
|
|
221
221
|
{
|
|
222
|
-
selector: ["variable", "
|
|
222
|
+
selector: ["variable", "classProperty", "parameter"],
|
|
223
223
|
types: ["boolean"],
|
|
224
224
|
format: ["PascalCase"],
|
|
225
225
|
prefix: ["is", "should", "has", "can", "will", "needs"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@andrewt03/eslint-typescript-rules",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.57",
|
|
4
4
|
"description": "Recommended ESLint Rules for general TypeScript, Node.js/Express.js, Angular, and React.js Projects",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|