mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Review eslint config (#3269)
- Remove "prettier" from plugin array, because it's already enabled by "plugin:prettier/recommended" - Remove "jsdoc" from plugin array, because it's already enabled by "plugin:jsdoc/recommended" - Enable recommended import rules - Add two additional import rules Note: To avoid overloading this PR I'll tackle the jest part with another PR after this one has been dealt with.
This commit is contained in:
parent
247115d2e4
commit
679a413788
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:jsdoc/recommended"],
|
"extends": ["eslint:recommended", "plugin:import/recommended", "plugin:jsdoc/recommended", "plugin:prettier/recommended"],
|
||||||
"plugins": ["prettier", "import", "jsdoc", "jest"],
|
"plugins": ["jest"],
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"es2022": true,
|
"es2022": true,
|
||||||
@ -24,6 +24,8 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
"eqeqeq": "error",
|
"eqeqeq": "error",
|
||||||
"import/order": "error",
|
"import/order": "error",
|
||||||
|
"import/extensions": "error",
|
||||||
|
"import/newline-after-import": "error",
|
||||||
"no-param-reassign": "error",
|
"no-param-reassign": "error",
|
||||||
"no-prototype-builtins": "off",
|
"no-prototype-builtins": "off",
|
||||||
"no-throw-literal": "error",
|
"no-throw-literal": "error",
|
||||||
|
@ -25,6 +25,7 @@ _This release is scheduled to be released on 2024-01-01._
|
|||||||
|
|
||||||
- Update electron to v27 and update other dependencies as well as github actions
|
- Update electron to v27 and update other dependencies as well as github actions
|
||||||
- Update newsfeed: Use `html-to-text` instead of regex for transform description
|
- Update newsfeed: Use `html-to-text` instead of regex for transform description
|
||||||
|
- Review ESLint config (#3269)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ const fs = require("fs");
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
const envsub = require("envsub");
|
const envsub = require("envsub");
|
||||||
const Log = require("logger");
|
const Log = require("logger");
|
||||||
|
|
||||||
const Server = require(`${__dirname}/server`);
|
const Server = require(`${__dirname}/server`);
|
||||||
const Utils = require(`${__dirname}/utils`);
|
const Utils = require(`${__dirname}/utils`);
|
||||||
const defaultModules = require(`${__dirname}/../modules/default/defaultmodules`);
|
const defaultModules = require(`${__dirname}/../modules/default/defaultmodules`);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const Log = require("logger");
|
const Log = require("logger");
|
||||||
|
|
||||||
const startUp = new Date();
|
const startUp = new Date();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
*/
|
*/
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const moment = require("moment");
|
const moment = require("moment");
|
||||||
|
|
||||||
const zoneTable = require(path.join(__dirname, "windowsZones.json"));
|
const zoneTable = require(path.join(__dirname, "windowsZones.json"));
|
||||||
const Log = require("../../../js/logger");
|
const Log = require("../../../js/logger");
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* 09/2023
|
* 09/2023
|
||||||
* MIT Licensed.
|
* MIT Licensed.
|
||||||
*/
|
*/
|
||||||
const helpers = require("./helpers/global-setup.js");
|
const helpers = require("./helpers/global-setup");
|
||||||
|
|
||||||
describe("AnimateCSS integration Test", () => {
|
describe("AnimateCSS integration Test", () => {
|
||||||
// define config file for testing
|
// define config file for testing
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
const auth = require("express-basic-auth");
|
const auth = require("express-basic-auth");
|
||||||
const express = require("express");
|
const express = require("express");
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
const basicAuth = auth({
|
const basicAuth = auth({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user