all-matched-files-ignored.js 1.0 KB

123456789101112131415161718192021
  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, explicitly list one or more of the files from this glob that you'd like to lint to see more details about why they are ignored.
  8. * If the file is ignored because of a matching ignore pattern, check global ignores in your config file.
  9. https://eslint.org/docs/latest/use/configure/ignore
  10. * If the file is ignored because no matching configuration was supplied, check file patterns in your config file.
  11. https://eslint.org/docs/latest/use/configure/configuration-files#specifying-files-with-arbitrary-extensions
  12. * If the file is ignored because it is located outside of the base path, change the location of your config file to be in a parent directory.
  13. `.trimStart();
  14. };