Translated using Weblate (Norwegian Bokmål)
[phpmyadmin.git] / .eslintrc.json
blob0202573ced83ff24087da65722e668bf00dfdb51
2     "env": {
3         "browser": true,
4         "jquery": true
5     },
6     "rules": {
7         "array-bracket-spacing": "error",
8         "brace-style": "error",
9         "camelcase": "warn",
10         "comma-style": ["error", "last"],
11         "curly": "error",
12         "dot-notation": "error",
13         "eol-last": "error",
14         "eqeqeq": "error",
15         "indent": ["error", 4],
16         "keyword-spacing": "error",
17         "new-cap": "warn",
18         "no-array-constructor": "warn",
19         "no-eval": "warn",
20         "no-loop-func": "warn",
21         "no-mixed-spaces-and-tabs": "error",
22         "no-multiple-empty-lines": "error",
23         "no-new-func": "error",
24         "no-new-object": "error",
25         "no-param-reassign": "warn",
26         "no-trailing-spaces": "error",
27         "no-underscore-dangle": "warn",
28         "no-unneeded-ternary": "error",
29         "no-useless-escape": "warn",
30         "object-curly-spacing": ["error", "always"],
31         "one-var": ["error", "never"],
32         "padded-blocks": ["error", "never"],
33         "quotes": ["error", "single"],
34         "semi": "error",
35         "space-before-blocks": "error",
36         "space-before-function-paren": "error",
37         "space-in-parens": "error",
38         "space-infix-ops": "error",
39         "spaced-comment": ["error", "always"],
40         "wrap-iife": "error"
41     }