Skip to content

Commit 6dfcd8a

Browse files
committed
feat: copy configs => flat/*
1 parent 0247424 commit 6dfcd8a

8 files changed

+349
-0
lines changed

lib/configs/flat/base.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* IMPORTANT!
3+
* This file has been automatically generated,
4+
* in order to update its content execute "npm run update"
5+
*/
6+
module.exports = {
7+
parser: require.resolve('vue-eslint-parser'),
8+
parserOptions: {
9+
ecmaVersion: 2020,
10+
sourceType: 'module'
11+
},
12+
env: {
13+
browser: true,
14+
es6: true
15+
},
16+
plugins: ['vue'],
17+
rules: {
18+
'vue/comment-directive': 'error',
19+
'vue/jsx-uses-vars': 'error'
20+
}
21+
}

lib/configs/flat/essential.js

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/*
2+
* IMPORTANT!
3+
* This file has been automatically generated,
4+
* in order to update its content execute "npm run update"
5+
*/
6+
module.exports = {
7+
extends: require.resolve('./base'),
8+
rules: {
9+
'vue/multi-word-component-names': 'error',
10+
'vue/no-arrow-functions-in-watch': 'error',
11+
'vue/no-async-in-computed-properties': 'error',
12+
'vue/no-child-content': 'error',
13+
'vue/no-computed-properties-in-data': 'error',
14+
'vue/no-custom-modifiers-on-v-model': 'error',
15+
'vue/no-dupe-keys': 'error',
16+
'vue/no-dupe-v-else-if': 'error',
17+
'vue/no-duplicate-attributes': 'error',
18+
'vue/no-export-in-script-setup': 'error',
19+
'vue/no-multiple-template-root': 'error',
20+
'vue/no-mutating-props': 'error',
21+
'vue/no-parsing-error': 'error',
22+
'vue/no-ref-as-operand': 'error',
23+
'vue/no-reserved-component-names': 'error',
24+
'vue/no-reserved-keys': 'error',
25+
'vue/no-reserved-props': [
26+
'error',
27+
{
28+
vueVersion: 2
29+
}
30+
],
31+
'vue/no-shared-component-data': 'error',
32+
'vue/no-side-effects-in-computed-properties': 'error',
33+
'vue/no-template-key': 'error',
34+
'vue/no-textarea-mustache': 'error',
35+
'vue/no-unused-components': 'error',
36+
'vue/no-unused-vars': 'error',
37+
'vue/no-use-computed-property-like-method': 'error',
38+
'vue/no-use-v-if-with-v-for': 'error',
39+
'vue/no-useless-template-attributes': 'error',
40+
'vue/no-v-for-template-key': 'error',
41+
'vue/no-v-model-argument': 'error',
42+
'vue/no-v-text-v-html-on-component': 'error',
43+
'vue/require-component-is': 'error',
44+
'vue/require-prop-type-constructor': 'error',
45+
'vue/require-render-return': 'error',
46+
'vue/require-v-for-key': 'error',
47+
'vue/require-valid-default-prop': 'error',
48+
'vue/return-in-computed-property': 'error',
49+
'vue/return-in-emits-validator': 'error',
50+
'vue/use-v-on-exact': 'error',
51+
'vue/valid-attribute-name': 'error',
52+
'vue/valid-define-emits': 'error',
53+
'vue/valid-define-props': 'error',
54+
'vue/valid-model-definition': 'error',
55+
'vue/valid-next-tick': 'error',
56+
'vue/valid-template-root': 'error',
57+
'vue/valid-v-bind-sync': 'error',
58+
'vue/valid-v-bind': 'error',
59+
'vue/valid-v-cloak': 'error',
60+
'vue/valid-v-else-if': 'error',
61+
'vue/valid-v-else': 'error',
62+
'vue/valid-v-for': 'error',
63+
'vue/valid-v-html': 'error',
64+
'vue/valid-v-if': 'error',
65+
'vue/valid-v-model': 'error',
66+
'vue/valid-v-on': 'error',
67+
'vue/valid-v-once': 'error',
68+
'vue/valid-v-pre': 'error',
69+
'vue/valid-v-show': 'error',
70+
'vue/valid-v-slot': 'error',
71+
'vue/valid-v-text': 'error'
72+
}
73+
}

