Skip to content

Commit faf1bf4

Browse files
authored
feat(migrate): replace eslint-env comments with settings in eslint.config.cjs (#44)
1 parent d228631 commit faf1bf4

83 files changed

Lines changed: 1035 additions & 735 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ orbs:
88
jobs:
99
build:
1010
docker:
11-
- image: cimg/node:20.10.0
11+
- image: cimg/node:20.19.0
1212

1313
steps:
1414
- checkout

eslint.config.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = defineConfig([
1010
{
1111
files: ['packages/**/*.{js,cjs,mjs}'],
1212
languageOptions: {
13+
ecmaVersion: 2020,
1314
globals: {
1415
...globals.node,
1516
...globals.es2018,

fixtures/async-throttle/init-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/init-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
const { getSpecs } = require('@jcoreio/toolchain-mocha')
43
module.exports = {

fixtures/async-throttle/init-snapshot/_lint-staged.config.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/lint-staged.config.cjs')
32
module.exports = {
43
...base,

fixtures/async-throttle/init-snapshot/dist/pnpm-lock.yaml

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

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,10 @@ module.exports = defineConfig([
3030
},
3131
},
3232
},
33+
{
34+
files: ['test/configure.js', 'test/clearConsole.js'],
35+
languageOptions: {
36+
globals: globals.node,
37+
},
38+
},
3339
])

fixtures/async-throttle/init-snapshot/githooks.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/githooks.cjs')
32
module.exports = {
43
...base,

fixtures/async-throttle/init-snapshot/nyc.config.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/nyc.config.cjs')
32
module.exports = {
43
...base,

fixtures/async-throttle/init-snapshot/pnpm-lock.yaml

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

0 commit comments

Comments
 (0)