prettier-eslint-cli icon indicating copy to clipboard operation
prettier-eslint-cli copied to clipboard

`--list-different` from script fails

Open runely opened this issue 4 years ago • 0 comments

  • prettier-eslint-cli version: 5.0.1
  • prettier version: 2.3.2
  • eslint version: 7.30.0

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'
    ]
  }

npm script

"scripts": {
    "lint": "prettier-eslint --list-different **/*.js"
  }

What you did: npm run lint

What happened: Fails with error Cannot read property 'match' of undefined

image

Problem description: prettier-eslint --list-different fails with error Cannot read property 'match' of undefined

runely avatar Jul 11 '21 08:07 runely