Skip to content

Commit

Permalink
Merge pull request #252 from dependentmadani/migrate-typescript
Browse files Browse the repository at this point in the history
feat (road to typescript): migrate from javascript to typescript
  • Loading branch information
neSpecc authored Jul 8, 2024
2 parents 25d46cd + dc750a5 commit 1d9f0e7
Show file tree
Hide file tree
Showing 12 changed files with 3,157 additions and 1,282 deletions.
16 changes: 7 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"extends": [
"codex"
],
"globals": {
"fetch": true,
"ImageConfig": true,
"ImageToolData": true
}
}
"globals": {},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
},
"parser": "@typescript-eslint/parser"
}
37 changes: 22 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@editorjs/image",
"version": "2.9.0",
"version": "2.9.1",
"keywords": [
"codex editor",
"image",
Expand All @@ -15,36 +15,43 @@
],
"main": "./dist/image.umd.js",
"module": "./dist/image.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/image.mjs",
"require": "./dist/image.umd.js"
"require": "./dist/image.umd.js",
"types": "./dist/index.d.ts"
}
},
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint src/ --ext .js",
"lint:errors": "eslint src/ --ext .js --quiet",
"lint:fix": "eslint src/ --ext .js --fix"
"lint": "eslint src/ --ext .ts",
"lint:errors": "eslint src/ --quiet",
"lint:fix": "eslint src/ --fix"
},
"author": {
"name": "CodeX",
"email": "team@ifmo.su"
},
"devDependencies": {
"@codexteam/ajax": "^4.2.0",
"eslint": "^6.8.0",
"eslint-config-codex": "^1.3.3",
"eslint-loader": "^4.0.0",
"formidable": "^1.2.1",
"postcss-nested": "^4.1.0",
"postcss-nested-ancestors": "^2.0.0",
"@editorjs/editorjs": "2.30.0-rc.12",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"eslint": "^7.22.0",
"eslint-config-codex": "^2.0.1",
"eslint-loader": "^4.0.2",
"formidable": "^3.5.1",
"postcss-nested": "^6.0.1",
"postcss-nested-ancestors": "^3.0.0",
"request": "^2.88.0",
"vite": "^4.5.0",
"vite-plugin-css-injected-by-js": "^3.3.0"
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite-plugin-css-injected-by-js": "^3.5.1",
"vite-plugin-dts": "^3.9.1"
},
"dependencies": {
"@codexteam/icons": "^0.0.6"
"@codexteam/icons": "^0.3.0"
}
}
}
Loading

0 comments on commit 1d9f0e7

Please sign in to comment.