MagicMirror/.eslintrc.json

35 lines
711 B
JSON
Raw Normal View History

2016-05-03 19:09:38 -04:00
{
2020-07-27 13:10:07 +02:00
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:jsdoc/recommended"],
"plugins": ["prettier", "import", "jsdoc", "jest"],
2016-05-03 19:09:38 -04:00
"env": {
"browser": true,
"es2022": true,
2021-06-11 23:11:30 +02:00
"jest/globals": true,
2020-04-20 22:04:11 +02:00
"node": true
2018-01-25 20:07:51 +01:00
},
2020-05-02 10:33:24 +02:00
"globals": {
"config": true,
"Log": true,
2020-05-02 10:39:09 +02:00
"MM": true,
"Module": true,
2020-05-02 10:33:24 +02:00
"moment": true
},
2018-01-25 20:07:51 +01:00
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2022,
2018-01-25 20:07:51 +01:00
"ecmaFeatures": {
"globalReturn": true
}
2020-03-28 06:56:30 +01:00
},
2020-04-21 07:36:18 +02:00
"rules": {
"eqeqeq": "error",
"import/order": "error",
"no-param-reassign": "error",
2020-04-21 10:37:24 +02:00
"no-prototype-builtins": "off",
"no-throw-literal": "error",
"no-unused-vars": "off",
"no-useless-return": "error",
"prefer-template": "error"
2020-04-21 07:36:18 +02:00
}
}