diff --git a/packages/eslint/rollup.config.mjs b/packages/eslint/rollup.config.mjs index 9c4885e64..b9f6ab1df 100755 --- a/packages/eslint/rollup.config.mjs +++ b/packages/eslint/rollup.config.mjs @@ -1,9 +1,10 @@ import { readFileSync } from 'fs'; -import { createConfig } from '../../shared/rollup.config.mjs'; import esmShim from '@rollup/plugin-esm-shim'; import typescript from '@rollup/plugin-typescript'; +import { createConfig } from '../../shared/rollup.config.mjs'; + export default { ...createConfig({ pkg: JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf8')) diff --git a/packages/eslint/test/fixtures/eslint.config.mjs b/packages/eslint/test/fixtures/eslint.config.js similarity index 97% rename from packages/eslint/test/fixtures/eslint.config.mjs rename to packages/eslint/test/fixtures/eslint.config.js index 22a37c5aa..ffec32ea0 100644 --- a/packages/eslint/test/fixtures/eslint.config.mjs +++ b/packages/eslint/test/fixtures/eslint.config.js @@ -1,4 +1,4 @@ -export default [{ +module.exports = [{ ignores: process.env.NODE_ENV === 'test' ? ["ignored.js"] : ["**/*.js"], languageOptions: { ecmaVersion: 2015, diff --git a/packages/eslint/test/test.mjs b/packages/eslint/test/test.mjs index efa87166a..e5eafb772 100755 --- a/packages/eslint/test/test.mjs +++ b/packages/eslint/test/test.mjs @@ -2,13 +2,15 @@ import fs from 'fs'; import { createRequire } from 'module'; +import { resolve } from 'path'; + +import { fileURLToPath } from 'url'; + import test from 'ava'; import nodeResolve from '@rollup/plugin-node-resolve'; import { rollup } from 'rollup'; import eslint from 'current-package'; -import { resolve } from 'path'; -import { fileURLToPath } from 'url'; const fixtures = resolve(fileURLToPath(new URL('.', import.meta.url)), 'fixtures');