Lint only over changed files

・1 min read

The bigger your project gets, the longer time lint takes.

So the following task is quite useful since we basically want to run lint only over changed files.

# package.json
  "scripts": {
    "tslint": "git diff --name-only develop... | grep -E '\\.tsx?$' | xargs yarn tslint"

I'm referring tslint here, but the same is true of eslint, stylelint, and etc.

Classic DEV Post from Aug 16 '18


How women face 2018 in a society of the last century

Software Engineer

Hey there reader...

Do you prefer sans serif over serif?

You can change your font preferences in the "misc" section of your settings. ❤️