@mizdra/eslint-interactive
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -8,2 +8,3 @@ "use strict"; | ||
const promises_1 = require("fs/promises"); | ||
const path_1 = require("path"); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
@@ -26,2 +27,4 @@ const ora_1 = __importDefault(require("ora")); | ||
else { | ||
// ディレクトリがない可能性を考慮して作成しておく | ||
await promises_1.mkdir(path_1.dirname(filterScriptFilePath), { recursive: true }); | ||
await promises_1.writeFile(filterScriptFilePath, exampleScript); | ||
@@ -28,0 +31,0 @@ } |
@@ -69,2 +69,3 @@ "use strict"; | ||
for (const message of messages) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument | ||
const suggestion = getApplicableSuggestion(message, result, eval(option.filterScript)); | ||
@@ -71,0 +72,0 @@ if (suggestion) |
{ | ||
"name": "@mizdra/eslint-interactive", | ||
"description": "The CLI tool to run `eslint --fix` for each rule", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"repository": "https://github.com/mizdra/eslint-interactive.git", | ||
@@ -25,15 +25,15 @@ "author": "mizdra <pp.mizdra@gmail.com>", | ||
"@mizdra/eslint-config-mizdra": "^1.0.0", | ||
"@mizdra/prettier-config-mizdra": "^0.3.0", | ||
"@mizdra/prettier-config-mizdra": "^0.4.0", | ||
"@types/cli-table": "^0.3.0", | ||
"@types/eslint": "^7.2.6", | ||
"@types/eslint": "^7.28.1", | ||
"@types/estree": "^0.0.50", | ||
"@types/jest": "^27.0.1", | ||
"@types/jest": "^27.0.2", | ||
"@types/node": "^14.14.10", | ||
"@types/terminal-link": "^1.2.0", | ||
"@types/yargs": "^16.0.4", | ||
"@typescript-eslint/eslint-plugin": "^4.10.0", | ||
"@typescript-eslint/parser": "^4.10.0", | ||
"eslint": "^7.16.0", | ||
"@typescript-eslint/eslint-plugin": "^5.0.0", | ||
"@typescript-eslint/parser": "^5.0.0", | ||
"eslint": "^8.0.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-import": "^2.25.1", | ||
"jest": "^27.1.0", | ||
@@ -47,7 +47,8 @@ "npm-run-all": "^4.1.5", | ||
"dependencies": { | ||
"cli-table": "^0.3.4", | ||
"cli-table": "^0.3.6", | ||
"enquirer": "^2.3.6", | ||
"node-pager": "^0.3.4", | ||
"eslint-formatter-codeframe": "^7.32.1", | ||
"node-pager": "^0.3.5", | ||
"ora": "^5.1.0", | ||
"source-map-support": "^0.5.19", | ||
"source-map-support": "^0.5.20", | ||
"terminal-link": "^2.1.1", | ||
@@ -57,3 +58,3 @@ "yargs": "^16.2.0" | ||
"peerDependencies": { | ||
"eslint": ">=7.0" | ||
"eslint": "^7.0.0 || ^8.0.0" | ||
}, | ||
@@ -60,0 +61,0 @@ "engines": { |
@@ -73,3 +73,3 @@ # eslint-interactive | ||
I think these features are very important to solve the aforementioned problem. At first, I thought of implementing these features in `eslint-nibble`, but it required a major rewrite of the code, so I implemented it as a new tool `eslint-interactive`. Although `eslint-interactive` is a tool independent of `eslint-nibble`, it is influenced by the ideas of `eslint-nibble` and inherits some of its code. That's why you can find the names of [@IanVS](https://github.com/IanVS) and others in [the license of `eslint-interactive`](https://github.com/mizdra/eslint-interactive/blob/master/LICENSE). | ||
I think these features are very important to solve the aforementioned problem. At first, I thought of implementing these features in `eslint-nibble`, but it required a major rewrite of the code, so I implemented it as a new tool `eslint-interactive`. Although `eslint-interactive` is a tool independent of `eslint-nibble`, it is influenced by the ideas of `eslint-nibble` and inherits some of its code. That's why you can find the names of [@IanVS](https://github.com/IanVS) and others in [the license of `eslint-interactive`](https://github.com/mizdra/eslint-interactive/blob/main/LICENSE). | ||
@@ -101,3 +101,3 @@ Thanks, [@IanVS](https://github.com/IanVS). | ||
$ # Wait for passing CI... | ||
$ git switch master | ||
$ git switch main | ||
$ git pull | ||
@@ -104,0 +104,0 @@ $ yarn version |
@@ -1,2 +0,3 @@ | ||
import { access, readFile, writeFile } from 'fs/promises'; | ||
import { access, mkdir, readFile, writeFile } from 'fs/promises'; | ||
import { dirname } from 'path'; | ||
import chalk from 'chalk'; | ||
@@ -29,2 +30,4 @@ import { ESLint } from 'eslint'; | ||
} else { | ||
// ディレクトリがない可能性を考慮して作成しておく | ||
await mkdir(dirname(filterScriptFilePath), { recursive: true }); | ||
await writeFile(filterScriptFilePath, exampleScript); | ||
@@ -31,0 +34,0 @@ } |
@@ -86,2 +86,3 @@ import { Rule, Linter, ESLint } from 'eslint'; | ||
for (const message of messages) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument | ||
const suggestion = getApplicableSuggestion(message, result, eval(option.filterScript)); | ||
@@ -88,0 +89,0 @@ if (suggestion) fixes.push(applySuggestion(fixer, suggestion)); |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
192919
1815
9
+ Added@babel/code-frame@7.12.11(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/highlight@7.25.9(transitive)
+ Added@eslint/eslintrc@2.1.4(transitive)
+ Added@eslint/js@8.57.1(transitive)
+ Added@humanwhocodes/config-array@0.13.0(transitive)
+ Added@humanwhocodes/object-schema@2.0.3(transitive)
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Added@ungap/structured-clone@1.2.0(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addeddoctrine@3.0.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedeslint@8.57.1(transitive)
+ Addedeslint-formatter-codeframe@7.32.1(transitive)
+ Addedeslint-scope@7.2.2(transitive)
+ Addedespree@9.6.1(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfile-entry-cache@6.0.1(transitive)
+ Addedflat-cache@3.2.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedglobals@13.24.0(transitive)
+ Addedgraphemer@1.4.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedis-path-inside@3.0.3(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedtext-table@0.2.0(transitive)
+ Addedtype-fest@0.20.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removed@eslint/config-array@0.19.0(transitive)
- Removed@eslint/core@0.9.0(transitive)
- Removed@eslint/eslintrc@3.2.0(transitive)
- Removed@eslint/js@9.15.0(transitive)
- Removed@eslint/object-schema@2.1.4(transitive)
- Removed@eslint/plugin-kit@0.2.3(transitive)
- Removed@humanfs/core@0.19.1(transitive)
- Removed@humanfs/node@0.16.6(transitive)
- Removed@humanwhocodes/retry@0.3.10.4.1(transitive)
- Removed@types/estree@1.0.6(transitive)
- Removed@types/json-schema@7.0.15(transitive)
- Removedeslint@9.15.0(transitive)
- Removedeslint-scope@8.2.0(transitive)
- Removedeslint-visitor-keys@4.2.0(transitive)
- Removedespree@10.3.0(transitive)
- Removedfile-entry-cache@8.0.0(transitive)
- Removedflat-cache@4.0.1(transitive)
- Removedglobals@14.0.0(transitive)
Updatedcli-table@^0.3.6
Updatednode-pager@^0.3.5
Updatedsource-map-support@^0.5.20