chore(eslint-config): update dependencies test cases (#10221)

* chore(eslint-config): update dependencies, test cases

* chore: update file .lock

* fix: wrong .lock file

* fix: code style

* chore: update `eslint-plugin-vue`
This commit is contained in:
zoy-l
2022-01-30 11:13:54 +08:00
committed by GitHub
parent f65c4198dc
commit 07dfa9b981
11 changed files with 6249 additions and 1805 deletions

View File

@@ -20,9 +20,11 @@ async function lintProject(name) {
test('a vue project should pass lint', async () => {
const rest = await lintProject('vue');
expect([
'no-const-assign',
'@typescript-eslint/no-unused-vars',
'vue/multi-word-component-names',
'no-undef',
]).toEqual(rest);
});
@@ -32,6 +34,7 @@ test('a vue-tsx project should pass lint', async () => {
expect([
'@typescript-eslint/no-unused-vars',
'vue/multi-word-component-names',
'vue/no-ref-as-operand',
'@typescript-eslint/no-empty-interface',
]).toEqual(rest);

View File

@@ -8,6 +8,7 @@
const a = 1;
a = 1;
export default {
name: 'Todo',
data() {
return {
arr: [1, 2, 3],