@yamato-daiwa/style_guides 0.0.7 → 0.0.9

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/BasicPreset.js CHANGED
@@ -13,7 +13,10 @@ module.exports = {
13
13
  parserOptions: {
14
14
  sourceType: "module",
15
15
  project: "tsconfig.json",
16
- tsconfigRootDir: "./"
16
+ tsconfigRootDir: "./",
17
+ templateTokenizer: {
18
+ pug: "vue-eslint-parser-template-tokenizer-pug"
19
+ }
17
20
  },
18
21
 
19
22
  env: {
@@ -88,7 +88,7 @@ module.exports = {
88
88
  "default-case-last": "error",
89
89
  "default-param-last": "error",
90
90
  "func-names": [ "error", "always" ],
91
- "func-style": [ "error", "declaration" ],
91
+ "func-style": [ "error", "declaration", { allowArrowFunctions: true } ],
92
92
  "new-cap": [ "error", { capIsNew: false } ],
93
93
  "no-array-constructor": "error",
94
94
  "no-bitwise": "error",
@@ -3,11 +3,11 @@ module.exports = {
3
3
  "node/handle-callback-err": "error",
4
4
  "node/no-callback-literal": "error",
5
5
  "node/no-exports-assign": "error",
6
- // "node/no-extraneous-import": "error", vinyl 追加
7
- "node/no-extraneous-require": "error",
8
- // "node/no-missing-import": "error",
6
+ "node/no-extraneous-import": "error",
7
+ // "node/no-extraneous-require": "error",
8
+ "node/no-missing-import": "error",
9
9
  // "node/no-missing-require": "error",
10
- "node/no-new-require": "error",
10
+ // "node/no-new-require": "error",
11
11
  "node/no-path-concat": "error",
12
12
  "node/no-process-exit": "error",
13
13
  "node/no-unpublished-bin": "error",
@@ -15,16 +15,13 @@ module.exports = {
15
15
 
16
16
  "node/no-unpublished-require": "error",
17
17
  "node/no-unsupported-features/es-builtins": "error",
18
- // "node/no-unsupported-features/es-syntax": "error",
18
+ "node/no-unsupported-features/es-syntax": "error",
19
19
  "node/no-unsupported-features/node-builtins": "error",
20
20
  "node/process-exit-as-throw": "error",
21
21
  "node/shebang": "error",
22
- // "node/callback-return": "error", 問題有り
23
-
24
22
 
25
23
  "node/no-deprecated-api": "error",
26
24
 
27
- "node/exports-style": [ "error", "exports" ],
28
25
  "node/global-require": "error",
29
26
  "node/no-process-env": "error",
30
27
  "node/prefer-global/buffer": [ "error", "always" ],
@@ -332,7 +332,7 @@ module.exports = {
332
332
 
333
333
 
334
334
  /* --- Fast-and-dirty code prevention --------------------------------------------------------------------------- */
335
- "@typescript-eslint/ban-ts-comment": "error",
335
+ "@typescript-eslint/ban-ts-comment": [ "error", { minimumDescriptionLength: 20 } ],
336
336
 
337
337
  "@typescript-eslint/ban-types": "error",
338
338
 
@@ -9,9 +9,7 @@ module.exports = {
9
9
 
10
10
  parserOptions: {
11
11
  parser: "@typescript-eslint/parser",
12
- project: "tsconfig.json",
13
- extraFileExtensions: [ ".vue" ],
14
- tsconfigRootDir: "./"
12
+ extraFileExtensions: [ ".vue" ]
15
13
  },
16
14
 
17
15
  rules: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamato-daiwa/style_guides",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "The guidelines for ESLint, Pug and Stylus.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,15 +16,15 @@
16
16
  ],
17
17
  "license": "MIT",
18
18
  "devDependencies": {
19
- "typescript": "4.7.2"
19
+ "typescript": "4.7.3"
20
20
  },
21
21
  "dependencies": {
22
- "@typescript-eslint/eslint-plugin": "5.26.0",
23
- "@typescript-eslint/parser": "5.26.0",
24
- "eslint": "8.16.0",
22
+ "@typescript-eslint/eslint-plugin": "5.27.0",
23
+ "@typescript-eslint/parser": "5.27.0",
24
+ "eslint": "8.17.0",
25
25
  "eslint-plugin-import": "2.26.0",
26
26
  "eslint-plugin-node": "11.1.0",
27
- "eslint-plugin-vue": "9.0.1",
27
+ "eslint-plugin-vue": "9.1.0",
28
28
  "eslint-plugin-vue-pug": "0.5.0"
29
29
  },
30
30
  "files": [