]> git.proxmox.com Git - mirror_novnc.git/blob - .eslintrc
feat: add French localization strings
[mirror_novnc.git] / .eslintrc
1 {
2 "env": {
3 "browser": true,
4 "es6": true
5 },
6 "parserOptions": {
7 "sourceType": "module"
8 },
9 "extends": "eslint:recommended",
10 "rules": {
11 "no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": true }],
12 "no-constant-condition": ["error", { "checkLoops": false }],
13 "no-var": "error",
14 "no-useless-constructor": "error",
15 "object-shorthand": ["error", "methods", { "avoidQuotes": true }],
16 "prefer-arrow-callback": "error",
17 "arrow-body-style": ["error", "as-needed", { "requireReturnForObjectLiteral": false } ],
18 "arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
19 "arrow-spacing": ["error"],
20 "no-confusing-arrow": ["error", { "allowParens": true }],
21 }
22 }