Skip to content

Commit e59eb09

Browse files
ota-meshikazupon
authored andcommitted
Fixed jsx parsing error (#961)
* Fixed jsx parsing error refs eslint/eslint#11018 * Fixed parsing error in eslint@5. * Changed the definition of JOB.
1 parent 1d12b93 commit e59eb09

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Diff for: .circleci/config.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ jobs:
5858
- run:
5959
name: Install dependencies
6060
command: npm install
61+
- save_cache:
62+
key: v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
63+
paths:
64+
- node_modules
6165
- run:
6266
name: Install eslint 5
6367
command: |
6468
# We need to execute this command twice because of npm's bug.
6569
# See also: https://npm.community/t/error-node-modules-staging-eslint-e7cf6846-node-modules-eslint
66-
npm install [email protected] --no-save
67-
npm install [email protected] --no-save
70+
npm install [email protected] [email protected] --no-save
71+
npm install [email protected] [email protected] --no-save
6872
- run:
6973
name: Test
7074
command: npm test
71-
- save_cache:
72-
key: v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
73-
paths:
74-
- node_modules

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"devDependencies": {
5252
"@types/node": "^4.2.16",
5353
"@typescript-eslint/parser": "^1.11.0",
54+
"acorn": "^7.0.0",
5455
"babel-eslint": "^10.0.2",
5556
"chai": "^4.1.0",
5657
"eslint": "^6.0.0",

0 commit comments

Comments
 (0)