2021-01-16 05:35:50 +01:00
|
|
|
{
|
|
|
|
"parserOptions": {
|
2021-05-23 23:06:57 +02:00
|
|
|
"ecmaVersion": 2019
|
2021-01-16 05:35:50 +01:00
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"node": true,
|
|
|
|
"es6": true
|
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"node",
|
|
|
|
"unicorn"
|
|
|
|
],
|
|
|
|
"extends": [
|
|
|
|
"eslint:all"
|
|
|
|
],
|
|
|
|
"reportUnusedDisableDirectives": true,
|
|
|
|
"rules": {
|
|
|
|
"indent": ["error", 2],
|
|
|
|
"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",
|
|
|
|
|
|
|
|
"unicorn/better-regex": "error",
|
|
|
|
"unicorn/catch-error-name": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/consistent-destructuring": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/consistent-function-scoping": "error",
|
|
|
|
"unicorn/custom-error-definition": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/empty-brace-spaces": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/error-message": "error",
|
|
|
|
"unicorn/escape-case": "error",
|
|
|
|
"unicorn/expiring-todo-comments": "error",
|
|
|
|
"unicorn/explicit-length-check": "error",
|
|
|
|
"unicorn/filename-case": "error",
|
|
|
|
"unicorn/import-index": "error",
|
|
|
|
"unicorn/import-style": "error",
|
|
|
|
"unicorn/new-for-builtins": "error",
|
|
|
|
"unicorn/no-abusive-eslint-disable": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/no-array-callback-reference": "error",
|
|
|
|
"unicorn/no-array-for-each": "error",
|
2021-07-23 06:56:19 +02:00
|
|
|
"unicorn/no-array-method-this-argument": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/no-array-push-push": "error",
|
|
|
|
"unicorn/no-array-reduce": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/no-console-spaces": "error",
|
2021-05-23 23:06:57 +02:00
|
|
|
"unicorn/no-document-cookie": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/no-for-loop": "error",
|
|
|
|
"unicorn/no-hex-escape": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/no-instanceof-array": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/no-keyword-prefix": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/no-lonely-if": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/no-nested-ternary": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/no-new-array": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/no-new-buffer": "error",
|
|
|
|
"unicorn/no-null": "error",
|
|
|
|
"unicorn/no-object-as-default-parameter": "error",
|
|
|
|
"unicorn/no-process-exit": "error",
|
2021-05-23 23:06:57 +02:00
|
|
|
"unicorn/no-static-only-class": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/no-this-assignment": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/no-unreadable-array-destructuring": "error",
|
|
|
|
"unicorn/no-unsafe-regex": "error",
|
|
|
|
"unicorn/no-unused-properties": "error",
|
|
|
|
"unicorn/no-useless-undefined": "error",
|
|
|
|
"unicorn/no-zero-fractions": "error",
|
|
|
|
"unicorn/number-literal-case": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/numeric-separators-style": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/prefer-add-event-listener": "error",
|
|
|
|
"unicorn/prefer-array-find": "error",
|
2021-05-23 23:06:57 +02:00
|
|
|
"unicorn/prefer-array-flat": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/prefer-array-flat-map": "error",
|
|
|
|
"unicorn/prefer-array-index-of": "error",
|
|
|
|
"unicorn/prefer-array-some": "error",
|
2021-07-23 06:56:19 +02:00
|
|
|
"unicorn/prefer-at": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/prefer-date-now": "error",
|
|
|
|
"unicorn/prefer-default-parameters": "error",
|
|
|
|
"unicorn/prefer-dom-node-append": "error",
|
|
|
|
"unicorn/prefer-dom-node-dataset": "error",
|
|
|
|
"unicorn/prefer-dom-node-remove": "error",
|
|
|
|
"unicorn/prefer-dom-node-text-content": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/prefer-includes": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/prefer-keyboard-event-key": "error",
|
|
|
|
"unicorn/prefer-math-trunc": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/prefer-modern-dom-apis": "error",
|
2021-05-23 23:06:57 +02:00
|
|
|
"unicorn/prefer-module": "off",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/prefer-negative-index": "error",
|
2021-05-23 23:06:57 +02:00
|
|
|
"unicorn/prefer-node-protocol": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/prefer-number-properties": "error",
|
2021-07-23 06:56:19 +02:00
|
|
|
"unicorn/prefer-object-has-own": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/prefer-optional-catch-binding": "error",
|
2021-07-23 06:56:19 +02:00
|
|
|
"unicorn/prefer-prototype-methods": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/prefer-query-selector": "error",
|
|
|
|
"unicorn/prefer-reflect-apply": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/prefer-regexp-test": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/prefer-set-has": "error",
|
|
|
|
"unicorn/prefer-spread": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/prefer-string-replace-all": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/prefer-string-slice": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/prefer-string-starts-ends-with": "error",
|
|
|
|
"unicorn/prefer-string-trim-start-end": "error",
|
2021-05-23 23:06:57 +02:00
|
|
|
"unicorn/prefer-switch": "error",
|
2021-02-21 04:17:39 +01:00
|
|
|
"unicorn/prefer-ternary": "error",
|
2021-07-23 06:56:19 +02:00
|
|
|
"unicorn/prefer-top-level-await": "off",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/prefer-type-error": "error",
|
|
|
|
"unicorn/prevent-abbreviations": "error",
|
2021-07-23 06:56:19 +02:00
|
|
|
"unicorn/require-array-join-separator": "error",
|
|
|
|
"unicorn/require-number-to-fixed-digits-argument": "error",
|
|
|
|
"unicorn/require-post-message-target-origin": "error",
|
2021-01-16 05:35:50 +01:00
|
|
|
"unicorn/string-content": "error",
|
|
|
|
"unicorn/throw-new-error": "error"
|
|
|
|
}
|
|
|
|
}
|