@enormora/eslint-config-vue-ts 0.0.19 → 0.0.21

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/package.json CHANGED
@@ -4,22 +4,26 @@
4
4
  "Christian Rackerseder <github@echooff.de>"
5
5
  ],
6
6
  "dependencies": {
7
- "@typescript-eslint/parser": "8.58.1",
8
- "eslint-plugin-vue": "10.8.0",
9
- "globals": "17.5.0",
7
+ "@typescript-eslint/parser": "8.59.3",
8
+ "eslint-plugin-vue": "10.9.1",
9
+ "globals": "17.6.0",
10
10
  "vue-eslint-parser": "10.4.0"
11
11
  },
12
12
  "description": "Enormora’s ESLint Vue with TypeScript configuration",
13
+ "exports": {
14
+ ".": {
15
+ "import": "./presets/vue-ts/vue-ts.js"
16
+ }
17
+ },
13
18
  "license": "MIT",
14
- "main": "vue-ts.js",
15
19
  "name": "@enormora/eslint-config-vue-ts",
16
20
  "peerDependencies": {
17
- "@enormora/eslint-config-typescript": "0.0.35"
21
+ "@enormora/eslint-config-typescript": "0.0.37"
18
22
  },
19
23
  "repository": {
20
24
  "type": "git",
21
25
  "url": "git://github.com/enormora/eslint-config.git"
22
26
  },
23
27
  "type": "module",
24
- "version": "0.0.19"
28
+ "version": "0.0.21"
25
29
  }
@@ -1,23 +1,23 @@
1
1
  import typescriptParser from '@typescript-eslint/parser';
2
- import vueParser from 'vue-eslint-parser';
3
2
  import vuePlugin from 'eslint-plugin-vue';
4
3
  import globals from 'globals';
5
- import { typescriptConfig } from '@enormora/eslint-config-typescript/typescript.js';
4
+ import vueParser from 'vue-eslint-parser';
5
+ import { typescriptConfig } from '@enormora/eslint-config-typescript';
6
6
 
