File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed
lib/matplotlib/backends/web_backend Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,28 @@ jobs:
18
18
19
19
- name : Set up reviewdog
20
20
run : |
21
- mkdir -p $HOME/bin && curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b $HOME/bin
21
+ mkdir -p $HOME/bin
22
+ curl -sfL \
23
+ https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
24
+ sh -s -- -b $HOME/bin
22
25
echo ::add-path::$HOME/bin
23
26
24
27
- name : Run flake8
25
28
env :
26
29
REVIEWDOG_GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
30
run : |
28
- flake8 --docstring-convention=all | reviewdog -f=pep8 -name=flake8 -reporter=github-check
31
+ flake8 --docstring-convention=all | \
32
+ reviewdog -f=pep8 -name=flake8 -reporter=github-check
33
+
34
+ eslint :
35
+ name : eslint
36
+ runs-on : ubuntu-latest
37
+ steps :
38
+ - uses : actions/checkout@v2
39
+
40
+ - name : eslint
41
+ uses : reviewdog/action-eslint@v1
42
+ with :
43
+ github_token : ${{ secrets.GITHUB_TOKEN }}
44
+ reporter : github-check
45
+ workdir : ' lib/matplotlib/backends/web_backend/'
Original file line number Diff line number Diff line change @@ -11,11 +11,22 @@ module.exports = {
11
11
MozWebSocket : "readonly" ,
12
12
} ,
13
13
rules : {
14
+ indent : [ "error" , 2 , { SwitchCase : 1 } ] ,
14
15
"no-unused-vars" : [
15
16
"error" ,
16
17
{
17
18
argsIgnorePattern : "^_" ,
18
19
} ,
19
20
] ,
21
+ quotes : [ "error" , "double" , { avoidEscape : true } ] ,
20
22
} ,
23
+ overrides : [
24
+ {
25
+ files : "js/**/*.js" ,
26
+ rules : {
27
+ indent : [ "error" , 4 , { SwitchCase : 1 } ] ,
28
+ quotes : [ "error" , "single" , { avoidEscape : true } ] ,
29
+ } ,
30
+ } ,
31
+ ] ,
21
32
} ;
You can’t perform that action at this time.
0 commit comments