Error: `sourceCode.isSpaceBetween is not a function Occurred while linting`
See original GitHub issueESLint config:
{ "extends": ["airbnb-typescript"], "parserOptions": { "project": "./tsconfig.json", }, "rules": { "semi": "error" } }
package.json:
{ "name": "prettier-test", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "@typescript-eslint/eslint-plugin": "^2.19.2", "@typescript-eslint/parser": "^2.19.2", "eslint": "^6.1.0", "eslint-config-airbnb": "^18.0.1", "eslint-config-airbnb-typescript": "^7.0.0", "eslint-plugin-import": "^2.20.1", "eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-react": "^7.18.3", "eslint-plugin-react-hooks": "^1.7.0", "typescript": "^3.7.5" } }
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:14 (4 by maintainers)
Top GitHub Comments
Resolved: turns out I had an old eslint version installed globally 😳
having the same issue as you guys using the last version of eslint-config-airbnb-typescript! downgrading it to 6.2.3 seems to fix the issue.
// package.json
// eslint
// tsconfig.json