prettier / prettier-eslint-cli

CLI for prettier-eslint
https://npm.im/prettier-eslint-cli
MIT License
541 stars 85 forks source link

`--list-different` doesn't exclude node_modules #420

Closed runely closed 2 years ago

runely commented 3 years ago

Relevant code/config.

extends: ['eslint:recommended'],
  parserOptions: {
    ecmaVersion: 6
  },
  env: {
    node: true
  },
  settings: {
    jest: {
      version: 26
    }
  },
  rules: {
    quotes: [
      'error',
      'single',
      {
        avoidEscape: true
      }
    ],
    semi: [
      2,
      'never'
    ]
  }

What you did: npx prettier-eslint --list-different */.js

What happened: JavaScript files from node_modules are listed.

image

Problem description: --list-different should by default have excluded node_modules directory

JounQin commented 2 years ago

**/*.js will of course match node_modules