@mizdra/eslint-interactive
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -22,6 +22,8 @@ "use strict"; | ||
}) | ||
.nargs('ruledir', 1) | ||
.option('ext', { | ||
type: 'array', | ||
describe: 'Specify JavaScript file extensions', | ||
}).argv; | ||
}) | ||
.nargs('ext', 1).argv; | ||
// NOTE: convert `string` type because yargs convert `'10'` (`string` type) into `10` (`number` type) | ||
@@ -28,0 +30,0 @@ // and `lintFiles` only accepts `string[]`. |
{ | ||
"name": "@mizdra/eslint-interactive", | ||
"description": "The CLI tool to run `eslint --fix` for each rule", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"repository": "https://github.com/mizdra/eslint-interactive.git", | ||
@@ -6,0 +6,0 @@ "author": "mizdra <pp.mizdra@gmail.com>", |
@@ -59,7 +59,7 @@ # eslint-interactive | ||
$ # Examples | ||
$ eslint-interactive src | ||
$ eslint-interactive src test | ||
$ eslint-interactive 'src/**/*.{ts,tsx,vue}' | ||
$ eslint-interactive src --ext .ts,.tsx,.vue | ||
$ eslint-interactive src --ruledir ./rules | ||
$ eslint-interactive ./src | ||
$ eslint-interactive ./src ./test | ||
$ eslint-interactive './src/**/*.{ts,tsx,vue}' | ||
$ eslint-interactive ./src --ext .ts,.tsx,.vue | ||
$ eslint-interactive ./src --ruledir ./rules | ||
``` | ||
@@ -66,0 +66,0 @@ |
@@ -20,6 +20,8 @@ import chalk from 'chalk'; | ||
}) | ||
.nargs('ruledir', 1) | ||
.option('ext', { | ||
type: 'array', | ||
describe: 'Specify JavaScript file extensions', | ||
}).argv; | ||
}) | ||
.nargs('ext', 1).argv; | ||
// NOTE: convert `string` type because yargs convert `'10'` (`string` type) into `10` (`number` type) | ||
@@ -26,0 +28,0 @@ // and `lintFiles` only accepts `string[]`. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
125320
867