all-files-ignored.js 664 B

12345678910111213141516
  1. "use strict";
  2. module.exports = function(it) {
  3. const { pattern } = it;
  4. return `
  5. You are linting "${pattern}", but all of the files matching the glob pattern "${pattern}" are ignored.
  6. If you don't want to lint these files, remove the pattern "${pattern}" from the list of arguments passed to ESLint.
  7. If you do want to lint these files, try the following solutions:
  8. * Check your .eslintignore file, or the eslintIgnore property in package.json, to ensure that the files are not configured to be ignored.
  9. * Explicitly list the files from this glob that you'd like to lint on the command-line, rather than providing a glob as an argument.
  10. `.trimLeft();
  11. };