@enormora/eslint-config-vue-ts 0.0.1 → 0.0.3

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.
Files changed (2) hide show
  1. package/package.json +8 -3
  2. package/vue-ts.js +25 -4
package/package.json CHANGED
@@ -4,17 +4,22 @@
4
4
  "Christian Rackerseder <github@echooff.de>"
5
5
  ],
6
6
  "dependencies": {
7
- "@typescript-eslint/parser": "8.26.1",
8
- "globals": "16.0.0"
7
+ "@typescript-eslint/parser": "8.39.0",
8
+ "eslint-plugin-vue": "10.4.0",
9
+ "globals": "16.0.0",
10
+ "vue-eslint-parser": "10.2.0"
9
11
  },
10
12
  "description": "Enormora’s ESLint Vue with TypeScript configuration",
11
13
  "license": "MIT",
12
14
  "main": "vue-ts.js",
13
15
  "name": "@enormora/eslint-config-vue-ts",
16
+ "peerDependencies": {
17
+ "@enormora/eslint-config-typescript": "0.0.21"
18
+ },
14
19
  "repository": {
15
20
  "type": "git",
16
21
  "url": "git://github.com/enormora/eslint-config.git"
17
22
  },
18
23
  "type": "module",
19
- "version": "0.0.1"
24
+ "version": "0.0.3"
20
25
  }
package/vue-ts.js CHANGED
@@ -1,14 +1,32 @@
1
1
  import typescriptParser from '@typescript-eslint/parser';
2
+ import vueParser from 'vue-eslint-parser';
3
+ import vuePlugin from 'eslint-plugin-vue';
2
4
  import globals from 'globals';
5
+ import { typescriptConfig } from '@enormora/eslint-config-typescript/typescript.js';
3
6
 
4
7
  export const vueConfig = {
5
- parser: 'vue-eslint-parser',
6
8
  languageOptions: {
7
- parser: typescriptParser,
8
- globals: {
9
- ...globals['shared-node-browser']
9
+ parser: vueParser,
10
+ parserOptions: {
11
+ parser: typescriptParser,
12
+ extraFileExtensions: ['.vue'],
13
+ warnOnUnsupportedTypeScriptVersion: false,
14
+ sourceType: 'module',
15
+ ecmaFeatures: {
16
+ jsx: false,
17
+ globalReturn: false
18
+ },
19
+ projectService: true,
20
+ project: 'tsconfig.json',
21
+ globals: globals['shared-node-browser']
10
22
  }
11
23
  },
24
+ processor: 'vue/vue',
25
+ plugins: {
26
+ ...typescriptConfig.plugins,
27
+
28
+ vue: vuePlugin
29
+ },
12
30
  rules: {
13
31
  'vue/comment-directive': 'error',
14
32
  'vue/jsx-uses-vars': 'error',
@@ -143,6 +161,7 @@ export const vueConfig = {
143
161
  'vue/define-emits-declaration': 'error',
144
162
  'vue/define-macros-order': 'off',
145
163
  'vue/define-props-declaration': 'off',
164
+ 'vue/define-props-destructuring': 'error',
146
165
  'vue/enforce-style-attribute': 'off',
147
166
  'vue/html-button-has-type': 'off',
148
167
  'vue/html-comment-content-newline': 'off',
@@ -161,6 +180,7 @@ export const vueConfig = {
161
180
  'vue/no-empty-component-block': 'error',
162
181
  'vue/no-import-compiler-macros': 'off',
163
182
  'vue/no-multiple-objects-in-class': 'error',
183
+ 'vue/no-negated-v-if-condition': 'error',
164
184
  'vue/no-potential-component-option-typo': 'error',
165
185
  'vue/no-ref-object-reactivity-loss': 'off',
166
186
  'vue/no-restricted-block': 'error',
@@ -241,6 +261,7 @@ export const vueConfig = {
241
261
  'vue/no-implicit-coercion': 'off',
242
262
  'vue/no-irregular-whitespace': 'off',
243
263
  'vue/no-loss-of-precision': 'off',
264
+ 'vue/no-negated-condition': 'off',
244
265
  'vue/no-restricted-syntax': 'off',
245
266
  'vue/no-sparse-arrays': 'off',
246
267
  'vue/no-useless-concat': 'off',