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