A playground repo for me to experiment with writing custom TSLint rules
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tslint
.gitignore
.npmignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
dangerfile.ts
package.json
tsconfig.json
tslint.json
wallaby.js
yarn.lock

README.md

tslint-playground

This is a repo where I play around with TSLint custom rules. The rules are in the tslint directory. Here's the list so far:

  • `noBadWordsRule.ts uses the bad-words NPM module to forbid bad words in comments. Also provides options for custom list of bad words.
  • deMorgansRule.ts uses the TypeScript AST to "optimize" files by removing unnecessary exclamation marks through DeMorgan's Law. Please don't use it for real, it was for learning.

Useful resources

How do I work on this?

git clone https://github.com/ashfurrow/tslint-playground.git
cd tslint-playground
yarn install

Okay so src/index.ts has offenses in it, you can fix them with the rules using yarn lint --fix src/index.ts (prefix that with a git checkout src/index.ts for a fast reset-debug cycle).