lib/configs/flat/no-layout-rules.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
* IMPORTANT!
3+
* This file has been automatically generated,
4+
* in order to update its content execute "npm run update"
5+
*/
6+
module.exports = {
7+
rules: {
8+
'vue/array-bracket-newline': 'off',
9+
'vue/array-bracket-spacing': 'off',
10+
'vue/array-element-newline': 'off',
11+
'vue/arrow-spacing': 'off',
12+
'vue/block-spacing': 'off',
13+
'vue/block-tag-newline': 'off',
14+
'vue/brace-style': 'off',
15+
'vue/comma-dangle': 'off',
16+
'vue/comma-spacing': 'off',
17+
'vue/comma-style': 'off',
18+
'vue/define-macros-order': 'off',
19+
'vue/dot-location': 'off',
20+
'vue/first-attribute-linebreak': 'off',
21+
'vue/func-call-spacing': 'off',
22+
'vue/html-closing-bracket-newline': 'off',
23+
'vue/html-closing-bracket-spacing': 'off',
24+
'vue/html-comment-content-newline': 'off',
25+
'vue/html-comment-content-spacing': 'off',
26+
'vue/html-comment-indent': 'off',
27+
'vue/html-indent': 'off',
28+
'vue/html-quotes': 'off',
29+
'vue/html-self-closing': 'off',
30+
'vue/key-spacing': 'off',
31+
'vue/keyword-spacing': 'off',
32+
'vue/max-attributes-per-line': 'off',
33+
'vue/max-len': 'off',
34+
'vue/multiline-html-element-content-newline': 'off',
35+
'vue/multiline-ternary': 'off',
36+
'vue/mustache-interpolation-spacing': 'off',
37+
'vue/new-line-between-multi-line-property': 'off',
38+
'vue/no-extra-parens': 'off',
39+
'vue/no-multi-spaces': 'off',
40+
'vue/no-spaces-around-equal-signs-in-attribute': 'off',
41+
'vue/object-curly-newline': 'off',
42+
'vue/object-curly-spacing': 'off',
43+
'vue/object-property-newline': 'off',
44+
'vue/operator-linebreak': 'off',
45+
'vue/padding-line-between-blocks': 'off',
46+
'vue/padding-line-between-tags': 'off',
47+
'vue/padding-lines-in-component-definition': 'off',
48+
'vue/quote-props': 'off',
49+
'vue/script-indent': 'off',
50+
'vue/singleline-html-element-content-newline': 'off',
51+
'vue/space-in-parens': 'off',
52+
'vue/space-infix-ops': 'off',
53+
'vue/space-unary-ops': 'off',
54+
'vue/template-curly-spacing': 'off',
55+
'vue/v-for-delimiter-style': 'off'
56+
}
57+
}

