New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lint-to-the-future-eslint

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lint-to-the-future-eslint - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

5

CHANGELOG.md

@@ -0,1 +1,6 @@

v2.0.0 / 2023-01-13
==================
* Improve .gitignore handling #13 from @wagenet
* Sort lints for stability #12 from @wagenet
v1.0.1 / 2022-09-19

@@ -2,0 +7,0 @@ ==================

6

index.js

@@ -22,5 +22,7 @@ const { readFileSync, writeFileSync, lstatSync } = require('fs');

uniqueIds = [...new Set([...ruleIds, ...existing])];
uniqueIds.sort((a, b) => a.localeCompare(b));
writeFileSync(error.filePath, file.replace(/^.*\n/, `/* eslint-disable ${uniqueIds.join(', ')} */\n`));
} else {
uniqueIds.sort((a, b) => a.localeCompare(b));
writeFileSync(error.filePath, `/* eslint-disable ${uniqueIds.join(', ')} */\n${file}`);

@@ -74,2 +76,4 @@ }

.filter((line) => !line.startsWith('#'))
// walkSync can't handle these
.filter((line) => !line.startsWith('!'))
.map((line) => line.replace(/^\//, ''))

@@ -83,3 +87,3 @@ .map((line) => line.replace(/\/$/, '/*'));

globs: ['**/*.js', '**/*.ts'],
ignore: ignoreFile || ['node_modules/*'],
ignore: ignoreFile || ['**/node_modules/*'],
});

@@ -86,0 +90,0 @@

2

package.json
{
"name": "lint-to-the-future-eslint",
"version": "1.0.1",
"version": "2.0.0",
"repository": "https://github.com/mansona/lint-to-the-future-eslint",

@@ -5,0 +5,0 @@ "scripts": {

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