Closed runely closed 2 years ago
prettier-eslint-cli
prettier
eslint
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
Cannot read property 'match' of undefined
Problem description: prettier-eslint --list-different fails with error Cannot read property 'match' of undefined
prettier-eslint --list-different
PR welcome to fix this issue.
And also please read https://antfu.me/posts/why-reproductions-are-required
prettier-eslint-cli
version: 5.0.1prettier
version: 2.3.2eslint
version: 7.30.0Relevant code/config.
npm script
What you did: npm run lint
What happened: Fails with error
Cannot read property 'match' of undefined
Problem description:
prettier-eslint --list-different
fails with errorCannot read property 'match' of undefined