Skip to content

Commit

Permalink
chore: fix unit test & disable examples linting temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetinaXD committed Jul 12, 2024
1 parent b469662 commit cd28b95
Show file tree
Hide file tree
Showing 6 changed files with 266 additions and 174 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
node: true
},
root: true,
ignorePatterns: ['**/dist', 'packages/alova/typings/serverhook.d.ts'],
ignorePatterns: ['coverage', 'examples', '**/dist', 'packages/alova/typings/serverhook.d.ts'],
extends: ['airbnb', 'airbnb-typescript', 'prettier'],
parser: '@typescript-eslint/parser',
parserOptions: {
Expand Down
3 changes: 2 additions & 1 deletion examples/react/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ module.exports = {
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off'
}
},
root: true
};
3 changes: 2 additions & 1 deletion examples/svelte/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ module.exports = {
'a11y-no-static-element-interactions': 'off',
'a11y-missing-attribute': 'off',
'import/no-unresolved': 'off'
}
},
root: true
};
3 changes: 2 additions & 1 deletion examples/vue/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ module.exports = {
plugins: ['vue'],
rules: {
// 在这里添加或覆盖规则
}
},
root: true
};
1 change: 1 addition & 0 deletions examples/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@vitejs/plugin-vue": "^5.0.5",
"@vitejs/plugin-vue-jsx": "^4.0.0",
"autoprefixer": "^10.4.19",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-vue": "^9.27.0",
"postcss": "^8.4.39",
"tailwindcss": "^3.4.4",
Expand Down
Loading

0 comments on commit cd28b95

Please sign in to comment.