Skip to content

Commit

Permalink
Merge pull request #37 from UziTech/eslint-parser
Browse files Browse the repository at this point in the history
fix: use @babel/eslint-parser
  • Loading branch information
aminya authored Apr 21, 2021
2 parents c7a27b2 + a7f0900 commit d4b0758
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 21 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ The list of used plugins and dependencies:
```
"@typescript-eslint/eslint-plugin": "^4.14.2",
"@typescript-eslint/parser": "^4.14.2",
"babel-eslint": "^10.1.0",
"eslint-plugin-coffee": "^0.1.13",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-json": "^2.1.2",
Expand All @@ -102,5 +101,6 @@ The list of used plugins and dependencies:
"prettier": "^2",
"typescript": "^4",
"coffeescript": "^1",
"@babel/core": "^7"
"@babel/core": "^7",
"@babel/eslint-parser": "^7.13.14",
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
"dependencies": {
"eslint": "^7",
"@babel/core": "^7",
"@babel/eslint-parser": "^7.13.14",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"babel-eslint": "^10.1.0",
"coffeescript": "^1",
"eslint-config-prettier": "^8.2.0",
"eslint-plugin-coffee": "^0.1.14",
Expand Down
47 changes: 30 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ const { pluginNodeRules } = require("./plugin-node-rules")
const { pluginImportRulesExtra } = require("./plugin-import-rules")

exports.jsConfig = {
parser: "babel-eslint",
parser: "@babel/eslint-parser",
parserOptions: {
requireConfigFile: false,
ecmaFeatures: {
jsx: true,
},
Expand Down

0 comments on commit d4b0758

Please sign in to comment.