Merge branch 'origin/master' into Weblate.
[phpmyadmin.git] / .eslintrc.json
blob434ea753cb7fa062d08e4061918fc8776ec17c3b
2     "extends": [
3         "eslint:recommended",
4         "plugin:no-jquery/deprecated",
5         "plugin:compat/recommended"
6     ],
7     "plugins": ["no-jquery"],
8     "parserOptions": {
9         "ecmaVersion": 6,
10         "sourceType": "module"
11     },
12     "env": {
13         "browser": true,
14         "es6": true,
15         "jquery": true
16     },
17     "globals": {
18         "AJAX": "readonly",
19         "bootstrap": "readonly",
20         "CodeMirror": "readonly",
21         "CommonActions": "readonly",
22         "CommonParams": "readonly",
23         "Cookies": "readonly",
24         "Functions": "readonly",
25         "Messages": "readonly",
26         "Navigation": "readonly",
27         "OpenLayers": "readonly",
28         "Sql": "readonly"
29     },
30     "rules": {
31         "valid-jsdoc": ["error", {
32             "prefer": {
33                 "returns": "return"
34             },
35             "requireReturn": false,
36             "requireParamType": false,
37             "requireReturnDescription": false,
38             "requireParamDescription": false
39         }],
40         "array-bracket-spacing": "error",
41         "brace-style": "error",
42         "camelcase": "error",
43         "comma-style": ["error", "last"],
44         "curly": "error",
45         "dot-notation": "error",
46         "eol-last": "error",
47         "eqeqeq": "error",
48         "indent": ["error", 4],
49         "keyword-spacing": "error",
50         "new-cap": "error",
51         "no-array-constructor": "error",
52         "no-eval": "error",
53         "no-loop-func": "error",
54         "no-multiple-empty-lines": "error",
55         "no-new-func": "error",
56         "no-new-object": "error",
57         "no-param-reassign": "error",
58         "no-prototype-builtins": "off",
59         "no-redeclare": ["error", { "builtinGlobals": false }],
60         "no-trailing-spaces": "error",
61         "no-underscore-dangle": "error",
62         "no-unneeded-ternary": "error",
63         "object-curly-spacing": ["error", "always"],
64         "one-var": ["error", "never"],
65         "padded-blocks": ["error", "never"],
66         "quotes": ["error", "single"],
67         "semi": "error",
68         "space-before-blocks": "error",
69         "space-before-function-paren": "error",
70         "space-in-parens": "error",
71         "space-infix-ops": "error",
72         "spaced-comment": ["error", "always"],
73         "wrap-iife": "error"
74     }