@asd14/eslint-config 7.2.0 → 7.3.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/README.md +0 -12
- package/package.json +1 -1
- package/targets/node-esm.js +33 -0
package/README.md
CHANGED
|
@@ -68,12 +68,6 @@ Link ESLint to `node` target.
|
|
|
68
68
|
|
|
69
69
|
### Node.js with Typescript
|
|
70
70
|
|
|
71
|
-
Install additional packages:
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
npm install -D @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript
|
|
75
|
-
```
|
|
76
|
-
|
|
77
71
|
Link ESLint to `node-ts` target.
|
|
78
72
|
|
|
79
73
|
```javascript
|
|
@@ -87,12 +81,6 @@ Link ESLint to `node-ts` target.
|
|
|
87
81
|
|
|
88
82
|
### React
|
|
89
83
|
|
|
90
|
-
Install additional packages:
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
npm install -D eslint-plugin-html eslint-plugin-react eslint-plugin-react-hooks
|
|
94
|
-
```
|
|
95
|
-
|
|
96
84
|
Link ESLint to `react` target.
|
|
97
85
|
|
|
98
86
|
```javascript
|
package/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* eslint-env node */
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
parserOptions: {
|
|
5
|
+
ecmaVersion: 2021,
|
|
6
|
+
sourceType: "module",
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
env: {
|
|
10
|
+
node: true,
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
extends: [
|
|
14
|
+
...[
|
|
15
|
+
"../rules/json",
|
|
16
|
+
"../rules/best.practices",
|
|
17
|
+
"../rules/comments",
|
|
18
|
+
"../rules/errors",
|
|
19
|
+
"../rules/es6",
|
|
20
|
+
"../rules/jsdoc",
|
|
21
|
+
"../rules/node",
|
|
22
|
+
"../rules/promise",
|
|
23
|
+
"../rules/style",
|
|
24
|
+
"../rules/unicorn",
|
|
25
|
+
"../rules/variables",
|
|
26
|
+
"../rules/prettier",
|
|
27
|
+
].map(require.resolve),
|
|
28
|
+
],
|
|
29
|
+
|
|
30
|
+
plugins: ["no-inferred-method-name"],
|
|
31
|
+
|
|
32
|
+
settings: {},
|
|
33
|
+
}
|