-
-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
- Operating System: ubuntu
- Node Version: 12.4
- NPM Version: 6.3
- webpack Version: 5
- eslint-webpack-plugin Version: 2.5.3
Expected Behavior
When I set options.files strings (array) so that they are relative to context, files in those relative paths should be linted.
Setup with same path values, but different file extensions, works as expected for styles in https://github.com/webpack-contrib/stylelint-webpack-plugin. This plugin also has options.files/options.context type of setup.
Actual Behavior
Files that are outside options.context are not linted. Issue happens both with glob pattern paths and directory paths.
Code
Here, webpack is running in main-app (context). Paths are given and were tested as plain strings.
new ESLintPlugin({
context: '/home/user/project-name/packages/main-app/src',
files: [
'**/*.(js|jsx|mjs)',
'../../package-a/src/**/*.(js|jsx|mjs)',
'../../package-b/src/**/*.(js|jsx|mjs)',
],
})Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working