mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-28 20:45:39 +00:00
- order (external first) - remove superfluous file extensions - new line after imports - deconstruct (only one time (in `check_config.js`)) - fix path (only one time (in `global-setup.js`))
34 lines
679 B
JSON
34 lines
679 B
JSON
{
|
|
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:jsdoc/recommended"],
|
|
"plugins": ["prettier", "import", "jsdoc", "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",
|
|
"no-prototype-builtins": "off",
|
|
"no-throw-literal": "error",
|
|
"no-unused-vars": "off",
|
|
"no-useless-return": "error",
|
|
"prefer-template": "error"
|
|
}
|
|
}
|