mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-09-13 15:45:13 +00:00
44 lines
1.0 KiB
JSON
44 lines
1.0 KiB
JSON
{
|
|
"extends": ["eslint:recommended", "plugin:import/recommended", "plugin:jest/recommended", "plugin:jsdoc/recommended", "plugin:prettier/recommended"],
|
|
"plugins": [],
|
|
"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",
|
|
"jest/consistent-test-it": "warn",
|
|
"jest/expect-expect": "warn",
|
|
"jest/no-done-callback": "warn",
|
|
"jest/prefer-expect-resolves": "warn",
|
|
"jest/prefer-mock-promise-shorthand": "warn",
|
|
"jest/prefer-to-be": "warn",
|
|
"jest/prefer-to-have-length": "warn",
|
|
"no-param-reassign": "error",
|
|
"no-prototype-builtins": "off",
|
|
"no-throw-literal": "error",
|
|
"no-unused-vars": "off",
|
|
"no-useless-return": "error",
|
|
"prefer-template": "error"
|
|
}
|
|
}
|