Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to Typescript #183

Merged
merged 8 commits into from
Nov 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
{
"extends": ["eslint:recommended"],
"plugins": ["jest"],
"env": {
"browser": true,
"jest/globals": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2017
}
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"root": true,
"overrides": [
{
"files": ["*.ts"],
"rules": {
"@typescript-eslint/no-explicit-any": 0
}
},
{
"files": ["test/typescript/prosemirror-tables.ts"],
"rules": {
"@typescript-eslint/no-unused-vars": 0
}
}
]
}
5 changes: 4 additions & 1 deletion .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"node-option": ["experimental-specifier-resolution=node"]
"node-option": [
"experimental-specifier-resolution=node",
"loader=ts-node/esm"
]
}
14 changes: 14 additions & 0 deletions api-extractor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "dist/src/index.d.ts",
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "dist/index.d.ts"
},
"docModel": {
"enabled": false
},
"apiReport": {
"enabled": false
}
}
2 changes: 1 addition & 1 deletion demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
toggleHeaderCell,
goToNextCell,
deleteTable,
} from './src/commands';
} from './src';
import { tableEditing, columnResizing, tableNodes, fixTables } from './src';

let schema = new Schema({
Expand Down
313 changes: 0 additions & 313 deletions index.d.ts

This file was deleted.

Loading