aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-09-30 06:56:55 +0300
committerValentin Popov <info@valentineus.link>2018-09-30 06:56:55 +0300
commitf969690944458c51aaa7be42b2f7a1ff70c55507 (patch)
treeab3ba882b4e4fe3691e284c10def46be9eff0b1d
parent51993d681a1cc142715d2d5cfa5acacf299cd0c9 (diff)
downloadjs-github-library-f969690944458c51aaa7be42b2f7a1ff70c55507.tar.xz
js-github-library-f969690944458c51aaa7be42b2f7a1ff70c55507.zip
Settings of this statistical analyzer
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--.browserslistrc2
-rw-r--r--.eslintrc.json62
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"
+ ]
+ }
+}