lint-to-the-future-eslint
Advanced tools
Comparing version 1.0.1 to 2.0.0
@@ -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 @@ ================== |
@@ -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 @@ |
{ | ||
"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
15053
338