1 Star 0 Fork 1.3K

joybou/dgiot-dashboard

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
.eslintrc.js 3.72 KB
Copy Edit Raw Blame History
h7ml authored 2021-11-17 20:05 . feat(lowcode): lowcode save put
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/joybou/dgiot-dashboard.git
git@gitee.com:joybou/dgiot-dashboard.git
joybou
dgiot-dashboard
dgiot-dashboard
master

Search