kentcdodds / kcd-scripts

CLI toolbox for common scripts for my projects

Home Page:http://npm.im/kcd-scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint is looking inside the folders coverage

crisfcodes opened this issue · comments

  • kcd-scripts version: 11.1.0
  • node version: 14.16.1
  • yarn version: 1.22.10

Relevant code or config

// .eslintrc.js
module.exports = {
  extends: './node_modules/kcd-scripts/eslint.js',

  parserOptions: {
    tsconfigRootDir: __dirname,
    project: './tsconfig.json',
  },
}

What you did:

I extend kcd-scripts inside my .eslintrc.js config, I add lint: kcd-scripts lint as script in my package.json so I run yarn lint and works fine but its trowing errors from coverage folder. I should add that I am using other plugins within my eslint configuration such as eslint-plugin-eslint-comments, but this should not be a problem, as the plugin is doing its job but is throwing errors from a folder that is supposed to be ignored by eslint script.

What happened:

This is the result error showing by IDE console when I run yarn lint check the coverage folder in path:

coverage-error

Reproduction repository:

Problem description:

Suggested solution: