@alicevia/eslint-config-vue 1.0.15 → 1.0.16

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 +37 -31
  2. package/package.json +2 -3
package/index.js CHANGED
@@ -1,31 +1,37 @@
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
- }
1
+ module.exports = {
2
+ env: {
3
+ browser: true,
4
+ es2021: true,
5
+ node: true,
6
+ },
7
+ extends: [
8
+ 'eslint:recommended',
9
+ 'plugin:vue/vue3-essential',
10
+ 'plugin:@typescript-eslint/recommended',
11
+ ],
12
+ overrides: [
13
+ ],
14
+ parser: 'vue-eslint-parser',
15
+ parserOptions: {
16
+ ecmaVersion: 'latest',
17
+ sourceType: 'module',
18
+ parser: '@typescript-eslint/parser',
19
+ },
20
+ plugins: [
21
+ 'vue',
22
+ '@typescript-eslint',
23
+ ],
24
+ rules: {
25
+ quotes: ['error', 'single'],
26
+ 'quote-props': ['error', 'as-needed'],
27
+ indent: ['error', 2],
28
+ semi: ['error', 'never'],
29
+ 'comma-dangle': ['error', 'always-multiline'],
30
+ 'space-before-function-paren': ['error', 'always'],
31
+ 'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0,maxBOF: 0 }],
32
+ 'key-spacing': ['error', { afterColon: true }],
33
+ 'arrow-spacing': ['error',{ before: true, after: true }],
34
+ 'object-curly-spacing': ['error', 'always'],
35
+ 'no-console': ['error', { allow: ['warn', 'error'] }],
36
+ },
37
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicevia/eslint-config-vue",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -14,8 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "eslint-plugin-vue": "^9.0.1",
17
- "vue-eslint-parser": "^9.0.2",
18
- "@alicevia/eslint-config-ts": "1.0.15"
17
+ "vue-eslint-parser": "^9.0.2"
19
18
  },
20
19
  "scripts": {
21
20
  "patch": "npm version patch"