lib/configs/flat/recommended.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* IMPORTANT!
3+
* This file has been automatically generated,
4+
* in order to update its content execute "npm run update"
5+
*/
6+
module.exports = {
7+
extends: require.resolve('./strongly-recommended'),
8+
rules: {
9+
'vue/attributes-order': 'warn',
10+
'vue/component-tags-order': 'warn',
11+
'vue/no-lone-template': 'warn',
12+
'vue/no-multiple-slot-args': 'warn',
13+
'vue/no-v-html': 'warn',
14+
'vue/order-in-components': 'warn',
15+
'vue/this-in-template': 'warn'
16+
}
17+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* IMPORTANT!
3+
* This file has been automatically generated,
4+
* in order to update its content execute "npm run update"
5+
*/
6+
module.exports = {
7+
extends: require.resolve('./essential'),
8+
rules: {
9+
'vue/attribute-hyphenation': 'warn',
10+
'vue/component-definition-name-casing': 'warn',
11+
'vue/first-attribute-linebreak': 'warn',
12+
'vue/html-closing-bracket-newline': 'warn',
13+
'vue/html-closing-bracket-spacing': 'warn',
14+
'vue/html-end-tags': 'warn',
15+
'vue/html-indent': 'warn',
16+
'vue/html-quotes': 'warn',
17+
'vue/html-self-closing': 'warn',
18+
'vue/max-attributes-per-line': 'warn',
19+
'vue/multiline-html-element-content-newline': 'warn',
20+
'vue/mustache-interpolation-spacing': 'warn',
21+
'vue/no-multi-spaces': 'warn',
22+
'vue/no-spaces-around-equal-signs-in-attribute': 'warn',
23+
'vue/no-template-shadow': 'warn',
24+
'vue/one-component-per-file': 'warn',
25+
'vue/prop-name-casing': 'warn',
26+
'vue/require-default-prop': 'warn',
27+
'vue/require-prop-types': 'warn',
28+
'vue/singleline-html-element-content-newline': 'warn',
29+
'vue/v-bind-style': 'warn',
30+
'vue/v-on-style': 'warn',
31+
'vue/v-slot-style': 'warn'
32+
}
33+
}

lib/configs/flat/vue3-essential.js

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/*
2+
* IMPORTANT!
3+
* This file has been automatically generated,
4+
* in order to update its content execute "npm run update"
5+
*/
6+
module.exports = {
7+
extends: require.resolve('./base'),
8+
rules: {
9+
'vue/multi-word-component-names': 'error',
10+
'vue/no-arrow-functions-in-watch': 'error',
11+
'vue/no-async-in-computed-properties': 'error',
12+
'vue/no-child-content': 'error',
13+
'vue/no-computed-properties-in-data': 'error',
14+
'vue/no-deprecated-data-object-declaration': 'error',
15+
'vue/no-deprecated-destroyed-lifecycle': 'error',
16+
'vue/no-deprecated-dollar-listeners-api': 'error',
17+
'vue/no-deprecated-dollar-scopedslots-api': 'error',
18+
'vue/no-deprecated-events-api': 'error',
19+
'vue/no-deprecated-filter': 'error',
20+
'vue/no-deprecated-functional-template': 'error',
21+
'vue/no-deprecated-html-element-is': 'error',
22+
'vue/no-deprecated-inline-template': 'error',
23+
'vue/no-deprecated-props-default-this': 'error',
24+
'vue/no-deprecated-router-link-tag-prop': 'error',
25+
'vue/no-deprecated-scope-attribute': 'error',
26+
'vue/no-deprecated-slot-attribute': 'error',
27+
'vue/no-deprecated-slot-scope-attribute': 'error',
28+
'vue/no-deprecated-v-bind-sync': 'error',
29+
'vue/no-deprecated-v-is': 'error',
30+
'vue/no-deprecated-v-on-native-modifier': 'error',
31+
'vue/no-deprecated-v-on-number-modifiers': 'error',
32+
'vue/no-deprecated-vue-config-keycodes': 'error',
33+
'vue/no-dupe-keys': 'error',
34+
'vue/no-dupe-v-else-if': 'error',
35+
'vue/no-duplicate-attributes': 'error',
36+
'vue/no-export-in-script-setup': 'error',
37+
'vue/no-expose-after-await': 'error',
38+
'vue/no-lifecycle-after-await': 'error',
39+
'vue/no-mutating-props': 'error',
40+
'vue/no-parsing-error': 'error',
41+
'vue/no-ref-as-operand': 'error',
42+
'vue/no-reserved-component-names': 'error',
43+
'vue/no-reserved-keys': 'error',
44+
'vue/no-reserved-props': 'error',
45+
'vue/no-shared-component-data': 'error',
46+
'vue/no-side-effects-in-computed-properties': 'error',
47+
'vue/no-template-key': 'error',
48+
'vue/no-textarea-mustache': 'error',
49+
'vue/no-unused-components': 'error',
50+
'vue/no-unused-vars': 'error',
51+
'vue/no-use-computed-property-like-method': 'error',
52+
'vue/no-use-v-if-with-v-for': 'error',
53+
'vue/no-useless-template-attributes': 'error',
54+
'vue/no-v-for-template-key-on-child': 'error',
55+
'vue/no-v-text-v-html-on-component': 'error',
56+
'vue/no-watch-after-await': 'error',
57+
'vue/prefer-import-from-vue': 'error',
58+
'vue/require-component-is': 'error',
59+
'vue/require-prop-type-constructor': 'error',
60+
'vue/require-render-return': 'error',
61+
'vue/require-slots-as-functions': 'error',
62+
'vue/require-toggle-inside-transition': 'error',
63+
'vue/require-v-for-key': 'error',
64+
'vue/require-valid-default-prop': 'error',
65+
'vue/return-in-computed-property': 'error',
66+
'vue/return-in-emits-validator': 'error',
67+
'vue/use-v-on-exact': 'error',
68+
'vue/valid-attribute-name': 'error',
69+
'vue/valid-define-emits': 'error',
70+
'vue/valid-define-props': 'error',
71+
'vue/valid-next-tick': 'error',
72+
'vue/valid-template-root': 'error',
73+
'vue/valid-v-bind': 'error',
74+
'vue/valid-v-cloak': 'error',
75+
'vue/valid-v-else-if': 'error',
76+
'vue/valid-v-else': 'error',
77+
'vue/valid-v-for': 'error',
78+
'vue/valid-v-html': 'error',
79+
'vue/valid-v-if': 'error',
80+
'vue/valid-v-is': 'error',
81+
'vue/valid-v-memo': 'error',
82+
'vue/valid-v-model': 'error',
83+
'vue/valid-v-on': 'error',
84+
'vue/valid-v-once': 'error',
85+
'vue/valid-v-pre': 'error',
86+
'vue/valid-v-show': 'error',
87+
'vue/valid-v-slot': 'error',
88+
'vue/valid-v-text': 'error'
89+
}
90+
}

lib/configs/flat/vue3-recommended.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* IMPORTANT!
3+
* This file has been automatically generated,
4+
* in order to update its content execute "npm run update"
5+
*/
6+
module.exports = {
7+
extends: require.resolve('./vue3-strongly-recommended'),
8+
rules: {
9+
'vue/attributes-order': 'warn',
10+
'vue/component-tags-order': 'warn',
11+
'vue/no-lone-template': 'warn',
12+
'vue/no-multiple-slot-args': 'warn',
13+
'vue/no-v-html': 'warn',
14+
'vue/order-in-components': 'warn',
15+
'vue/this-in-template': 'warn'
16+
}
17+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* IMPORTANT!
3+
* This file has been automatically generated,
4+
* in order to update its content execute "npm run update"
5+
*/
6+
module.exports = {
7+
extends: require.resolve('./vue3-essential'),
8+
rules: {
9+
'vue/attribute-hyphenation': 'warn',
10+
'vue/component-definition-name-casing': 'warn',
11+
'vue/first-attribute-linebreak': 'warn',
12+
'vue/html-closing-bracket-newline': 'warn',
13+
'vue/html-closing-bracket-spacing': 'warn',
14+
'vue/html-end-tags': 'warn',
15+
'vue/html-indent': 'warn',
16+
'vue/html-quotes': 'warn',
17+
'vue/html-self-closing': 'warn',
18+
'vue/max-attributes-per-line': 'warn',
19+
'vue/multiline-html-element-content-newline': 'warn',
20+
'vue/mustache-interpolation-spacing': 'warn',
21+
'vue/no-multi-spaces': 'warn',
22+
'vue/no-spaces-around-equal-signs-in-attribute': 'warn',
23+
'vue/no-template-shadow': 'warn',
24+
'vue/one-component-per-file': 'warn',
25+
'vue/prop-name-casing': 'warn',
26+
'vue/require-default-prop': 'warn',
27+
'vue/require-explicit-emits': 'warn',
28+
'vue/require-prop-types': 'warn',
29+
'vue/singleline-html-element-content-newline': 'warn',
30+
'vue/v-bind-style': 'warn',
31+
'vue/v-on-event-hyphenation': [
32+
'warn',
33+
'always',
34+
{
35+
autofix: true
36+
}
37+
],
38+
'vue/v-on-style': 'warn',
39+
'vue/v-slot-style': 'warn'
40+
}
41+
}

0 commit comments

Comments
 (0)