Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2017-09-16 04:56:41 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2017-09-25 20:17:25 +0300
commit83df3be3295325a42a487afcf4b88e8b84de7a52 (patch)
tree245c414f9277d5cb3819c66c26a71b415d53bf05 /.eslintrc.json
parentcdceb44af4d673328462f7b41f8463d0b6e56906 (diff)
Add ESLint JavaScript linter
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json42
1 files changed, 42 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000000..68418f56c2
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,42 @@
+{
+ "env": {
+ "browser": true,
+ "jquery": true
+ },
+ "rules": {
+ "array-bracket-spacing": "error",
+ "brace-style": "warn",
+ "camelcase": "warn",
+ "comma-style": ["error", "last"],
+ "curly": "error",
+ "dot-notation": "error",
+ "eol-last": "error",
+ "eqeqeq": "warn",
+ "indent": ["error", 4],
+ "keyword-spacing": "error",
+ "new-cap": "warn",
+ "no-array-constructor": "warn",
+ "no-eval": "warn",
+ "no-loop-func": "warn",
+ "no-mixed-spaces-and-tabs": "error",
+ "no-multiple-empty-lines": "error",
+ "no-new-func": "error",
+ "no-new-object": "error",
+ "no-param-reassign": "warn",
+ "no-trailing-spaces": "error",
+ "no-underscore-dangle": "warn",
+ "no-unneeded-ternary": "error",
+ "no-useless-escape": "warn",
+ "object-curly-spacing": ["error", "always"],
+ "one-var": ["warn", "never"],
+ "padded-blocks": ["error", "never"],
+ "quotes": ["error", "single"],
+ "semi": "error",
+ "space-before-blocks": "error",
+ "space-before-function-paren": "error",
+ "space-in-parens": "error",
+ "space-infix-ops": "error",
+ "spaced-comment": ["error", "always"],
+ "wrap-iife": "error"
+ }
+}