@yamato-daiwa/style_guides 0.0.26 → 0.0.28

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.
@@ -9,6 +9,7 @@ module.exports = {
9
9
  "no-constructor-return": "error",
10
10
  "no-import-assign": "error",
11
11
  "no-invalid-regexp": "error",
12
+ "no-new-native-nonconstructor": "error",
12
13
  "no-new-symbol": "error",
13
14
  "no-obj-calls": "error",
14
15
  "no-promise-executor-return": "error",
@@ -266,6 +267,7 @@ module.exports = {
266
267
  "multiline-comment-style": [ "warn", "bare-block" ],
267
268
  "no-empty": "error",
268
269
  "no-empty-function": "error",
270
+ "no-empty-static-block": "warn",
269
271
  "no-inline-comments": "error",
270
272
  "no-lone-blocks": "error",
271
273
  "no-lonely-if": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamato-daiwa/style_guides",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "The guidelines for ESLint, Pug and Stylus.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,16 +16,16 @@
16
16
  ],
17
17
  "license": "MIT",
18
18
  "devDependencies": {
19
- "typescript": "4.8.4"
19
+ "typescript": "4.9.3"
20
20
  },
21
21
  "dependencies": {
22
- "@typescript-eslint/eslint-plugin": "5.41.0",
23
- "@typescript-eslint/parser": "5.41.0",
24
- "eslint": "8.26.0",
22
+ "@typescript-eslint/eslint-plugin": "5.44.0",
23
+ "@typescript-eslint/parser": "5.44.0",
24
+ "eslint": "8.28.0",
25
25
  "eslint-plugin-import": "2.26.0",
26
26
  "eslint-plugin-node": "11.1.0",
27
- "eslint-plugin-react": "7.31.10",
28
- "eslint-plugin-vue": "9.6.0",
27
+ "eslint-plugin-react": "7.31.11",
28
+ "eslint-plugin-vue": "9.7.0",
29
29
  "eslint-plugin-vue-pug": "0.5.4"
30
30
  },
31
31
  "files": [
@@ -34,7 +34,7 @@
34
34
  "Partials"
35
35
  ],
36
36
  "scripts": {
37
- "JavaScript test": "eslint Tests/JavaScriptTest.js --config BasicPreset.js",
38
- "TypeScript test": "eslint Tests/TypeScriptTest.ts --config BasicPreset.js"
37
+ "JavaScript test": "eslint Tests/JavaScriptTest.js --config ECMAScript.js",
38
+ "TypeScript test": "eslint Tests/TypeScriptTest.ts --config ECMAScript.js"
39
39
  }
40
40
  }