7
7
  export const vueConfig = {
8
8
  languageOptions: {
9
9
  parser: vueParser,
10
+ globals: globals['shared-node-browser'],
10
11
  parserOptions: {
11
12
  parser: typescriptParser,
12
- extraFileExtensions: ['.vue'],
13
+ extraFileExtensions: [ '.vue' ],
13
14
  warnOnUnsupportedTypeScriptVersion: false,
14
15
  sourceType: 'module',
15
16
  ecmaFeatures: {
16
17
  jsx: false,
17
18
  globalReturn: false
18
19
  },
19
- projectService: true,
20
- globals: globals['shared-node-browser']
20
+ projectService: true
21
21
  }
22
22
  },
23
23
  processor: 'vue/vue',
@@ -227,8 +227,10 @@ export const vueConfig = {
227
227
  'vue/prefer-define-options': 'error',
228
228
  'vue/prefer-prop-type-boolean-first': 'off',
229
229
  'vue/prefer-separate-static-class': 'error',
230
+ 'vue/prefer-single-event-payload': 'error',
230
231
  'vue/prefer-true-attribute-shorthand': 'off',
231
232
  'vue/prefer-use-template-ref': 'off',
233
+ 'vue/prefer-v-model': 'error',
232
234
  'vue/require-default-export': 'off',
233
235
  'vue/require-direct-export': 'error',
234
236
  'vue/require-emit-validator': 'error',
package/readme.md CHANGED
@@ -13,17 +13,17 @@ npm install --save-dev @enormora/eslint-config-base @enormora/eslint-config-type
13
13
  Create an ESLint configuration file (e.g., `eslint.config.js`) in your project and add the base and react config to the configuration array:
14
14
 
15
15
  ```javascript
16
- import { baseConfig } from '@enormora/eslint-config-base';
17
- import { vueConfig } from '@enormora/eslint-config-vue-ts';
16
+ import { baseConfig } from "@enormora/eslint-config-base";
17
+ import { vueConfig } from "@enormora/eslint-config-vue-ts";
18
18
 
19
19
  export default [
20
- {
21
- ignores: ['dist/**/*']
22
- },
23
- baseConfig,
24
- {
25
- ...vueConfig,
26
- files: ['src/**/*.vue']
27
- }
20
+ {
21
+ ignores: ["dist/**/*"],
22
+ },
23
+ ...baseConfig,
24
+ {
25
+ ...vueConfig,
26
+ files: ["src/**/*.vue"],
27
+ },
28
28
  ];
29
29
  ```
package/sbom.cdx.json ADDED
@@ -0,0 +1,118 @@
1
+ {
2
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
3
+ "bomFormat": "CycloneDX",
4
+ "specVersion": "1.6",
5
+ "version": 1,
6
+ "metadata": {
7
+ "tools": {
8
+ "components": [
9
+ {
10
+ "type": "application",
11
+ "name": "packtory",
12
+ "version": "0.0.15"
13
+ }
14
+ ]
15
+ },
16
+ "component": {
17
+ "type": "library",
18
+ "name": "@enormora/eslint-config-vue-ts",
19
+ "version": "0.0.21",
20
+ "bom-ref": "pkg:npm/@enormora/eslint-config-vue-ts@0.0.21",
21
+ "purl": "pkg:npm/@enormora/eslint-config-vue-ts@0.0.21"
22
+ }
23
+ },
24
+ "components": [
25
+ {
26
+ "type": "library",
27
+ "name": "@enormora/eslint-config-typescript",
28
+ "version": "0.0.37",
29
+ "bom-ref": "pkg:npm/@enormora/eslint-config-typescript@0.0.37",
30
+ "scope": "optional",
31
+ "licenses": [
32
+ {
33
+ "expression": "MIT"
34
+ }
35
+ ],
36
+ "purl": "pkg:npm/@enormora/eslint-config-typescript@0.0.37"
37
+ },
38
+ {
39
+ "type": "library",
40
+ "name": "@typescript-eslint/parser",
41
+ "version": "8.59.3",
42
+ "bom-ref": "pkg:npm/@typescript-eslint/parser@8.59.3",
43
+ "scope": "required",
44
+ "licenses": [
45
+ {
46
+ "expression": "MIT"
47
+ }
48
+ ],
49
+ "purl": "pkg:npm/@typescript-eslint/parser@8.59.3"
50
+ },
51
+ {
52
+ "type": "library",
53
+ "name": "eslint-plugin-vue",
54
+ "version": "10.9.1",
55
+ "bom-ref": "pkg:npm/eslint-plugin-vue@10.9.1",
56
+ "scope": "required",
57
+ "licenses": [
58
+ {
59
+ "expression": "MIT"
60
+ }
61
+ ],
62
+ "purl": "pkg:npm/eslint-plugin-vue@10.9.1"
63
+ },
64
+ {
65
+ "type": "library",
66
+ "name": "globals",
67
+ "version": "17.6.0",
68
+ "bom-ref": "pkg:npm/globals@17.6.0",
69
+ "scope": "required",
70
+ "licenses": [
71
+ {
72
+ "expression": "MIT"
73
+ }
74
+ ],
75
+ "purl": "pkg:npm/globals@17.6.0"
76
+ },
77
+ {
78
+ "type": "library",
79
+ "name": "vue-eslint-parser",
80
+ "version": "10.4.0",
81
+ "bom-ref": "pkg:npm/vue-eslint-parser@10.4.0",
82
+ "scope": "required",
83
+ "licenses": [
84
+ {
85
+ "expression": "MIT"
86
+ }
87
+ ],
88
+ "purl": "pkg:npm/vue-eslint-parser@10.4.0"
89
+ }
90
+ ],
91
+ "dependencies": [
92
+ {
93
+ "ref": "pkg:npm/@enormora/eslint-config-typescript@0.0.37"
94
+ },
95
+ {
96
+ "ref": "pkg:npm/@enormora/eslint-config-vue-ts@0.0.21",
97
+ "dependsOn": [
98
+ "pkg:npm/@enormora/eslint-config-typescript@0.0.37",
99
+ "pkg:npm/@typescript-eslint/parser@8.59.3",
100
+ "pkg:npm/eslint-plugin-vue@10.9.1",
101
+ "pkg:npm/globals@17.6.0",
102
+ "pkg:npm/vue-eslint-parser@10.4.0"
103
+ ]
104
+ },
105
+ {
106
+ "ref": "pkg:npm/@typescript-eslint/parser@8.59.3"
107
+ },
108
+ {
109
+ "ref": "pkg:npm/eslint-plugin-vue@10.9.1"
110
+ },
111
+ {
112
+ "ref": "pkg:npm/globals@17.6.0"
113
+ },
114
+ {
115
+ "ref": "pkg:npm/vue-eslint-parser@10.4.0"
116
+ }
117
+ ]
118
+ }