mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +00:00
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:
@@ -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);
|
||||
|
@@ -8,6 +8,7 @@
|
||||
const a = 1;
|
||||
a = 1;
|
||||
export default {
|
||||
name: 'Todo',
|
||||
data() {
|
||||
return {
|
||||
arr: [1, 2, 3],
|
||||
|
Reference in New Issue
Block a user