Skip to content

Commit

Permalink
fix: eslintr.js rules
Browse files Browse the repository at this point in the history
  • Loading branch information
didoda committed Sep 26, 2023
1 parent 97f0033 commit 0cceac1
Showing 1 changed file with 59 additions and 58 deletions.
117 changes: 59 additions & 58 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,65 +23,66 @@ module.exports = {
'no-extra-semi': 'off',
'no-console': 'off',
'semi': 'off',
'vue/html-indent': ['error', 4],

// override/add rules settings here
"vue/attributes-order": ["warn", {
"order": [
"GLOBAL",
"OTHER_ATTR",
"DEFINITION",
"TWO_WAY_BINDING",
"OTHER_DIRECTIVES",
"EVENTS",
"RENDER_MODIFIERS",
"CONTENT",
"CONDITIONALS",
],
"alphabetical": false
}],
"vue/order-in-components": ["warn", {
"order": [
["template", "render"],
"extends",
"el",
"name",
"key",
"parent",
"functional",
["delimiters", "comments"],
["components", "directives", "filters"],
"mixins",
["provide", "inject"],
"ROUTER_GUARDS",
"layout",
"middleware",
"validate",
"scrollToTop",
"transition",
"loading",
"inheritAttrs",
"model",
["props", "propsData"],
"emits",
"setup",
"asyncData",
"data",
"fetch",
"head",
"computed",
"watch",
"watchQuery",
"LIFECYCLE_HOOKS",
"methods",
"renderError"
]
}],
"vue/first-attribute-linebreak": ["warn", {
"singleline": "beside",
"multiline": "ignore"
}],
"vue/multi-word-component-names": ["warn"],
"vue/no-v-html": ["off"],
// override/add rules settings here
'vue/attributes-order': ['warn', {
'order': [
'GLOBAL',
'OTHER_ATTR',
'DEFINITION',
'TWO_WAY_BINDING',
'OTHER_DIRECTIVES',
'EVENTS',
'RENDER_MODIFIERS',
'CONTENT',
'CONDITIONALS',
],
'alphabetical': false
}],
'vue/order-in-components': ['warn', {
'order': [
['template', 'render'],
'extends',
'el',
'name',
'key',
'parent',
'functional',
['delimiters', 'comments'],
['components', 'directives', 'filters'],
'mixins',
['provide', 'inject'],
'ROUTER_GUARDS',
'layout',
'middleware',
'validate',
'scrollToTop',
'transition',
'loading',
'inheritAttrs',
'model',
['props', 'propsData'],
'emits',
'setup',
'asyncData',
'data',
'fetch',
'head',
'computed',
'watch',
'watchQuery',
'LIFECYCLE_HOOKS',
'methods',
'renderError'
]
}],
'vue/first-attribute-linebreak': ['warn', {
'singleline': 'beside',
'multiline': 'ignore'
}],
'vue/multi-word-component-names': ['warn'],
'vue/no-v-html': ['off'],
},
parserOptions: {
ecmaVersion: 2021,
Expand Down

0 comments on commit 0cceac1

Please sign in to comment.