Skip to content

Commit b9feb67

Browse files
authored
Chores: Remove eslint-plugin-vue-libs (#1249)
* Chores: Remove eslint-plugin-vue-libs * update
1 parent fa6ad5c commit b9feb67

File tree

4 files changed

+120
-36
lines changed

4 files changed

+120
-36
lines changed

.eslintrc.js

Lines changed: 92 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,97 @@
33
module.exports = {
44
root: true,
55
parserOptions: {
6-
ecmaVersion: 6
6+
ecmaVersion: 2018
77
},
88
env: {
9+
es6: true,
910
node: true,
1011
mocha: true
1112
},
12-
extends: [
13-
'plugin:eslint-plugin/recommended',
14-
'plugin:vue-libs/recommended',
15-
'prettier'
16-
],
13+
extends: ['plugin:eslint-plugin/recommended', 'prettier'],
1714
plugins: ['eslint-plugin', 'prettier'],
1815
rules: {
16+
'accessor-pairs': 2,
17+
camelcase: [2, { properties: 'never' }],
18+
'constructor-super': 2,
19+
eqeqeq: [2, 'allow-null'],
20+
'handle-callback-err': [2, '^(err|error)$'],
21+
'jsx-quotes': [2, 'prefer-single'],
22+
'new-cap': [2, { newIsCap: true, capIsNew: false }],
23+
'new-parens': 2,
24+
'no-array-constructor': 2,
25+
'no-caller': 2,
26+
'no-class-assign': 2,
27+
'no-cond-assign': 2,
28+
'no-const-assign': 2,
29+
'no-control-regex': 2,
30+
'no-delete-var': 2,
31+
'no-dupe-args': 2,
32+
'no-dupe-class-members': 2,
33+
'no-dupe-keys': 2,
34+
'no-duplicate-case': 2,
35+
'no-empty-character-class': 2,
36+
'no-empty-pattern': 2,
37+
'no-eval': 2,
38+
'no-ex-assign': 2,
39+
'no-extend-native': 2,
40+
'no-extra-bind': 2,
41+
'no-extra-boolean-cast': 2,
42+
'no-extra-parens': [2, 'functions'],
43+
'no-fallthrough': 2,
44+
'no-floating-decimal': 2,
45+
'no-func-assign': 2,
46+
'no-implied-eval': 2,
47+
'no-inner-declarations': [2, 'functions'],
48+
'no-invalid-regexp': 2,
49+
'no-irregular-whitespace': 2,
50+
'no-iterator': 2,
51+
'no-label-var': 2,
52+
'no-labels': [2, { allowLoop: false, allowSwitch: false }],
53+
'no-lone-blocks': 2,
54+
'no-multi-spaces': [2, { ignoreEOLComments: true }],
55+
'no-multi-str': 2,
56+
'no-native-reassign': 2,
57+
'no-negated-in-lhs': 2,
58+
'no-new-object': 2,
59+
'no-new-require': 2,
60+
'no-new-symbol': 2,
61+
'no-new-wrappers': 2,
62+
'no-obj-calls': 2,
63+
'no-octal': 2,
64+
'no-octal-escape': 2,
65+
'no-path-concat': 2,
66+
'no-proto': 2,
67+
'no-redeclare': 2,
68+
'no-regex-spaces': 2,
69+
'no-return-assign': [2, 'except-parens'],
70+
'no-self-assign': 2,
71+
'no-self-compare': 2,
72+
'no-sequences': 2,
73+
'no-shadow-restricted-names': 2,
74+
'no-sparse-arrays': 2,
75+
'no-this-before-super': 2,
76+
'no-throw-literal': 2,
77+
'no-undef': 2,
78+
'no-undef-init': 2,
79+
'no-unexpected-multiline': 2,
80+
'no-unmodified-loop-condition': 2,
81+
'no-unneeded-ternary': [2, { defaultAssignment: false }],
82+
'no-unreachable': 2,
83+
'no-unsafe-finally': 2,
84+
'no-unused-vars': [2, { vars: 'all', args: 'none' }],
85+
'no-useless-call': 2,
86+
'no-useless-computed-key': 2,
87+
'no-useless-constructor': 2,
88+
'no-useless-escape': 0,
89+
'no-with': 2,
90+
'one-var': [2, { initialized: 'never' }],
91+
'use-isnan': 2,
92+
'valid-typeof': 2,
93+
'wrap-iife': [2, 'any'],
94+
yoda: [2, 'never'],
95+
'prefer-const': 2,
96+
1997
'prettier/prettier': 'error',
2098
'eslint-plugin/report-message-format': ['error', "^[A-Z`'{].*\\.$"],
2199
'eslint-plugin/prefer-placeholders': 'error',
@@ -37,6 +115,14 @@ module.exports = {
37115
'dot-notation': 'error'
38116
},
39117
overrides: [
118+
{
119+
files: ['./**/*.vue'],
120+
parser: require.resolve('vue-eslint-parser'),
121+
parserOptions: {
122+
ecmaVersion: 2020,
123+
sourceType: 'module'
124+
}
125+
},
40126
{
41127
files: ['lib/rules/*.js'],
42128
rules: {

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"javascriptreact",
99
"vue"
1010
],
11-
"typescript.tsdk": "node_modules/typescript/lib"
11+
"typescript.tsdk": "node_modules/typescript/lib",
12+
"vetur.validation.script": false
1213
}
Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,28 @@
11
<template>
2-
<BaseLayout
3-
v-bind="$attrs"
4-
v-on="$listeners">
5-
<slot
6-
name="sidebar-top"
7-
slot="sidebar-top"
8-
/>
9-
<slot
10-
name="sidebar-bottom"
11-
slot="sidebar-bottom"
12-
/>
13-
<template
14-
slot="page-top">
2+
<BaseLayout v-bind="$attrs" v-on="$listeners">
3+
<slot name="sidebar-top" slot="sidebar-top" />
4+
<slot name="sidebar-bottom" slot="sidebar-bottom" />
5+
<template slot="page-top">
156
<div class="theme-default-content beta-doc-description">
167
<div class="warning custom-block">
178
<p class="custom-block-title">Note</p>
18-
<p>This is a documentation for version <code>{{docVersion}}</code>.<template v-if="hasNotYetBeenReleased"> Also, this documentation may contain content that has not yet been released.</template><br>
19-
To check version <code>6.2.2</code> <a :href="v6DocLink">go here</a>.
20-
To check previous releases <a href="https://github.com/vuejs/eslint-plugin-vue/releases">go here</a>.</p>
9+
<p>
10+
This is a documentation for version <code>{{ docVersion }}</code
11+
>.<template v-if="hasNotYetBeenReleased">
12+
Also, this documentation may contain content that has not yet been
13+
released.</template
14+
><br />
15+
To check version <code>6.2.2</code>
16+
<a :href="v6DocLink">go here</a>. To check previous releases
17+
<a href="https://github.com/vuejs/eslint-plugin-vue/releases"
18+
>go here</a
19+
>.
20+
</p>
2121
</div>
2222
</div>
23-
<slot
24-
name="page-top"
25-
/>
23+
<slot name="page-top" />
2624
</template>
27-
<slot
28-
name="page-bottom"
29-
slot="page-bottom"
30-
/>
25+
<slot name="page-bottom" slot="page-bottom" />
3126
</BaseLayout>
3227
</template>
3328

@@ -44,21 +39,24 @@ export default {
4439
BaseLayout
4540
},
4641
computed: {
47-
docVersion () {
42+
docVersion() {
4843
if (version.major < 7) {
4944
return '7.x'
5045
}
5146
return version.raw
5247
},
53-
hasNotYetBeenReleased () {
48+
hasNotYetBeenReleased() {
5449
if (version.major < 7) {
5550
return true
5651
}
5752
return false
5853
},
59-
v6DocLink () {
54+
v6DocLink() {
6055
if (this.$page.path.endsWith('.html')) {
61-
return `https://github.com/vuejs/eslint-plugin-vue/blob/v6.2.2/docs${this.$page.path.replace(/\.html$/, '')}.md`
56+
return `https://github.com/vuejs/eslint-plugin-vue/blob/v6.2.2/docs${this.$page.path.replace(
57+
/\.html$/,
58+
''
59+
)}.md`
6260
}
6361
return `https://github.com/vuejs/eslint-plugin-vue/blob/v6.2.2/docs${this.$page.path}README.md`
6462
}
@@ -73,7 +71,7 @@ export default {
7371
* ::v-deep .theme-default-content ~ .theme-default-content {
7472
padding-top: 0;
7573
}
76-
* ::v-deep .theme-default-content:not(.custom) h1{
74+
* ::v-deep .theme-default-content:not(.custom) h1 {
7775
margin-top: -3.1rem;
7876
}
7977
</style>

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"eslint-plugin-import": "^2.20.2",
7474
"eslint-plugin-prettier": "^3.1.3",
7575
"eslint-plugin-vue": "file:.",
76-
"eslint-plugin-vue-libs": "^4.0.0",
7776
"eslint4b": "^7.0.0",
7877
"lodash": "^4.17.15",
7978
"mocha": "^7.1.2",

0 commit comments

Comments
 (0)