You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin should recognize and work with the new flat config (default since ESLint 9.0.0) eslint.config.js.
Actual Behavior
Running npx rollup --config yields:
[!] (plugin eslint) Error: No ESLint configuration found in <PATH>\src.
src/handler.ts
at CascadingConfigArrayFactory._finalizeConfigArray (<PATH>\node_modules\@rollup\plugin-eslint\node_modules\@eslint\eslintrc\lib\cascading-config-array-factory.js:521:19)
at CascadingConfigArrayFactory.getConfigArrayForFile (<PATH>\node_modules\@rollup\plugin-eslint\node_modules\@eslint\eslintrc\lib\cascading-config-array-factory.js:312:21)
at CLIEngine.isPathIgnored (<PATH>\node_modules\@rollup\plugin-eslint\node_modules\eslint\lib\cli-engine\cli-engine.js:1000:18)
at ESLint.isPathIgnored (<PATH>\node_modules\@rollup\plugin-eslint\node_modules\eslint\lib\eslint\eslint.js:681:26)
at Object.transform (file:///<PATH>/node_modules/@rollup/plugin-eslint/dist/es/index.js:24:54)
at <PATH>\node_modules\rollup\dist\shared\rollup.js:989:40
Additional Information
original rollup.config.js (no difference if other plugins are removed):
import commonjs from '@rollup/plugin-commonjs'
import typescript from 'rollup-plugin-typescript2'
import eslint from '@rollup/plugin-eslint'
import resolve from '@rollup/plugin-node-resolve'
import json from '@rollup/plugin-json'
export default {
input: 'src/handler.ts',
output: {
dir: 'dist/cjs',
format: 'cjs'
},
plugins: [
json(),
commonjs(),
resolve(),
eslint({ throwOnError: true, fix: true }),
typescript({ useTsconfigDeclarationDir: true })
]
}
The text was updated successfully, but these errors were encountered:
Expected Behavior
The plugin should recognize and work with the new flat config (default since ESLint 9.0.0)
eslint.config.js
.Actual Behavior
Running
npx rollup --config
yields:Additional Information
original
rollup.config.js
(no difference if other plugins are removed):The text was updated successfully, but these errors were encountered: