@yamato-daiwa/style_guides 0.3.0 → 0.3.2
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
CHANGED
|
@@ -20,13 +20,27 @@ npm i @yamato-daiwa/style_guides -D -E
|
|
|
20
20
|
|
|
21
21
|
### Usage
|
|
22
22
|
#### Extending of ESLint preset
|
|
23
|
+
##### CommonJS
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
```js
|
|
26
|
+
const YamatoDaiwaStyleGuides = require("@yamato-daiwa/style_guides/ECMAScript");
|
|
25
27
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
|
|
29
|
+
module.exports = [
|
|
30
|
+
...YamatoDaiwaStyleGuides
|
|
31
|
+
];
|
|
28
32
|
```
|
|
29
33
|
|
|
34
|
+
##### ES Modules
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
import YamatoDaiwaStyleGuides from "@yamato-daiwa/style_guides/ECMAScript";
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
export default [
|
|
41
|
+
...YamatoDaiwaStyleGuides
|
|
42
|
+
];
|
|
43
|
+
```
|
|
30
44
|
|
|
31
45
|
#### Extending of pug-lint preset
|
|
32
46
|
|
|
@@ -38,7 +52,7 @@ For the **.pug-lintrc** case, it will be:
|
|
|
38
52
|
}
|
|
39
53
|
```
|
|
40
54
|
|
|
41
|
-
Depending on the project building tool, the excluding of **node_modules**
|
|
55
|
+
Depending on the project building tool, the excluding of **node_modules** may require.
|
|
42
56
|
|
|
43
57
|
```json
|
|
44
58
|
{
|
|
@@ -7,6 +7,10 @@ module.exports = {
|
|
|
7
7
|
"no-class-assign": "error",
|
|
8
8
|
"no-const-assign": "error",
|
|
9
9
|
"no-constructor-return": "error",
|
|
10
|
+
"no-ex-assign": "error",
|
|
11
|
+
"no-func-assign": "error",
|
|
12
|
+
|
|
13
|
+
|
|
10
14
|
"no-import-assign": "error",
|
|
11
15
|
"no-invalid-regexp": "error",
|
|
12
16
|
"no-new-native-nonconstructor": "error",
|
|
@@ -32,10 +36,9 @@ module.exports = {
|
|
|
32
36
|
"no-dupe-keys": "error",
|
|
33
37
|
"no-duplicate-case": "error",
|
|
34
38
|
"no-empty-character-class": "error",
|
|
35
|
-
"no-empty-pattern": "error",
|
|
36
|
-
"no-ex-assign": "error",
|
|
37
39
|
"no-fallthrough": "error",
|
|
38
|
-
|
|
40
|
+
|
|
41
|
+
|
|
39
42
|
"no-inner-declarations": "error",
|
|
40
43
|
"no-irregular-whitespace": [
|
|
41
44
|
"error",
|
|
@@ -263,6 +266,9 @@ module.exports = {
|
|
|
263
266
|
],
|
|
264
267
|
|
|
265
268
|
"no-duplicate-imports": "error",
|
|
269
|
+
|
|
270
|
+
"no-empty-pattern": "error",
|
|
271
|
+
|
|
266
272
|
"no-unused-private-class-members": "error",
|
|
267
273
|
"no-unused-vars": [
|
|
268
274
|
"error",
|