mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Update Eslint config, add new rule and handle issue (#3068)
This commit is contained in:
parent
d276a7ddb9
commit
ab0876f07a
@ -3,7 +3,7 @@
|
|||||||
"plugins": ["prettier", "jsdoc", "jest"],
|
"plugins": ["prettier", "jsdoc", "jest"],
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"es6": true,
|
"es2022": true,
|
||||||
"jest/globals": true,
|
"jest/globals": true,
|
||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
@ -16,7 +16,7 @@
|
|||||||
},
|
},
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"ecmaVersion": 2020,
|
"ecmaVersion": 2022,
|
||||||
"ecmaFeatures": {
|
"ecmaFeatures": {
|
||||||
"globalReturn": true
|
"globalReturn": true
|
||||||
}
|
}
|
||||||
@ -24,6 +24,7 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
"eqeqeq": "error",
|
"eqeqeq": "error",
|
||||||
"no-prototype-builtins": "off",
|
"no-prototype-builtins": "off",
|
||||||
|
"no-throw-literal": "error",
|
||||||
"no-unused-vars": "off",
|
"no-unused-vars": "off",
|
||||||
"no-useless-return": "error",
|
"no-useless-return": "error",
|
||||||
"prefer-template": "error"
|
"prefer-template": "error"
|
||||||
|
@ -37,6 +37,7 @@ _This release is scheduled to be released on 2023-04-01._
|
|||||||
- Update dates in Calendar widgets every minute
|
- Update dates in Calendar widgets every minute
|
||||||
- Cleanup jest coverage for patches
|
- Cleanup jest coverage for patches
|
||||||
- Update `stylelint` dependencies, switch to `stylelint-config-standard` and handle `stylelint` issues
|
- Update `stylelint` dependencies, switch to `stylelint-config-standard` and handle `stylelint` issues
|
||||||
|
- Update Eslint config, add new rule and handle issue
|
||||||
- Convert lots of callbacks to async/await
|
- Convert lots of callbacks to async/await
|
||||||
- Fixed Open-Meteo wind speed units
|
- Fixed Open-Meteo wind speed units
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ describe("Translator", () => {
|
|||||||
const file = "translation_test.json";
|
const file = "translation_test.json";
|
||||||
|
|
||||||
XMLHttpRequest.prototype.send = () => {
|
XMLHttpRequest.prototype.send = () => {
|
||||||
throw "Shouldn't load files";
|
throw new Error("Shouldn't load files");
|
||||||
};
|
};
|
||||||
|
|
||||||
Translator.translationsFallback[mmm.name] = {
|
Translator.translationsFallback[mmm.name] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user