Skip to content

Commit f9f1efb

Browse files
committed
workflow: modify ESLint rules
1 parent 65c634d commit f9f1efb

File tree

7 files changed

+91
-81
lines changed

7 files changed

+91
-81
lines changed

demo/vue2.6/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default {
6565
ref="jsonEditorVueRef"
6666
v-model="data.value"
6767
:mode.sync="mode"
68-
:readOnly="readOnly"
68+
:read-only="readOnly"
6969
/>
7070

7171
<br>

demo/vue2.7/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ onMounted(() => {
5757
ref="jsonEditorVueRef"
5858
v-model="data.value"
5959
:mode.sync="data.mode"
60-
:readOnly="data.readOnly"
60+
:read-only="data.readOnly"
6161
/>
6262

6363
<br>

demo/vue3/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ onMounted(() => {
7676
ref="jsonEditorVueRef"
7777
v-model="data.value"
7878
v-model:mode="data.mode"
79-
:readOnly="data.readOnly"
79+
:read-only="data.readOnly"
8080
:parser="data.parser"
8181
/>
8282

demo/wujie/packages/sub/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import JsonEditorVue from 'json-editor-vue'
66
<div style="border: 1px solid lightgrey; padding: 1rem;">
77
I am sub.
88
<JsonEditorVue
9-
:modelValue="123"
9+
:model-value="123"
1010
style="width: 370px;"
1111
/>
1212
</div>

eslint.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,14 @@ export default antfu(
99
'brace-style': ['error', 'stroustrup', { allowSingleLine: false }],
1010
'curly': ['error', 'all'],
1111
'no-console': 'off',
12-
'vue/attribute-hyphenation': 'off',
1312
'vue/max-attributes-per-line': 'error',
1413
'vue/multi-word-component-names': 'off',
1514
'vue/no-deprecated-v-bind-sync': 'off',
1615
'vue/no-deprecated-v-on-native-modifier': 'off',
1716
'vue/no-deprecated-destroyed-lifecycle': 'off',
1817
'vue/no-deprecated-dollar-listeners-api': 'off',
1918
'vue/no-deprecated-dollar-scopedslots-api': 'off',
20-
'vue/no-v-html': 'off',
2119
'vue/singleline-html-element-content-newline': 'off',
22-
'vue/v-on-event-hyphenation': ['error', 'never'],
2320
},
2421
},
2522
)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"vue-demi": "^0.14.7"
7777
},
7878
"devDependencies": {
79-
"@antfu/eslint-config": "^2.12.2",
79+
"@antfu/eslint-config": "^2.13.0",
8080
"@commitlint/cli": "^19.2.1",
8181
"@commitlint/config-conventional": "^19.1.0",
8282
"@types/cross-spawn": "^6.0.6",

0 commit comments

Comments
 (0)