aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json62
1 files changed, 62 insertions, 0 deletions
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"
+ ]
+ }
+}