Skip to content

Commit 32de2d3

Browse files
Set node env in client to support commonjs and fix syntax issues
1 parent ebf4e6e commit 32de2d3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.eslintrc-client

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "./.eslintrc-default",
33
"env": {
44
"browser": true,
5+
"node": true,
56
"es6": true
67
},
78
"ecmaFeatures": {

.eslintrc-default

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"no-floating-decimal": 2,
1717
"no-process-env": 2,
1818
"no-self-compare": 2,
19-
"no-warning-comments": [1, { "terms": ["todo"], "location": "anywhere" }]",
19+
"no-warning-comments": [1, { "terms": ["todo"], "location": "anywhere" }],
2020
"no-throw-literal": 2,
2121
"radix": 2,
2222
"vars-on-top": 2,
23-
"wrap-iife": 2
23+
"wrap-iife": 2,
2424

25-
// Strict Mode
25+
// Variables
2626
"no-catch-shadow": 2,
2727
"no-undefined": 2,
2828

@@ -32,7 +32,7 @@
3232
"comma-style": 2,
3333
"computed-property-spacing": 2,
3434
"consistent-this": [2, "self"],
35-
"func-style": [2, "declaration"]",
35+
"func-style": [2, "declaration"],
3636
"indent": 2,
3737
"linebreak-style": 2,
3838
"max-nested-callbacks": [2, 3],

0 commit comments

Comments
 (0)