Skip to content

Commit 1f7926d

Browse files
committed
fix: fix bug in eslint-env migration
it wasn't working for dotfiles and some source code types
1 parent faf1bf4 commit 1f7926d

32 files changed

Lines changed: 30 additions & 36 deletions

fixtures/async-throttle/upgrade-snapshot/.babelrc.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-env node, es2018 */
21
module.exports = function (api) {
32
const base = require('@jcoreio/toolchain-esnext/.babelrc.cjs')(api)
43
return {

fixtures/async-throttle/upgrade-snapshot/.mocharc.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-env node, es2018 */
21
const base = require('@jcoreio/toolchain-mocha/.mocharc.cjs')
32
module.exports = {
43
...base,

fixtures/async-throttle/upgrade-snapshot/eslint.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = defineConfig([
2222
},
2323
},
2424
{
25-
files: ['test/clearConsole.js'],
25+
files: ['test/configure.js', 'test/clearConsole.js'],
2626
languageOptions: {
2727
globals: globals.node,
2828
},

fixtures/async-throttle/upgrade-snapshot/test/configure.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env node */
2-
31
import chai from 'chai'
42
import chaiAsPromised from 'chai-as-promised'
53
chai.use(chaiAsPromised)

fixtures/react-view-slider-ts/init-snapshot/dist/index.d.mts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fixtures/react-view-slider-ts/init-snapshot/dist/index.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fixtures/react-view-slider-ts/init-snapshot/dist/index.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)