@naturalcycles/dev-lib 13.37.0 → 13.37.1

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.
@@ -445,53 +445,5 @@ module.exports = {
445
445
  '@typescript-eslint/dot-notation': 0, // not always desireable
446
446
  '@typescript-eslint/consistent-indexed-object-style': 0, // Record looses the name of the key
447
447
  '@typescript-eslint/no-unsafe-enum-comparison': 0, // not practically helpful
448
- // non-default vue rules
449
- 'vue/block-order': [
450
- 'error',
451
- {
452
- order: ['script', 'template', 'style'],
453
- },
454
- ],
455
- 'vue/component-api-style': [2, ['script-setup', 'composition', 'composition-vue2']],
456
- 'vue/component-name-in-template-casing': [
457
- 2,
458
- 'PascalCase',
459
- {
460
- registeredComponentsOnly: true,
461
- },
462
- ],
463
- 'vue/component-options-name-casing': [2, 'PascalCase'],
464
- 'vue/custom-event-name-casing': [2, 'camelCase'],
465
- 'vue/define-emits-declaration': [2, 'type-based'],
466
- 'vue/define-macros-order': 2,
467
- 'vue/define-props-declaration': 2,
468
- 'vue/html-comment-content-spacing': 2,
469
- 'vue/match-component-file-name': [
470
- 2,
471
- {
472
- extensions: ['vue', 'jsx'],
473
- shouldMatchCase: true,
474
- },
475
- ],
476
- 'vue/match-component-import-name': 2,
477
- 'vue/no-boolean-default': 2,
478
- 'vue/no-deprecated-model-definition': 2,
479
- 'vue/no-multiple-objects-in-class': 2,
480
- 'vue/no-ref-object-destructure': 2,
481
- 'vue/no-required-prop-with-default': 2,
482
- 'vue/no-root-v-if': 2,
483
- 'vue/no-this-in-before-route-enter': 2,
484
- 'vue/padding-line-between-blocks': 2,
485
- 'vue/prefer-define-options': 2,
486
- 'vue/prefer-separate-static-class': 2,
487
- 'vue/require-direct-export': 2,
488
- 'vue/require-emit-validator': 2,
489
- 'vue/require-expose': 2,
490
- 'vue/require-macro-variable-name': 2,
491
- 'vue/require-typed-object-prop': 2,
492
- 'vue/require-typed-ref': 2,
493
- 'vue/v-for-delimiter-style': [2, 'of'],
494
- 'vue/valid-define-options': 2,
495
- 'vue/eqeqeq': 2,
496
448
  },
497
449
  }
@@ -0,0 +1,52 @@
1
+ module.exports = {
2
+ rules: {
3
+ // non-default vue rules
4
+ 'vue/block-order': [
5
+ 'error',
6
+ {
7
+ order: ['script', 'template', 'style'],
8
+ },
9
+ ],
10
+ 'vue/component-api-style': [2, ['script-setup', 'composition', 'composition-vue2']],
11
+ 'vue/component-name-in-template-casing': [
12
+ 2,
13
+ 'PascalCase',
14
+ {
15
+ registeredComponentsOnly: true,
16
+ },
17
+ ],
18
+ 'vue/component-options-name-casing': [2, 'PascalCase'],
19
+ 'vue/custom-event-name-casing': [2, 'camelCase'],
20
+ 'vue/define-emits-declaration': [2, 'type-based'],
21
+ 'vue/define-macros-order': 2,
22
+ 'vue/define-props-declaration': 2,
23
+ 'vue/html-comment-content-spacing': 2,
24
+ 'vue/match-component-file-name': [
25
+ 2,
26
+ {
27
+ extensions: ['vue', 'jsx'],
28
+ shouldMatchCase: true,
29
+ },
30
+ ],
31
+ 'vue/match-component-import-name': 2,
32
+ 'vue/no-boolean-default': 2,
33
+ 'vue/no-deprecated-model-definition': 2,
34
+ 'vue/no-multiple-objects-in-class': 2,
35
+ 'vue/no-ref-object-destructure': 2,
36
+ 'vue/no-required-prop-with-default': 2,
37
+ 'vue/no-root-v-if': 2,
38
+ 'vue/no-this-in-before-route-enter': 2,
39
+ 'vue/padding-line-between-blocks': 2,
40
+ 'vue/prefer-define-options': 2,
41
+ 'vue/prefer-separate-static-class': 2,
42
+ 'vue/require-direct-export': 2,
43
+ 'vue/require-emit-validator': 2,
44
+ 'vue/require-expose': 2,
45
+ 'vue/require-macro-variable-name': 2,
46
+ 'vue/require-typed-object-prop': 2,
47
+ 'vue/require-typed-ref': 2,
48
+ 'vue/v-for-delimiter-style': [2, 'of'],
49
+ 'vue/valid-define-options': 2,
50
+ 'vue/eqeqeq': 2,
51
+ },
52
+ }
@@ -13,6 +13,7 @@ module.exports = {
13
13
  'plugin:unicorn/recommended',
14
14
  'plugin:vue/recommended',
15
15
  './eslint-rules.js',
16
+ './eslint-vue-rules.js',
16
17
  'prettier', // must go last
17
18
  ],
18
19
  env: {
@@ -13,6 +13,7 @@ module.exports = {
13
13
  'plugin:unicorn/recommended',
14
14
  'plugin:vue/vue3-recommended',
15
15
  './eslint-rules.js',
16
+ './eslint-vue-rules.js',
16
17
  'prettier', // must go last
17
18
  ],
18
19
  env: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "13.37.0",
3
+ "version": "13.37.1",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",