jsfix

javascript fix base on jshint

npm install jsfix
40 downloads in the last week
80 downloads in the last month

Usage

Usage: jsfix Path [Filter]

Path File or Folder path to fix.
Filter Exclude FileName or FilePath or FolderName or FolderPath.

Example

> jsfix D:/project/test-folder test.js,folder-1

Rule

  • Add missing semicolon.
  • Delete unnecessary semicolon.
  • Use '!==/===' to compare with poor relation(0, true, false, '', undefined).
  • Comment out the Console statement.
  • Use the isNaN function to compare with NaN.
  • Add radix parameter for parseInt.
  • Escape something unescaped.
  • Use if statment instead of an expression.
npm loves you