Skip to content

Commit 083369b

Browse files
committed
Update README.md.
Update dependencies.
1 parent 841f686 commit 083369b

File tree

5 files changed

+35
-26
lines changed

5 files changed

+35
-26
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ This component can handle bidirectional binding by `v-model` like a general Vue
5555
| gutter | boolean | Display 🔴 on the line where there was an error when `linter` was specified. It will not work if `linter` is not specified. |
5656
| gutterConfig | Object | see <https://codemirror.net/docs/ref/#lint.lintGutter^config> |
5757
| tag | string | HTML tags used in the component. (Default is `div` tag.) |
58+
| scrollIntoView | boolean | Allows an external update to scroll the form. (Default is `true`) |
5859

5960
⚠ Notice: `lang` and `linter` can also be set together in `extensions`. These are separated for compatibility with previous versions of CodeMirror settings and for typing props.
6061

@@ -81,8 +82,8 @@ This component can handle bidirectional binding by `v-model` like a general Vue
8182

8283
### Unofficial
8384

84-
- [@phoenix-plugin-registry/petetnt.brackets-codemirror-fortran](https://www.npmjs.com/package/@phoenix-plugin-registry/petetnt.brackets-codemirror-fortran)
85-
- [@phoenix-plugin-registry/petetnt.brackets-codemirror-go](https://www.npmjs.com/package/@phoenix-plugin-registry/petetnt.brackets-codemirror-go)
85+
- [`@phoenix-plugin-registry/petetnt.brackets-codemirror-fortran`](https://www.npmjs.com/package/@phoenix-plugin-registry/petetnt.brackets-codemirror-fortran)
86+
- [`@phoenix-plugin-registry/petetnt.brackets-codemirror-go`](https://www.npmjs.com/package/@phoenix-plugin-registry/petetnt.brackets-codemirror-go)
8687
- [`@acarl005/lang-sql`](https://www.npmjs.com/package/@acarl005/lang-sql)
8788
- [`@ark-us/codemirror-lang-taylor`](https://www.npmjs.com/package/@ark-us/codemirror-lang-taylor)
8889
- [`@formulavize/lang-fiz`](https://www.npmjs.com/package/@formulavize/lang-fiz)

eslint.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,13 @@ export default defineConfigWithVueTs(
164164
],
165165
// Mitigate non-multiword component name errors to warnings.
166166
'vue/multi-word-component-names': 'warn',
167+
// allow model-value
168+
'vue/no-deprecated-model-definition': [
169+
'error',
170+
{
171+
allowVue3Compat: true,
172+
},
173+
],
167174
},
168175
},
169176
configPrettier

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "vue-codemirror6",
4-
"version": "1.3.12",
4+
"version": "1.3.13",
55
"license": "MIT",
66
"description": "CodeMirror6 Component for vue2 and vue3.",
77
"keywords": [
@@ -73,7 +73,7 @@
7373
"version": "auto-changelog -p && git add CHANGELOG.md"
7474
},
7575
"dependencies": {
76-
"@codemirror/commands": "^6.8.0",
76+
"@codemirror/commands": "^6.8.1",
7777
"@codemirror/language": "^6.11.0",
7878
"@codemirror/lint": "^6.8.5",
7979
"@codemirror/state": "^6.5.2",
@@ -121,7 +121,7 @@
121121
"supports-color": "^10.0.0",
122122
"typescript": "^5.8.2",
123123
"typescript-eslint": "^8.28.0",
124-
"vite": "^6.2.3",
124+
"vite": "^6.2.4",
125125
"vite-plugin-banner": "^0.8.0",
126126
"vite-plugin-checker": "^0.9.1",
127127
"vite-plugin-dts": "^4.5.3",

pnpm-lock.yaml

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/CodeMirror.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ export default defineComponent({
270270
default: 'div',
271271
},
272272
/**
273-
* External updates also cause the form to scroll
273+
* Allows an external update to scroll the form.
274+
* @see {@link https://codemirror.net/docs/ref/#state.TransactionSpec.scrollIntoView}
274275
*/
275276
scrollIntoView: {
276277
type: Boolean,

0 commit comments

Comments
 (0)