mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-02 15:10:22 +00:00
- 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.
37 lines
783 B
JSON
37 lines
783 B
JSON
{
|
|
"extends": ["eslint:recommended", "plugin:import/recommended", "plugin:jsdoc/recommended", "plugin:prettier/recommended"],
|
|
"plugins": ["jest"],
|
|
"env": {
|
|
"browser": true,
|
|
"es2022": true,
|
|
"jest/globals": true,
|
|
"node": true
|
|
},
|
|
"globals": {
|
|
"config": true,
|
|
"Log": true,
|
|
"MM": true,
|
|
"Module": true,
|
|
"moment": true
|
|
},
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": 2022,
|
|
"ecmaFeatures": {
|
|
"globalReturn": true
|
|
}
|
|
},
|
|
"rules": {
|
|
"eqeqeq": "error",
|
|
"import/order": "error",
|
|
"import/extensions": "error",
|
|
"import/newline-after-import": "error",
|
|
"no-param-reassign": "error",
|
|
"no-prototype-builtins": "off",
|
|
"no-throw-literal": "error",
|
|
"no-unused-vars": "off",
|
|
"no-useless-return": "error",
|
|
"prefer-template": "error"
|
|
}
|
|
}
|