@andrewt03/eslint-typescript-rules 0.0.55 → 0.0.56

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.
Files changed (2) hide show
  1. package/README.md +56 -0
  2. 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrewt03/eslint-typescript-rules",
3
- "version": "0.0.55",
3
+ "version": "0.0.56",
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",