File tree 4 files changed +16
-6685
lines changed
4 files changed +16
-6685
lines changed Original file line number Diff line number Diff line change @@ -14,28 +14,16 @@ jobs:
14
14
- name : Check out Git repository
15
15
uses : actions/checkout@v2
16
16
17
- - name : Install Node.js, NPM and Yarn
17
+ - name : Install Node.js, NPM
18
18
uses : actions/setup-node@v1
19
19
with :
20
- node-version : 14
20
+ node-version : 16
21
21
22
- - name : Get yarn cache directory path
23
- id : yarn-cache-dir-path
24
- run : echo "::set-output name=dir::$(yarn cache dir)"
22
+ - name : npm install
23
+ run : npm ci
25
24
26
- - uses : actions/cache@v2
27
- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
28
- with :
29
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
30
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
31
- restore-keys : |
32
- ${{ runner.os }}-yarn-
33
-
34
- - name : yarn install
35
- run : yarn --frozen-lockfile
36
-
37
- - name : yarn test
25
+ - name : npm test
38
26
env :
39
27
CLIENT_ID : ${{ secrets.CLIENT_ID }}
40
28
CLIENT_SECRET : ${{ secrets.CLIENT_SECRET }}
41
- run : yarn test
29
+ run : npm test
Original file line number Diff line number Diff line change 7
7
"homepage" : " https://github.com/amilajack/eslint-plugin-flowtype-errors#readme" ,
8
8
"main" : " index.js" ,
9
9
"scripts" : {
10
- "flow" : " flow" ,
11
10
"build" : " cross-env NODE_ENV=production babel src --out-dir dist" ,
12
11
"lint" : " eslint --cache ." ,
13
12
"prettier" : " prettier --single-quote --write \" ./src/*.js\" " ,
14
- "preversion" : " yarn build" ,
15
- "spec" : " yarn build && jest" ,
16
- "test" : " yarn flow && yarn lint && yarn spec"
13
+ "preversion" : " npm run build" ,
14
+ "spec" : " npm run build && jest" ,
15
+ "test" : " flow && npm run lint && npm run spec"
17
16
},
18
17
"repository" : " https://github.com/amilajack/eslint-plugin-flowtype-errors" ,
19
18
"jest" : {
137
136
},
138
137
"husky" : {
139
138
"hooks" : {
140
- "pre-commit" : " yarn test"
139
+ "pre-commit" : " npm test"
141
140
}
142
141
}
143
142
}
Original file line number Diff line number Diff line change @@ -65,18 +65,18 @@ exports[`Check codebases html-support - eslint should give expected output 1`] =
65
65
5:1 error Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <> ...</>?
66
66
67
67
3 | </template>
68
- 4 |
68
+ 4 |
69
69
> 5 | <script >
70
70
| ^
71
71
6 | // @flow
72
- 7 |
72
+ 7 |
73
73
8 | import B from \\"./b.vue\\";
74
74
75
75
./b.vue
76
76
5:1 error Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <> ...</>?
77
77
78
78
3 | </template >
79
- 4 |
79
+ 4 |
80
80
> 5 | <script >
81
81
| ^
82
82
6 | export default { } ;
@@ -112,13 +112,13 @@ exports[`Check codebases project-1 - eslint should give expected output 1`] = `
112
112
12:6 error Cannot resolve name \` x\` . [cannot-resolve-name] flowtype-errors/show-errors
113
113
114
114
./3.example.js
115
- 18:7 error Parsing error: Identifier 'who' has already been declared
115
+ 18:7 error Parsing error: Identifier 'who' has already been declared.
116
116
117
117
16 | var str: number = 'hello world!';
118
- 17 |
118
+ 17 |
119
119
> 18 | const who = { } ;
120
120
| ^
121
- 19 |
121
+ 19 |
122
122
20 | moo(str + who);
123
123
21 |
124
124
You can’t perform that action at this time.
0 commit comments