-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintenance: build, esm, dependency and linting (#84)
This is major maintenance commit that improves the build process. It does not change the functionality of the library. * Use file extensions in imports. Extensionless imports are not supported in esm. This required adding .js in all import statements * Provide esm module along with commonjs module * Base the demo on the esm module * Upgrade eslint to 9.0.0. json based config file is now deprecated. Migrate to eslint.config.js * Above changes also should fix the broken build process in the CI Build it in more recent node versions too. * Bump version to 2.4.0
- Loading branch information
1 parent
4e81ec1
commit 385356f
Showing
31 changed files
with
2,066 additions
and
4,932 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import Banana from '../../dist/esm/banana-i18n.js' | ||
|
||
const banana = new Banana() | ||
|
||
function updateText () { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
|
||
export default [ | ||
{ | ||
files: ["**/*.{js,mjs,cjs,ts}"], | ||
ignores: ["dist/**/*"], | ||
}, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
...globals.mocha | ||
} | ||
} | ||
}, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
]; |
Oops, something went wrong.