1 Star 0 Fork 1

优质收藏/histoire

forked from mirrors_logaretm/histoire 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
Guillaume Chau 提交于 2022-08-23 23:25 . test(lint): fix
module.exports = {
root: true,
env: {
browser: true,
},
extends: [
'plugin:vue/vue3-recommended',
'@vue/standard',
'@vue/typescript/recommended',
],
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 2020,
},
globals: {
name: 'off',
defineExpose: false,
},
rules: {
'vue/html-closing-bracket-newline': [
'error',
{
singleline: 'never',
multiline: 'always',
},
],
'no-var': ['error'],
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'none',
},
singleline: {
delimiter: 'comma',
},
},
],
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/no-use-before-define': 'off',
'comma-dangle': ['error', 'always-multiline'],
'vue/no-multiple-template-root': 'off',
indent: 'off',
'@typescript-eslint/indent': ['error', 2],
'no-use-before-define': 'off',
quotes: ['error', 'single', { allowTemplateLiterals: true }],
'vue/multi-word-component-names': 'warn',
'@typescript-eslint/type-annotation-spacing': ['error'],
'func-call-spacing': 'off',
'@typescript-eslint/func-call-spacing': ['error'],
'@typescript-eslint/no-empty-interface': 'off',
},
overrides: [
{
files: ['*.vue'],
rules: {
'import/first': 'off',
},
globals: {
defineProps: false,
defineEmits: false,
},
},
{
files: ['**/cypress/**'],
extends: [
'plugin:cypress/recommended',
],
},
{
files: ['packages/histoire-vendors/*.d.ts'],
rules: {
'import/export': 'off',
},
},
{
files: ['packages/histoire-vendors/src/**/*.ts'],
rules: {
'import/no-named-default': 'off',
},
},
],
ignorePatterns: [
'node_modules/',
'dist/',
'histoire-dist/',
'generated/',
'!.*',
'.nuxt/',
'examples/sveltekit',
],
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/high-quality-collection/histoire.git
git@gitee.com:high-quality-collection/histoire.git
high-quality-collection
histoire
histoire
main

搜索帮助