'.eslintignore exclusions not applying when launching eslint

Here is my project architecture :

Code Architecture

My .eslintignore :

/public/*
/test/*

These two folders are located at client/public && client/test but for some reason when starting eslint, it still lints my excluded files.

I am launching eslint through this command :

./node_modules/.bin/eslint . -c ../.eslintrc.js


Solution 1:[1]

try this

/client/public/*
/client/test/*

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jian Cui