Skip to content

Commit

Permalink
chore: set ts target to es2020 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
warapitiya committed Oct 23, 2022
1 parent 70f7460 commit 21c6b50
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,20 @@
"gulp",
"install"
],
"main": "src/index.ts",
"main": "lib/index.js",
"typings": "index.d.ts",
"engines": {
"node": ">=14"
},
"scripts": {
"build": "tsc",
"coveralls": "tap test --ts --coverage-report=text-lcov | coveralls",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"release": "standard-version",
"test": "tap test --ts",
"test:only": "tap test --ts -O",
"test:report": "tap test --ts --coverage-report=html",
"coveralls": "tap test --ts --coverage-report=text-lcov | coveralls",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
"test:report": "tap test --ts --coverage-report=html"
},
"dependencies": {
"plugin-error": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const requiredFileOpts: RequiredFile = {
const gulpYarn = (gulpYarnOptions?: Partial<CommandOptions>) => {
return new Transform({
objectMode: true,
transform(chunk, encoding, callback) {
transform(chunk, _encoding, callback) {
if (chunk === undefined || chunk === null) {
// Return empty file
callback(null, chunk)
Expand Down
11 changes: 9 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
{
"compilerOptions": {
"target": "ES2018",
"target": "ES2020",
"module": "commonjs",
"resolveJsonModule": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"outDir": "lib",
"moduleResolution": "node"
"moduleResolution": "node",
"strictNullChecks": true,

/* Additional Checks */
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"exclude": [
"test"
Expand Down

0 comments on commit 21c6b50

Please sign in to comment.