@alicevia/eslint-config-vue 1.0.11 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +31 -10
  2. package/package.json +3 -5
package/index.js CHANGED
@@ -1,10 +1,31 @@
1
- module.exports = {
2
- parser: 'vue-eslint-parser',
3
- parserOptions: {
4
- parser: '@typescript-eslint/parser',
5
- },
6
- extends: ['@alicevia/eslint-config-ts', 'plugin:vue/vue3-recommended'],
7
- rules: {
8
- 'vue/multi-word-component-names': 0,
9
- },
10
- }
1
+ module.exports = {
2
+ overrides: [
3
+ {
4
+ files: ['*.vue'],
5
+ parser: 'vue-eslint-parser',
6
+ parserOptions: {
7
+ parser: '@typescript-eslint/parser'
8
+ },
9
+ extends: ['plugin:vue/vue3-recommended', '@alicevia/basic'],
10
+ rules: {
11
+ 'vue/no-reserved-component-names': 'off',
12
+ 'vue/no-setup-props-destructure': 'off',
13
+ 'no-unused-vars': 'off',
14
+ 'vue/multi-word-component-names': 0,
15
+ 'vue/html-self-closing': ['error', {
16
+ html: {
17
+ void: 'never',
18
+ normal: 'never',
19
+ component: 'never'
20
+ },
21
+ svg: 'always',
22
+ math: 'always'
23
+ }],
24
+ 'vue/max-attributes-per-line': 'off',
25
+ 'vue/no-reserved-component-names': 'off',
26
+ 'vue/no-setup-props-destructure': 'off'
27
+
28
+ }
29
+ }
30
+ ]
31
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicevia/eslint-config-vue",
3
- "version": "1.0.11",
3
+ "version": "1.0.14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -13,10 +13,8 @@
13
13
  "access": "public"
14
14
  },
15
15
  "dependencies": {
16
- "@alicevia/eslint-config-ts": "1.0.11"
17
- },
18
- "peerDependencies": {
19
- "eslint-plugin-vue": "^8.7.1",
16
+ "@alicevia/eslint-config-ts": "1.0.14",
17
+ "eslint-plugin-vue": "^9.0.1",
20
18
  "vue-eslint-parser": "^9.0.2"
21
19
  },
22
20
  "scripts": {