summaryrefslogtreecommitdiff
path: root/electron/.eslintrc.js
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2020-04-28 12:34:05 -0400
committerGitHub <noreply@github.com>2020-04-28 18:34:05 +0200
commitcb2b4e3522cb7f426ba5ad3e68deb9e6ccc581ec (patch)
tree2a2f38823c3c9f0b5439ce2aa7c9040299109292 /electron/.eslintrc.js
parenteb526927e16954390d06929535d6f5c3766b5f6c (diff)
electron simulator (#531)
Diffstat (limited to 'electron/.eslintrc.js')
-rw-r--r--electron/.eslintrc.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/electron/.eslintrc.js b/electron/.eslintrc.js
new file mode 100644
index 00000000..90cf05bb
--- /dev/null
+++ b/electron/.eslintrc.js
@@ -0,0 +1,26 @@
+module.exports = {
+ root: true,
+ parser: 'babel-eslint',
+ parserOptions: {
+ sourceType: 'module'
+ },
+ env: {
+ browser: true,
+ node: true
+ },
+ extends: 'standard',
+ globals: {
+ __static: true
+ },
+ plugins: [
+ 'html'
+ ],
+ 'rules': {
+ // allow paren-less arrow functions
+ 'arrow-parens': 0,
+ // allow async-await
+ 'generator-star-spacing': 0,
+ // allow debugger during development
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
+ }
+}