Skip to content

Commit

Permalink
chore: add .vscode/settings.json
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Jun 9, 2024
1 parent c162dc2 commit 2a15084
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2.1.4
with:
node-version: '18.18'
node-version: '18.19'
registry-url: 'https://registry.npmjs.org'
always-auth: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2.1.4
with:
node-version: '18.18'
node-version: '18.19'
registry-url: 'https://registry.npmjs.org'
always-auth: true

Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"eslint.experimental.useFlatConfig": true
}
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
files: ['src/**/*.{ts,tsx}'],
languageOptions: {
globals: {
...globals.browser,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "git@github.com:thematters/matters-editor.git"
},
"engines": {
"node": ">=18.18 <19.0"
"node": ">=18.19 <19.0"
},
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/editors/extensions/blockquote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const Blockquote = Node.create<BlockquoteOptions>({
return [
new Plugin({
key: new PluginKey('restrictBlockquoteMarks'),
filterTransaction: (transaction, state) => {
filterTransaction: (transaction) => {
// Nothing has changed, ignore it.
if (!transaction.docChanged) {
return true
Expand Down
1 change: 1 addition & 0 deletions src/editors/extensions/bold.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
*/

export interface BoldOptions {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
HTMLAttributes: Record<string, any>
}

Expand Down
1 change: 1 addition & 0 deletions src/editors/extensions/horizontalRule.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { mergeAttributes, Node, nodeInputRule } from '@tiptap/core'

export interface HorizontalRuleOptions {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
HTMLAttributes: Record<string, any>
}

Expand Down
1 change: 1 addition & 0 deletions src/editors/extensions/link/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface LinkOptions {
/**
* A list of HTML attributes to be rendered.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
HTMLAttributes: Record<string, any>
/**
* A validation function that modifies link verification for the auto linker.
Expand Down

0 comments on commit 2a15084

Please sign in to comment.