diff options
-rw-r--r-- | .browserslistrc | 2 | ||||
-rw-r--r-- | .eslintrc.json | 62 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 0000000..6ba27bf --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,2 @@ +# Browsers that we support +> 0% diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..b6af3aa --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,62 @@ +{ + "env": { + "browser": true, + "es6": true, + "jquery": true, + "node": true + }, + "extends": [ + "airbnb", + "eslint:recommended", + "jquery", + "plugin:import/errors", + "plugin:import/warnings", + "plugin:node/recommended", + "plugin:promise/recommended", + "plugin:security/recommended", + "plugin:sonarjs/recommended", + "plugin:unicorn/recommended", + "standard" + ], + "plugins": [ + "compat", + "import", + "no-loops", + "no-loops", + "no-use-extend-native", + "node", + "optimize-regex", + "promise", + "security", + "sonarjs", + "unicorn" + ], + "parserOptions": { + "ecmaVersion": 2018, + "sourceType": "module" + }, + "rules": { + "compat/compat": "error", + "indent": [ + "error", + 4 + ], + "linebreak-style": [ + "error", + "unix" + ], + "no-loops/no-loops": 2, + "no-use-extend-native/no-use-extend-native": 2, + "no-unsupported-features/es-builtins": 0, + "node/no-unsupported-features/es-syntax": 0, + "optimize-regex/optimize-regex": "warn", + "quotes": [ + "error", + "double" + ], + "semi": [ + "error", + "always" + ] + } +} |