Skip to content

Commit

Permalink
refactor: update .gitignore and eslint config to include internalTest…
Browse files Browse the repository at this point in the history
…s, modify build script, and change module type in tsconfig
  • Loading branch information
gabriel-logan committed Feb 5, 2025
1 parent 5ae2491 commit 34bdfa3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ test.js
test.mjs
test.html
test.cjs
internalTests/
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default tseslint.config(
"dist/",
"tests/generateFakeImage.js",
"types/",
"internalTests/",
],
rules: {
"no-else-return": ["error", { allowElseIf: false }],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build:types": "tsc -p tsconfig.types.json",
"build:src": "npx tsup index.ts --format esm --legacy-output",
"build:browser": "webpack",
"build": "yarn build:types && yarn build:browser",
"build": "rm -rf dist && rm -rf types && yarn build:types && yarn build:browser",
"lint": "eslint src/**/*.ts tests/**/*.ts",
"lint:fix": "yarn lint --fix",
"prettier": "prettier --write '**/*.{ts,js}'",
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"compilerOptions": {
"target": "ES2017",
"module": "commonjs",
"module": "ES6",
"outDir": "./dist",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"strictNullChecks": true,
"removeComments": true
"removeComments": true,
"moduleResolution": "node",
},
"include": ["src/**/*"]
}

0 comments on commit 34bdfa3

Please sign in to comment.