Merge branch 'origin/master' into Weblate.
[phpmyadmin.git] / .eslintrc.json
blob79261d576c568f26474671b9b4484b2f8082089a
2     "extends": [
3         "eslint:recommended",
4         "plugin:@typescript-eslint/eslint-recommended",
5         "plugin:@typescript-eslint/recommended",
6         "plugin:no-jquery/deprecated",
7         "plugin:compat/recommended"
8     ],
9     "parser": "@typescript-eslint/parser",
10     "plugins": [ "@typescript-eslint", "no-jquery" ],
11     "parserOptions": {
12         "ecmaVersion": 6,
13         "sourceType": "module"
14     },
15     "env": {
16         "browser": true,
17         "es6": true
18     },
19     "rules": {
20         "array-bracket-spacing": "error",
21         "array-bracket-newline": ["error", { "multiline": true }],
22         "array-element-newline": ["error", "consistent"],
23         "brace-style": "error",
24         "camelcase": "error",
25         "comma-dangle": ["error", "only-multiline"],
26         "comma-style": ["error", "last"],
27         "curly": "error",
28         "dot-notation": "error",
29         "eol-last": "error",
30         "eqeqeq": "error",
31         "indent": ["error", 4],
32         "keyword-spacing": "error",
33         "lines-between-class-members": "error",
34         "new-cap": "error",
35         "no-array-constructor": "error",
36         "no-eval": "error",
37         "no-loop-func": "error",
38         "no-multiple-empty-lines": "error",
39         "no-new-func": "error",
40         "no-new-object": "error",
41         "no-param-reassign": "error",
42         "no-prototype-builtins": "off",
43         "no-redeclare": ["error", { "builtinGlobals": false }],
44         "no-trailing-spaces": "error",
45         "no-underscore-dangle": "error",
46         "no-unneeded-ternary": "error",
47         "no-var": "off",
48         "object-curly-spacing": ["error", "always"],
49         "one-var": ["error", "never"],
50         "padded-blocks": ["error", "never"],
51         "padding-line-between-statements": [
52             "error",
53             { "blankLine": "always", "prev": "block-like", "next": "*" },
54             { "blankLine": "always", "prev": "multiline-expression", "next": "*" },
55             { "blankLine": "always", "prev": "*", "next": "return" }
56         ],
57         "prefer-const": "off",
58         "prefer-rest-params": "off",
59         "prefer-spread": "off",
60         "quotes": ["error", "single"],
61         "semi": "error",
62         "space-before-blocks": "error",
63         "space-before-function-paren": "error",
64         "space-in-parens": "error",
65         "space-infix-ops": "error",
66         "spaced-comment": ["error", "always"],
67         "wrap-iife": "error",
68         "@typescript-eslint/ban-ts-comment": "off",
69         "@typescript-eslint/no-empty-function": "off",
70         "@typescript-eslint/no-explicit-any": "off",
71         "@typescript-eslint/no-unused-vars": "off",
72         "@typescript-eslint/no-this-alias": "off"
73     }