1 Star 0 Fork 1.3K

圐圙/dgiot-dashboard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 3.72 KB
一键复制 编辑 原始数据 按行查看 历史
h7ml 提交于 2022-02-09 15:20 . feat: pnpm
module.exports = {
root: true,
globals: {
moment: true,
Vue: true,
axios: true,
$: true,
Cookies: true,
downLink: true,
downloadFile: true,
downloadByLink: true,
_: true,
options: true,
Konva: true,
bcrypt: true,
BeFull: true,
JSONEditor: true,
VueAMap: true,
topology: true,
konva: true,
VCharts: true,
CountTo: true,
VueKonva: true,
Mock: true,
md5: true,
Base64: true,
ace: true,
mqtt: true,
COS: true,
paho: true,
Sortable: true,
vuex: true,
VueRouter: true,
clipboard: true,
lodash: true,
VueI18n: true,
XLSX: true,
colors: true,
FileSaver: true,
VueBaiduMap: true,
echarts: true,
screenfull: true,
qs: true,
Qs: true,
jsplumb: true,
JSEncrypt: true,
CodeMirror: true,
nprogress: true,
vueCodemirror: true,
vuedraggable: true,
elementChinaAreaData: true,
vueFlvPlayer: true,
EZUIKit: true,
fuzzy: true,
VueAliplayerV2: true,
},
env: {
node: true,
},
extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier'],
parser: 'vue-eslint-parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true,
},
},
rules: {
'no-unused-labels': 'off',
'no-unused-vars': 'off',
'no-undef': 'off',
'no-redeclare': 'off',
'no-unreachable': 'off',
'no-useless-escape': 'off',
'no-case-declarations': 'off',
'no-dupe-else-if': 'off',
'no-irregular-whitespace': 'off',
'no-prototype-builtins': 'off',
'no-empty': 'off',
'no-dupe-keys': 'off',
'no-self-assign': 'off',
'no-console': 'off',
'no-debugger': 'off',
'vue/no-unused-vars': 'off',
'vue/no-template-shadow': 'off',
'vue/no-unused-components': 'off',
'vue/no-useless-template-attributes': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-v-html': 'off',
'vue/html-self-closing': [
'error',
{
html: {
void: 'any',
normal: 'any',
component: 'always',
},
svg: 'always',
math: 'always',
},
],
// Vue.js风格指南(https://cn.vuejs.org/v2/style-guide/)
// Vue组件排序
'vue/order-in-components': [
'warn',
{
order: [
'el',
'name',
'key',
'parent',
'functional',
['delimiters', 'comments'],
['components', 'directives', 'filters'],
'extends',
'mixins',
['provide', 'inject'],
'ROUTER_GUARDS',
'layout',
'middleware',
'validate',
'scrollToTop',
'transition',
'loading',
'inheritAttrs',
'model',
['props', 'propsData'],
'emits',
'setup',
'fetch',
'asyncData',
'data',
'head',
'computed',
'watch',
'watchQuery',
'LIFECYCLE_HOOKS',
'methods',
['template', 'render'],
'renderError',
],
},
],
// Vue属性排序
'vue/attributes-order': [
'warn',
{
order: [
'DEFINITION',
'LIST_RENDERING',
'CONDITIONALS',
'RENDER_MODIFIERS',
'GLOBAL',
'UNIQUE',
'TWO_WAY_BINDING',
'OTHER_DIRECTIVES',
'OTHER_ATTR',
'EVENTS',
'CONTENT',
],
alphabetical: true, //字母顺序
},
],
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
env: {
jest: true,
},
},
],
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/figure897/dgiot-dashboard.git
git@gitee.com:figure897/dgiot-dashboard.git
figure897
dgiot-dashboard
dgiot-dashboard
master

搜索帮助