From 6b27673203b8f1a60d8cea010428912254252b2e Mon Sep 17 00:00:00 2001 From: Nick Wittwer Date: Tue, 29 Jan 2019 20:43:15 +0100 Subject: [PATCH] Added eslint files --- .eslintignore | 0 .eslintrc.js | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .eslintignore create mode 100644 .eslintrc.js diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..e69de29b diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..88db4196 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,28 @@ +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, + // stop being annoying about spaces before parameters + 'space-before-function-paren': 0, + // allow async-await + 'generator-star-spacing': 0, + // allow debugger during development + 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 + } +}