Skip to content

Commit

Permalink
Merge pull request #73 from yuan-93/Migrate-To-Typescript-#72
Browse files Browse the repository at this point in the history
Migrate to typescript #72
  • Loading branch information
neSpecc authored Jul 30, 2024
2 parents 95b3746 + 449be27 commit 591bd2c
Show file tree
Hide file tree
Showing 12 changed files with 1,175 additions and 138 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = false

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
quote_type = single
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
}
},
"parser": "@typescript-eslint/parser"
}
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@editorjs/nested-list",
"version": "1.4.2",
"version": "1.4.3",
"keywords": [
"codex editor",
"nested-list",
Expand All @@ -19,23 +19,30 @@
"exports": {
".": {
"import": "./dist/nested-list.mjs",
"require": "./dist/nested-list.umd.js"
"require": "./dist/nested-list.umd.js",
"types": "./dist/index.d.ts"
}
},
"types": "./dist/index.d.ts",
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint src/ --quiet",
"lint": "eslint src/ --quiet --ext .ts",
"lint:errors": "eslint src/ --quiet",
"lint:fix": "eslint src/ --fix"
},
"devDependencies": {
"@editorjs/editorjs": "^2.29.1",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"eslint": "^7.22.0",
"eslint-loader": "^4.0.2",
"postcss-nested": "^5.0.3",
"postcss-nested-ancestors": "^2.0.0",
"typescript": "^5.4.5",
"vite": "^4.5.0",
"vite-plugin-css-injected-by-js": "^3.3.0"
"vite-plugin-css-injected-by-js": "^3.3.0",
"vite-plugin-dts": "^3.9.1"
},
"dependencies": {
"@codexteam/icons": "^0.0.2"
Expand Down
Loading

0 comments on commit 591bd2c

Please sign in to comment.