How to run eslint recursively on all the files in root directory without glob patterns

eslint . --ext .js

It is sim­i­lar to the fol­low­ing glob pattern

eslint ./**/*.js

if you want multi plat­form sup­port then you can use path() as follows.

import path from 'path';

eslint path.join(__dirname) --ext .js


You may also like...