From 4a5e405931d63ef4e3155bc9bff62d38ff057dcb Mon Sep 17 00:00:00 2001 From: DCoded <dcoded@live.com> Date: Sat, 30 Mar 2019 00:37:06 -0400 Subject: [PATCH] Helps if I actually push the changes --- .eslintrc.json | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 1 - 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 00000000000..52ea40bb78d --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,62 @@ +{ + "root": true, + "env": { + "browser": true, + "es6": true, + "jquery": true + }, + "extends": "eslint:recommended", + "globals": { + "SugarCube": false, + "Config": false, + "State": false, + "Story": false, + "settings": false, + "setup": false, + "App": false, + "prehistory": true, + "predisplay": true, + "prerender": true, + "postrender": true, + "postdisplay": true + }, + "parserOptions": { + "ecmaVersion": 2018, + "sourceType": "module", + "ecmaFeatures": { + "impliedStrict": true + } + }, + "rules": { + "semi-spacing": "warn", + "semi-style": "warn", + "eqeqeq": "error", + "default-case": "error", + "camelcase": "warn", + "comma-spacing": "error", + "comma-style": "error", + "object-curly-newline": "off", + "object-curly-spacing": "error", + "no-var": "error", + "spaced-comment": "warn", + "no-undef": "off", + "no-unused-vars": "error", + "block-scoped-var": "warn", + "dot-notation": "off", + "linebreak-style": ["error", "unix"], + "no-else-return": "warn", + "eol-last": "warn", + "unicode-bom": [ + "error", + "never" + ], + "valid-jsdoc": [ + "warn", + { + "requireParamDescription": false, + "requireReturnDescription": false, + "requireReturn": false + } + ] + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 8dc0920da27..e4ad18d5203 100644 --- a/.gitignore +++ b/.gitignore @@ -96,7 +96,6 @@ src/config/start.tw # eslint .eslintrc.js -.eslintrc.json node_modules package-lock.json package.json -- GitLab