-
Notifications
You must be signed in to change notification settings - Fork 170
Open
Description
Given the following configuration:
{
"ignore": {
"rules": ["react/no-danger"],
"files": ["/resources/js/components/ui/**", "/resources/js/marketing/**"]
},
"verbose": true
}
those files aren't ignored.
Looking at the source code, I traced it to this line:
| let regexSource = "^"; |
Since that adds a ^ it will try to match file path that begin with that but the problem is that here
| const normalizedPath = diagnostic.filePath.replace(/\\/g, "/").replace(/^\.\//, ""); |
I am not sure if adding the ^ to the regex should be removed or if we should replace the file path from the disk root so that it is filtering files from the root of the project.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels