@andrewt03/eslint-typescript-rules 0.0.28 → 0.0.51
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 +9 -1
- package/dist/index.js +16 -16
- package/dist/index.mjs +16 -16
- package/package.json +8 -5
package/README.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
# `AndrewTran03-ESLint-TypeScript-Rules`
|
|
1
|
+
# `AndrewTran03-ESLint-TypeScript-Rules`
|
|
2
|
+
|
|
3
|
+
# · [](https://github.com/AndrewTran03/AndrewTran03-ESLint-TypeScript-Rules/blob/main/LICENSE) [](https://www.npmjs.com/package/@andrewt03/eslint-typescript-rules) ·
|
|
2
4
|
|
|
3
5
|
The `AndrewTran03-ESLint-TypeScript-Rules` package is `recommended` ESLint Rules for general `TypeScript`, `Node.js/Express.js`, `Angular`, and `React.js` Projects that utilize `TypeScript` for development.
|
|
4
6
|
|
|
@@ -24,6 +26,12 @@ eslint-plugin-react
|
|
|
24
26
|
eslint-plugin-react-hooks
|
|
25
27
|
```
|
|
26
28
|
|
|
29
|
+
- To install these project dependencies:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
npm install eslint eslint-plugin-import eslint-plugin-simple-import-sort eslint-plugin-unicorn typescript-eslint @typescript-eslint/utils globals @angular-eslint/eslint-plugin eslint-plugin-react eslint-plugin-react-hooks -D
|
|
33
|
+
```
|
|
34
|
+
|
|
27
35
|
## Example Usage
|
|
28
36
|
|
|
29
37
|
### `NPM` File Configuration
|
package/dist/index.js
CHANGED
|
@@ -299,28 +299,28 @@ var ANGULAR_ESLINT_CONFIG_RULES = {
|
|
|
299
299
|
suffixes: ["Component"]
|
|
300
300
|
}
|
|
301
301
|
],
|
|
302
|
-
"@angular-eslint/component-selector": [
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
],
|
|
302
|
+
// "@angular-eslint/component-selector": [
|
|
303
|
+
// "warn",
|
|
304
|
+
// {
|
|
305
|
+
// type: "element",
|
|
306
|
+
// prefix: "app",
|
|
307
|
+
// style: "kebab-case"
|
|
308
|
+
// }
|
|
309
|
+
// ],
|
|
310
310
|
"@angular-eslint/directive-class-suffix": [
|
|
311
311
|
"error",
|
|
312
312
|
{
|
|
313
313
|
suffixes: ["Directive"]
|
|
314
314
|
}
|
|
315
315
|
],
|
|
316
|
-
"@angular-eslint/directive-selector": [
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
],
|
|
316
|
+
// "@angular-eslint/directive-selector": [
|
|
317
|
+
// "warn",
|
|
318
|
+
// {
|
|
319
|
+
// type: "attribute",
|
|
320
|
+
// prefix: "app",
|
|
321
|
+
// style: "camelCase"
|
|
322
|
+
// }
|
|
323
|
+
// ],
|
|
324
324
|
"@angular-eslint/consistent-component-styles": "error",
|
|
325
325
|
"@angular-eslint/no-conflicting-lifecycle": "error",
|
|
326
326
|
"@angular-eslint/no-duplicates-in-metadata-arrays": "error",
|
package/dist/index.mjs
CHANGED
|
@@ -265,28 +265,28 @@ var ANGULAR_ESLINT_CONFIG_RULES = {
|
|
|
265
265
|
suffixes: ["Component"]
|
|
266
266
|
}
|
|
267
267
|
],
|
|
268
|
-
"@angular-eslint/component-selector": [
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
],
|
|
268
|
+
// "@angular-eslint/component-selector": [
|
|
269
|
+
// "warn",
|
|
270
|
+
// {
|
|
271
|
+
// type: "element",
|
|
272
|
+
// prefix: "app",
|
|
273
|
+
// style: "kebab-case"
|
|
274
|
+
// }
|
|
275
|
+
// ],
|
|
276
276
|
"@angular-eslint/directive-class-suffix": [
|
|
277
277
|
"error",
|
|
278
278
|
{
|
|
279
279
|
suffixes: ["Directive"]
|
|
280
280
|
}
|
|
281
281
|
],
|
|
282
|
-
"@angular-eslint/directive-selector": [
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
],
|
|
282
|
+
// "@angular-eslint/directive-selector": [
|
|
283
|
+
// "warn",
|
|
284
|
+
// {
|
|
285
|
+
// type: "attribute",
|
|
286
|
+
// prefix: "app",
|
|
287
|
+
// style: "camelCase"
|
|
288
|
+
// }
|
|
289
|
+
// ],
|
|
290
290
|
"@angular-eslint/consistent-component-styles": "error",
|
|
291
291
|
"@angular-eslint/no-conflicting-lifecycle": "error",
|
|
292
292
|
"@angular-eslint/no-duplicates-in-metadata-arrays": "error",
|
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.51",
|
|
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",
|
|
@@ -11,13 +11,16 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git+https://github.com/AndrewTran03/AndrewTran03-ESLint-TypeScript-Rules.git"
|
|
13
13
|
},
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
14
17
|
"scripts": {
|
|
15
18
|
"build": "rm -rf dist/ && tsup",
|
|
16
19
|
"precheck": "npm run prettier && npm run lint && npm run build",
|
|
17
|
-
"version:patch": "npm run precheck && npm version patch && npm install && npm run publish",
|
|
18
|
-
"version:minor": "npm run precheck && npm version minor && npm install && npm run publish",
|
|
19
|
-
"version:major": "npm run precheck && npm version major && npm install && npm run publish",
|
|
20
|
-
"publish": "npm publish --access public",
|
|
20
|
+
"version:patch": "npm run precheck && npm version patch && npm install && npm run publish:public",
|
|
21
|
+
"version:minor": "npm run precheck && npm version minor && npm install && npm run publish:public",
|
|
22
|
+
"version:major": "npm run precheck && npm version major && npm install && npm run publish:public",
|
|
23
|
+
"publish:public": "npm publish --access public",
|
|
21
24
|
"lint": "tsc",
|
|
22
25
|
"prettier": "prettier --write .",
|
|
23
26
|
"test": "echo \"Error: no test specified\" && exit 1"
|