Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mizdra/eslint-interactive

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mizdra/eslint-interactive - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

3

dist/actions.js

@@ -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)

25

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc