@alicevia/eslint-config-vue 1.0.18 → 1.0.19

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 +7 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -11,16 +11,16 @@ module.exports = {
11
11
  ],
12
12
  overrides: [
13
13
  {
14
- file:'*.vue',
15
- rules:{
14
+ files: ['*.vue'],
15
+ rules: {
16
16
  'vue/multi-word-component-names': [
17
17
  'error',
18
18
  {
19
19
  ignores: ['index'], //需要忽略的组件名
20
20
  },
21
21
  ],
22
- }
23
- }
22
+ },
23
+ },
24
24
  ],
25
25
  parser: 'vue-eslint-parser',
26
26
  parserOptions: {
@@ -38,10 +38,11 @@ module.exports = {
38
38
  indent: ['error', 2],
39
39
  semi: ['error', 'never'],
40
40
  'comma-dangle': ['error', 'always-multiline'],
41
+ 'comma-spacing': ['error', { before: false, after: true }],
41
42
  'space-before-function-paren': ['error', 'always'],
42
43
  'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0,maxBOF: 0 }],
43
- 'key-spacing': ['error', { mode: 'strict'}],
44
- 'arrow-spacing': ['error',{ btrueefore: true, after: }],
44
+ 'key-spacing': ['error', { mode: 'strict' }],
45
+ 'arrow-spacing': ['error',{ before: true, after: true }],
45
46
  'object-curly-spacing': ['error', 'always'],
46
47
  'no-console': ['error', { allow: ['warn', 'error'] }],
47
48
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicevia/eslint-config-vue",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "files": [