mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-06 07:37:41 +00:00
Re-add eslint-plugin-import (#3586)
eslint-plugin-import was missing since the switch to [v9](https://github.com/MagicMirrorOrg/MagicMirror/pull/3558). They finally [support](https://github.com/import-js/eslint-plugin-import/pull/2996) it so we can re-add it.
This commit is contained in:
parent
3d1e8ab849
commit
fff31068ab
@ -11,6 +11,8 @@ _This release is scheduled to be released on 2025-01-01._
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
- [linter] re-added `eslint-plugin-import`now that it supports ESLint v9
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
- [tests] Removed node-pty and drivelist from rebuilded test (#3575)
|
- [tests] Removed node-pty and drivelist from rebuilded test (#3575)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import eslintPluginImport from "eslint-plugin-import";
|
||||||
import eslintPluginJest from "eslint-plugin-jest";
|
import eslintPluginJest from "eslint-plugin-jest";
|
||||||
import eslintPluginJs from "@eslint/js";
|
import eslintPluginJs from "@eslint/js";
|
||||||
import eslintPluginStylistic from "@stylistic/eslint-plugin";
|
import eslintPluginStylistic from "@stylistic/eslint-plugin";
|
||||||
@ -5,6 +6,7 @@ import globals from "globals";
|
|||||||
|
|
||||||
const config = [
|
const config = [
|
||||||
eslintPluginJs.configs.recommended,
|
eslintPluginJs.configs.recommended,
|
||||||
|
eslintPluginImport.flatConfigs.recommended,
|
||||||
{
|
{
|
||||||
files: ["**/*.js"],
|
files: ["**/*.js"],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
@ -53,6 +55,9 @@ const config = [
|
|||||||
"@stylistic/spaced-comment": "off",
|
"@stylistic/spaced-comment": "off",
|
||||||
eqeqeq: "error",
|
eqeqeq: "error",
|
||||||
"id-length": "off",
|
"id-length": "off",
|
||||||
|
"import/order": "error",
|
||||||
|
"import/extensions": "error",
|
||||||
|
"import/newline-after-import": "error",
|
||||||
"init-declarations": "off",
|
"init-declarations": "off",
|
||||||
"jest/consistent-test-it": "warn",
|
"jest/consistent-test-it": "warn",
|
||||||
"jest/no-done-callback": "warn",
|
"jest/no-done-callback": "warn",
|
||||||
|
1168
package-lock.json
generated
1168
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@ -59,8 +59,8 @@
|
|||||||
"ansis": "^3.3.2",
|
"ansis": "^3.3.2",
|
||||||
"console-stamp": "^3.1.2",
|
"console-stamp": "^3.1.2",
|
||||||
"envsub": "^4.1.0",
|
"envsub": "^4.1.0",
|
||||||
"eslint": "^9.11.1",
|
"eslint": "^9.12.0",
|
||||||
"express": "^4.21.0",
|
"express": "^4.21.1",
|
||||||
"express-ipfilter": "^1.3.2",
|
"express-ipfilter": "^1.3.2",
|
||||||
"feedme": "^2.0.2",
|
"feedme": "^2.0.2",
|
||||||
"helmet": "^8.0.0",
|
"helmet": "^8.0.0",
|
||||||
@ -75,21 +75,22 @@
|
|||||||
"systeminformation": "^5.23.5"
|
"systeminformation": "^5.23.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.11.1",
|
"@eslint/js": "^9.12.0",
|
||||||
"@stylistic/eslint-plugin": "^2.8.0",
|
"@stylistic/eslint-plugin": "^2.9.0",
|
||||||
"cspell": "^8.14.4",
|
"cspell": "^8.15.1",
|
||||||
|
"eslint-plugin-import": "^2.31.0",
|
||||||
"eslint-plugin-jest": "^28.8.3",
|
"eslint-plugin-jest": "^28.8.3",
|
||||||
"eslint-plugin-jsdoc": "^50.3.1",
|
"eslint-plugin-jsdoc": "^50.3.2",
|
||||||
"eslint-plugin-package-json": "^0.15.3",
|
"eslint-plugin-package-json": "^0.15.3",
|
||||||
"express-basic-auth": "^1.2.1",
|
"express-basic-auth": "^1.2.1",
|
||||||
"husky": "^9.1.6",
|
"husky": "^9.1.6",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"jsdom": "^25.0.1",
|
"jsdom": "^25.0.1",
|
||||||
"lint-staged": "^15.2.10",
|
"lint-staged": "^15.2.10",
|
||||||
"playwright": "^1.47.2",
|
"playwright": "^1.48.0",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.3.3",
|
||||||
"sinon": "^19.0.2",
|
"sinon": "^19.0.2",
|
||||||
"stylelint": "^16.9.0",
|
"stylelint": "^16.10.0",
|
||||||
"stylelint-config-standard": "^36.0.1",
|
"stylelint-config-standard": "^36.0.1",
|
||||||
"stylelint-prettier": "^5.0.2"
|
"stylelint-prettier": "^5.0.2"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user