File tree Expand file tree Collapse file tree 5 files changed +355
-324
lines changed Expand file tree Collapse file tree 5 files changed +355
-324
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "parserOptions" : {
3
+ "ecmaVersion" : 5
4
+ },
5
+ "extends" : " eslint:recommended" ,
6
+ "env" : {
7
+ "commonjs" : true ,
8
+ "browser" : true
9
+ },
10
+ "rules" : {
11
+ "strict" : [2 , " global" ],
12
+ "block-scoped-var" : 2 ,
13
+ "consistent-return" : 2 ,
14
+ "eqeqeq" : [2 , " smart" ],
15
+ "guard-for-in" : 2 ,
16
+ "no-caller" : 2 ,
17
+ "no-extend-native" : 2 ,
18
+ "no-loop-func" : 2 ,
19
+ "no-new" : 2 ,
20
+ "no-param-reassign" : 2 ,
21
+ "no-return-assign" : 2 ,
22
+ "no-unused-expressions" : 2 ,
23
+ "no-use-before-define" : 2 ,
24
+ "radix" : [2 , " always" ],
25
+ "indent" : [2 , 2 ],
26
+ "quotes" : [2 , " double" ],
27
+ "semi" : [2 , " always" ]
28
+ }
29
+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ bower_components/
4
4
package-lock.json
5
5
6
6
/. *
7
+ ! /.eslintrc.json
7
8
! /.github
8
9
! /.gitignore
9
10
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ New features:
12
12
Bugfixes:
13
13
14
14
Other improvements:
15
+ - Added ESLint config and fixed the resulting linter issues (#82 )
15
16
16
17
## [ v5.0.0] ( https://github.com/purescript-web/purescript-canvas/releases/tag/v5.0.0 ) - 2021-02-26
17
18
Original file line number Diff line number Diff line change 2
2
"private" : true ,
3
3
"scripts" : {
4
4
"clean" : " rimraf output && rimraf .pulp-cache" ,
5
- "build" : " pulp build -- --censor-lib --strict"
5
+ "build" : " eslint src && pulp build -- --censor-lib --strict"
6
6
},
7
7
"devDependencies" : {
8
+ "eslint" : " ^7.32.0" ,
8
9
"pulp" : " ^15.0.0" ,
9
10
"purescript-psa" : " ^0.8.0" ,
10
11
"rimraf" : " ^3.0.2"
You can’t perform that action at this time.
0 commit comments