Merge #16597 - Fix #15389 - reset current page indicator after deleting all rows...
[phpmyadmin.git] / .eslintrc.json
blobb6969bd892628b0ffefcaa1bce561d1614c9eb1c
2     "extends": [
3         "eslint:recommended",
4         "plugin:no-jquery/deprecated",
5         "plugin:compat/recommended"
6     ],
7     "plugins": ["no-jquery"],
8     "env": {
9         "browser": true,
10         "es6": true,
11         "jquery": true
12     },
13     "globals": {
14         "AJAX": "readonly",
15         "CodeMirror": "readonly",
16         "CommonActions": "readonly",
17         "CommonParams": "readonly",
18         "Cookies": "readonly",
19         "Functions": "readonly",
20         "Messages": "readonly",
21         "Navigation": "readonly",
22         "OpenLayers": "readonly",
23         "Sql": "readonly"
24     },
25     "rules": {
26         "array-bracket-spacing": "error",
27         "brace-style": "error",
28         "camelcase": "error",
29         "comma-style": ["error", "last"],
30         "curly": "error",
31         "dot-notation": "error",
32         "eol-last": "error",
33         "eqeqeq": "error",
34         "indent": ["error", 4],
35         "keyword-spacing": "error",
36         "new-cap": "error",
37         "no-array-constructor": "error",
38         "no-eval": "error",
39         "no-loop-func": "error",
40         "no-multiple-empty-lines": "error",
41         "no-new-func": "error",
42         "no-new-object": "error",
43         "no-param-reassign": "error",
44         "no-prototype-builtins": "off",
45         "no-redeclare": ["error", { "builtinGlobals": false }],
46         "no-trailing-spaces": "error",
47         "no-underscore-dangle": "error",
48         "no-unneeded-ternary": "error",
49         "object-curly-spacing": ["error", "always"],
50         "one-var": ["error", "never"],
51         "padded-blocks": ["error", "never"],
52         "quotes": ["error", "single"],
53         "semi": "error",
54         "space-before-blocks": "error",
55         "space-before-function-paren": "error",
56         "space-in-parens": "error",
57         "space-infix-ops": "error",
58         "spaced-comment": ["error", "always"],
59         "wrap-iife": "error"
60     }