@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.
@@ -1,8 +1,6 @@
1
1
  module.exports = {
2
2
 
3
- "max-nested-callbacks": "off",
4
-
5
- "no-magic-numbers": "off",
6
- "@typescript-eslint/no-magic-numbers": "off"
3
+ "n/no-unpublished-require": "off",
4
+ "n/no-unpublished-import": "off"
7
5
 
8
6
  };
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
- For the **.eslintrc.yaml** case, it will be:
25
+ ```js
26
+ const YamatoDaiwaStyleGuides = require("@yamato-daiwa/style_guides/ECMAScript");
25
27
 
26
- ```yaml
27
- extends: ./node_modules/@yamato-daiwa/style_guides/ECMAScript.js
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** could require.
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
- "no-func-assign": "error",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamato-daiwa/style_guides",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "The guidelines for ESLint, Pug and Stylus.",
5
5
  "engines": {
6
6
  "node": ">=18.18.0"