Skip to content

Commit

Permalink
chore(tsconfig.json): add linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
edelveart committed Jan 2, 2025
1 parent 2ccdca3 commit 18943cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const config = { start: 1n, m: 5n, step: 1n };

// 3. Choose the type of space figurate number you want (pyramidal, cubic, etc.)
const pyramidalSequence = new SpaceFigNumbers("pyramidal");
const pyramidalNumbers= pyramidalSequence.generate(config);
const pyramidalNumbers = pyramidalSequence.generate(config);

// 4. Get ready to see the magic happen! First 7 pyramidal numbers with m = 5n:
console.log("First 7 pyramidal numbers with m = 5n:");
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
/* AND if you're building for a library: */
"declaration": true,
/* AND if you're building for a library in a monorepo: */
"declarationMap": true
"declarationMap": true,
/* Linting */
"noUnusedLocals": true,
"noUnusedParameters": true
},
"include": ["src/**/*"],
"exclude": ["dist/**/*", "node_modules"]
Expand Down

0 comments on commit 18943cc

Please # to comment.