2016-05-03 19:09:38 -04:00
|
|
|
{
|
2023-12-25 08:17:11 +01:00
|
|
|
"extends": ["eslint:recommended", "plugin:@stylistic/all-extends", "plugin:import/recommended", "plugin:jest/recommended", "plugin:jsdoc/recommended"],
|
2023-11-20 20:11:41 +01:00
|
|
|
"plugins": [],
|
2016-05-03 19:09:38 -04:00
|
|
|
"env": {
|
|
|
|
"browser": true,
|
2023-12-25 08:17:11 +01:00
|
|
|
"es2023": 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,
|
2020-05-05 14:55:15 +02:00
|
|
|
"Module": true,
|
2020-05-02 10:33:24 +02:00
|
|
|
"moment": true
|
|
|
|
},
|
2018-01-25 20:07:51 +01:00
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "module",
|
2023-12-25 08:17:11 +01:00
|
|
|
"ecmaVersion": 2023,
|
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": {
|
2021-08-31 23:39:40 +02:00
|
|
|
"eqeqeq": "error",
|
2023-03-22 23:53:10 +01:00
|
|
|
"import/order": "error",
|
2023-11-20 08:03:29 +01:00
|
|
|
"import/extensions": "error",
|
|
|
|
"import/newline-after-import": "error",
|
2023-11-20 20:11:41 +01:00
|
|
|
"jest/consistent-test-it": "warn",
|
2023-11-22 23:37:17 +01:00
|
|
|
"jest/expect-expect": "warn",
|
|
|
|
"jest/no-done-callback": "warn",
|
2023-11-20 20:11:41 +01:00
|
|
|
"jest/prefer-expect-resolves": "warn",
|
|
|
|
"jest/prefer-mock-promise-shorthand": "warn",
|
|
|
|
"jest/prefer-to-be": "warn",
|
|
|
|
"jest/prefer-to-have-length": "warn",
|
2023-04-16 17:38:39 +02:00
|
|
|
"no-param-reassign": "error",
|
2020-04-21 10:37:24 +02:00
|
|
|
"no-prototype-builtins": "off",
|
2023-03-20 22:18:58 +01:00
|
|
|
"no-throw-literal": "error",
|
2021-09-02 20:35:06 +02:00
|
|
|
"no-unused-vars": "off",
|
2023-03-19 14:32:23 +01:00
|
|
|
"no-useless-return": "error",
|
2023-12-25 08:17:11 +01:00
|
|
|
"object-shorthand": ["error", "methods"],
|
|
|
|
"prefer-template": "error",
|
|
|
|
"@stylistic/array-element-newline": ["error", "consistent"],
|
|
|
|
"@stylistic/arrow-parens": ["error", "always"],
|
|
|
|
"@stylistic/brace-style": "off",
|
|
|
|
"@stylistic/comma-dangle": ["error", "never"],
|
|
|
|
"@stylistic/dot-location": ["error", "property"],
|
|
|
|
"@stylistic/function-call-argument-newline": ["error", "consistent"],
|
|
|
|
"@stylistic/function-paren-newline": ["error", "consistent"],
|
|
|
|
"@stylistic/implicit-arrow-linebreak": ["error", "beside"],
|
|
|
|
"@stylistic/max-statements-per-line": ["error", { "max": 2 }],
|
|
|
|
"@stylistic/multiline-ternary": ["error", "always-multiline"],
|
|
|
|
"@stylistic/newline-per-chained-call": ["error", { "ignoreChainWithDepth": 4 }],
|
|
|
|
"@stylistic/no-extra-parens": "off",
|
|
|
|
"@stylistic/no-tabs": "off",
|
|
|
|
"@stylistic/object-curly-spacing": ["error", "always"],
|
|
|
|
"@stylistic/object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
|
|
|
|
"@stylistic/operator-linebreak": ["error", "before"],
|
|
|
|
"@stylistic/padded-blocks": "off",
|
|
|
|
"@stylistic/quote-props": ["error", "as-needed"],
|
|
|
|
"@stylistic/quotes": ["error", "double"],
|
|
|
|
"@stylistic/indent": ["error", "tab"],
|
|
|
|
"@stylistic/semi": ["error", "always"],
|
|
|
|
"@stylistic/space-before-function-paren": ["error", "always"],
|
|
|
|
"@stylistic/spaced-comment": "off"
|
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
2023-12-25 23:35:30 +01:00
|
|
|
"files": ["config/config.js*"],
|
2023-12-25 08:17:11 +01:00
|
|
|
"rules": {
|
|
|
|
"@stylistic/comma-dangle": "off",
|
|
|
|
"@stylistic/indent": "off",
|
|
|
|
"@stylistic/no-multi-spaces": "off"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["tests/configs/modules/weather/*.js"],
|
|
|
|
"rules": {
|
|
|
|
"@stylistic/quotes": "off"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2016-12-30 17:44:41 -03:00
|
|
|
}
|