2021-01-16 05:35:50 +01:00
|
|
|
{
|
|
|
|
"parserOptions": {
|
2022-01-23 00:33:41 +01:00
|
|
|
"ecmaVersion": 2019,
|
|
|
|
"sourceType": "script"
|
2021-01-16 05:35:50 +01:00
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"node": true,
|
|
|
|
"es6": true
|
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"node",
|
|
|
|
"unicorn"
|
|
|
|
],
|
|
|
|
"extends": [
|
2022-01-23 00:33:41 +01:00
|
|
|
"eslint:all",
|
|
|
|
"plugin:unicorn/all"
|
2021-01-16 05:35:50 +01:00
|
|
|
],
|
|
|
|
"reportUnusedDisableDirectives": true,
|
|
|
|
"rules": {
|
2023-04-08 05:20:52 +02:00
|
|
|
"max-statements": "off",
|
|
|
|
"multiline-ternary": "off",
|
|
|
|
"no-magic-numbers": "off",
|
|
|
|
"no-ternary": "off",
|
2021-01-16 05:35:50 +01:00
|
|
|
"one-var": "off",
|
|
|
|
"sort-keys": "off",
|
|
|
|
|
|
|
|
"node/handle-callback-err": "error",
|
|
|
|
"node/no-callback-literal": "error",
|
|
|
|
"node/no-exports-assign": "error",
|
|
|
|
"node/no-extraneous-import": "error",
|
|
|
|
"node/no-extraneous-require": "error",
|
|
|
|
"node/no-missing-import": "error",
|
|
|
|
"node/no-missing-require": "error",
|
|
|
|
"node/no-new-require": "error",
|
|
|
|
"node/no-path-concat": "error",
|
|
|
|
"node/no-process-exit": "error",
|
|
|
|
"node/no-unpublished-bin": "error",
|
|
|
|
"node/no-unpublished-import": "error",
|
|
|
|
"node/no-unpublished-require": "error",
|
|
|
|
"node/no-unsupported-features/es-builtins": "error",
|
|
|
|
"node/no-unsupported-features/es-syntax": "error",
|
|
|
|
"node/no-unsupported-features/node-builtins": "error",
|
|
|
|
"node/process-exit-as-throw": "error",
|
|
|
|
"node/shebang": "error",
|
|
|
|
"node/no-deprecated-api": "error",
|
|
|
|
"node/callback-return": "error",
|
|
|
|
"node/exports-style": "error",
|
|
|
|
"node/file-extension-in-import": "error",
|
|
|
|
"node/global-require": "error",
|
|
|
|
"node/no-mixed-requires": "error",
|
|
|
|
"node/no-process-env": "error",
|
|
|
|
"node/no-restricted-import": "error",
|
|
|
|
"node/no-restricted-require": "error",
|
|
|
|
"node/no-sync": "error",
|
|
|
|
"node/prefer-global/buffer": "error",
|
|
|
|
"node/prefer-global/console": "error",
|
|
|
|
"node/prefer-global/process": "error",
|
|
|
|
"node/prefer-global/text-decoder": "error",
|
|
|
|
"node/prefer-global/text-encoder": "error",
|
|
|
|
"node/prefer-global/url-search-params": "error",
|
|
|
|
"node/prefer-global/url": "error",
|
|
|
|
"node/prefer-promises/dns": "error",
|
|
|
|
"node/prefer-promises/fs": "error",
|
|
|
|
|
2022-07-20 05:54:12 +02:00
|
|
|
"unicorn/no-array-callback-reference": "off",
|
2022-02-05 21:57:47 +01:00
|
|
|
"unicorn/no-unsafe-regex": "off",
|
2021-05-23 23:06:57 +02:00
|
|
|
"unicorn/prefer-module": "off",
|
2022-10-05 07:57:42 +02:00
|
|
|
"unicorn/prefer-top-level-await": "off",
|
|
|
|
"unicorn/switch-case-braces": ["error", "avoid"]
|
2021-01-16 05:35:50 +01:00
|
|
|
}
|
|
|
|
}
|