-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from bruno-sartori/develop
Changes how images are consumed to decrease package size
- Loading branch information
Showing
10 changed files
with
608 additions
and
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# npx lint-staged | ||
npx lint-staged | ||
|
||
red='\033[0;31m' | ||
green='\033[0;32m' | ||
|
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
|
||
|
||
export default [ | ||
{files: ["**/*.{js,mjs,cjs,ts}"]}, | ||
{languageOptions: { globals: {...globals.browser, ...globals.node} }}, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
{ | ||
rules: { | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'prefer-spread': 'off', | ||
'arrow-body-style': 'off', | ||
'prefer-const': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/no-empty-function': 'off' | ||
} | ||
}, | ||
]; |
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,6 +1,6 @@ | ||
{ | ||
"name": "@bsartori/weeb-logger", | ||
"version": "1.0.16", | ||
"version": "1.1.0", | ||
"author": "Bruno Sartori <[email protected]>", | ||
"license": "MIT", | ||
"repository": { | ||
|
@@ -14,6 +14,9 @@ | |
"dist" | ||
], | ||
"scripts": { | ||
"lint": "eslint src/**/*.ts", | ||
"format": "eslint src/**/*.ts --fix", | ||
"prebuild": "shx rm -rf dist && shx mkdir dist", | ||
"prepare-assets": "node ./scripts/generateBase64Assets.js", | ||
"build": "tsc", | ||
"prepublishOnly": "yarn build", | ||
|
@@ -43,18 +46,25 @@ | |
"chalk": "4.1.2" | ||
}, | ||
"devDependencies": { | ||
"shx": "^0.3.4", | ||
"copyfiles": "^2.4.1", | ||
"ts-node": "^10.9.2", | ||
"cross-env": "^7.0.3", | ||
"@eslint/js": "^9.9.1", | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^22.5.0", | ||
"copyfiles": "^2.4.1", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^9.9.1", | ||
"globals": "^15.9.0", | ||
"husky": "^9.1.5", | ||
"jest": "^29.7.0", | ||
"jest-canvas-mock": "^2.5.2", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"ts-jest-mock-import-meta": "1.2.0", | ||
"shx": "^0.3.4", | ||
"ts-jest": "^29.2.4", | ||
"typescript": "^5.5.4" | ||
"ts-jest-mock-import-meta": "1.2.0", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.5.4", | ||
"typescript-eslint": "^8.3.0" | ||
}, | ||
"lint-staged": { | ||
"src/*.{js,ts}": ["eslint --fix"] | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.