a5e20a4943
It didn't work: prettier still used double quotes as a standard
so it was not possible to pass make check
This reverts commit 7c5c5bd47b
.
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic04f1591dc39bbfe522ed2b840c543ec42b3ffa3
57 lines
1.4 KiB
Text
57 lines
1.4 KiB
Text
{
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"prettier"
|
|
],
|
|
"rules": {
|
|
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
|
|
"no-lonely-if": 2,
|
|
"no-underscore-dangle": 0,
|
|
"no-constant-condition": 0,
|
|
"strict": 0,
|
|
"no-shadow": 0,
|
|
"no-console": 0,
|
|
"no-control-regex": 0,
|
|
"no-useless-escape": 0,
|
|
"no-redeclare": 0,
|
|
/// Rules that are set to warn will fail in CI but not when building for development:
|
|
"no-debugger": 1,
|
|
"no-unreachable": 1,
|
|
"no-unused-vars": 1,
|
|
},
|
|
"globals": {
|
|
"L": true,
|
|
"module": false,
|
|
"define": false
|
|
},
|
|
"env": {
|
|
"browser": true
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 2017
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.ts"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"rules": {
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
"no-var": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-namespace": "off",
|
|
"no-inner-declarations": "off",
|
|
"no-constant-condition": "off",
|
|
"@typescript-eslint/triple-slash-reference": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|