package/BasicPreset.js DELETED
@@ -1,57 +0,0 @@
1
- const ECMA_ScriptBasicRules = require("./Partials/ECMA_ScriptBasicRules")
2
- const NodeJS_BasicRules = require("./Partials/NodeJS_Rules")
3
- const TypeScriptOverridings = require("./Partials/Overridings/TypeScriptOverridings");
4
- const TestFilesOverridings = require("./Partials/Overridings/TestFilesOverridings")
5
- const VueComponentsFilesOverridings = require("./Partials/Overridings/Vue/VueComponentsFilesOverridings")
6
- const VuexModuleComponentsOverridings = require("./Partials/Overridings/Vue/VuexModuleComponentsOverridings")
7
- const JSX_FilesOverridings = require("./Partials/Overridings/React/JSX_FilesOverridings")
8
-
9
-
10
- module.exports = {
11
-
12
- parser: "@typescript-eslint/parser",
13
-
14
- parserOptions: {
15
- sourceType: "module",
16
- tsconfigRootDir: "./",
17
- project: "tsconfig.json",
18
- extraFileExtensions: [ ".vue" ],
19
- templateTokenizer: {
20
- pug: "vue-eslint-parser-template-tokenizer-pug"
21
- }
22
- },
23
-
24
- env: {
25
- "es6": true,
26
- "browser": true,
27
- "node": true,
28
- "mocha": true
29
- },
30
-
31
- plugins: [
32
- "@typescript-eslint",
33
- "import",
34
- "node",
35
- "vue",
36
- "react"
37
- ],
38
-
39
- rules: {
40
- ...ECMA_ScriptBasicRules,
41
- ...NodeJS_BasicRules
42
- },
43
-
44
- overrides: [
45
- TypeScriptOverridings,
46
- TestFilesOverridings,
47
- VueComponentsFilesOverridings,
48
- VuexModuleComponentsOverridings,
49
- JSX_FilesOverridings
50
- ],
51
-
52
- globals: {
53
- BigInt: "readonly",
54
- NodeJS: "readonly",
55
- BufferEncoding: "readonly"
56
- }
57
- };
@@ -1,101 +0,0 @@
1
- module.exports = {
2
-
3
- disallowAttributeConcatenation: true,
4
-
5
- disallowAttributeInterpolation: true,
6
-
7
- disallowDuplicateAttributes: true,
8
-
9
- disallowLegacyMixinCall: true,
10
-
11
- disallowSpecificAttributes: [
12
- {
13
- caption: [ "align" ],
14
- img: [ "align", "border", "hspace", "vspace" ],
15
- table: [ "align", "bgcolor", "height" ],
16
- tr: [ "bgcolor" ],
17
- td: [ "bgcolor", "nowrap", "width" ],
18
- th: [ "bgcolor", "nowrap", "width" ],
19
- hr: [ "align", "noshade", "size", "width" ],
20
- div: [ "align" ],
21
- h1: [ "align" ],
22
- h2: [ "align" ],
23
- h3: [ "align" ],
24
- h4: [ "align" ],
25
- h5: [ "align" ],
26
- h6: [ "align" ],
27
- p: [ "align" ],
28
- body: [ "alink", "background", "bgcolor", "link", "text", "vlink" ],
29
- object: [ "border", "hspace", "vspace" ],
30
- br: [ "clear" ],
31
- ul: [ "compact" ],
32
- ol: [ "compact", "start" ],
33
- li: [ "type", "value" ],
34
- script: [ "language" ],
35
- basefont: [ "size" ],
36
- font: [ "size" ],
37
- pre: [ "width" ]
38
- }
39
- ],
40
-
41
- disallowSpecificTags: [
42
- "acronym",
43
- "applet",
44
- "basefont",
45
- "big",
46
- "blink",
47
- "center",
48
- "dir",
49
- "embed",
50
- "font",
51
- "frame",
52
- "frameset",
53
- "isindex",
54
- "noframes",
55
- "marquee",
56
- "listing",
57
- "menu",
58
- "plaintext",
59
- "s",
60
- "strike",
61
- "tt",
62
- "u",
63
- "xmp"
64
- ],
65
-
66
- disallowStringConcatenation: true,
67
-
68
- requireClassLiteralsBeforeAttributes: true,
69
-
70
- requireClassLiteralsBeforeIdLiterals: true,
71
-
72
- requireIdLiteralsBeforeAttributes: true,
73
-
74
- requireLineFeedAtFileEnd: true,
75
-
76
- requireSpaceAfterCodeOperator: true,
77
-
78
- requireSpecificAttributes: [
79
- { input: [ "type" ] },
80
- { img: [ "alt" ] }
81
- ],
82
-
83
- requireStrictEqualityOperators: true,
84
-
85
- validateAttributeQuoteMarks: "\"",
86
-
87
- validateAttributeSeparator: {
88
- separator: " ",
89
- multiLineSeparator: "\n "
90
- },
91
-
92
- validateDivTags: true,
93
-
94
- validateExtensions: true,
95
-
96
- validateIndentation: 2,
97
-
98
- validateSelfClosingTags: true,
99
-
100
- validateTemplateString: [ "string", "concatenation" ]
101
- };