/** * Minified by jsDelivr using Terser v5.39.0. * Original file: /npm/@sourcegraph/eslint-config@0.37.1/.eslintrc.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ const prettierrc=require("@sourcegraph/prettierrc");module.exports={extends:["eslint:recommended","plugin:jsdoc/recommended","plugin:react/recommended","plugin:@typescript-eslint/eslint-recommended","plugin:@typescript-eslint/recommended","plugin:@typescript-eslint/recommended-requiring-type-checking","prettier","plugin:import/errors","plugin:import/warnings","plugin:import/typescript","plugin:unicorn/recommended","plugin:jest-dom/recommended","plugin:jsx-a11y/recommended"],globals:{globalThis:!1},plugins:["ban","jsdoc","react","react-hooks","etc","rxjs","jest-dom","jsx-a11y","unused-imports"],settings:{react:{version:"detect"},jsdoc:{mode:"typescript"}},reportUnusedDisableDirectives:!0,rules:{"arrow-body-style":"error","arrow-parens":["error","as-needed"],"ban/ban":["error",{name:["*","forEach"],message:"Use a for-of loop instead"},{name:["describe","only"],message:"Don't forget to remove .only before committing"},{name:["it","only"],message:"Don't forget to remove .only before committing"},{name:["test","only"],message:"Don't forget to remove .only before committing"},{name:["jest","fn"],message:"Use sinon.spy(() => undefined) instead"}],"no-restricted-imports":["error",{paths:[{name:"lodash",importNames:["isArray"],message:"Use Array.isArray instead."}]}],"callback-return":"error",complexity:"off","constructor-super":"error",curly:"error","dot-notation":"error",eqeqeq:"error","eol-last":"error","guard-for-in":"error","linebreak-style":"off","max-classes-per-file":"off","new-parens":"error","newline-per-chained-call":"off","no-bitwise":"off","no-caller":"error","no-cond-assign":"error","no-console":"off","no-constant-condition":["error",{checkLoops:!1}],"no-debugger":"error","no-duplicate-imports":"error","no-empty":"error","no-else-return":["error",{allowElseIf:!1}],"no-eval":"error","no-extra-bind":"error","no-extra-semi":"off","no-fallthrough":"off","no-floating-decimal":"error","no-inner-declarations":"off","no-invalid-this":"off","no-irregular-whitespace":"error","no-lonely-if":"error","no-magic-numbers":"off","no-multiple-empty-lines":["error",{max:1}],"no-new-wrappers":"error","no-redeclare":"off","no-sparse-arrays":"error","no-sync":["error",{allowAtRootLevel:!0}],"no-template-curly-in-string":"error","no-throw-literal":"error","no-undef-init":"error","no-unneeded-ternary":["error",{defaultAssignment:!1}],"no-unsafe-finally":"error","no-unused-expressions":"error","no-unused-labels":"error","no-useless-call":"error","no-useless-concat":"error","no-useless-constructor":"off","no-var":"error","no-void":"error","object-shorthand":"error","one-var":["error","never"],"prefer-arrow-callback":["error",{allowNamedFunctions:!0}],"prefer-const":["error",{destructuring:"all"}],"prefer-object-spread":"error","prefer-promise-reject-errors":"error","prefer-rest-params":"error","prefer-spread":"error","prefer-template":"off",quotes:["error",prettierrc.singleQuote?"single":"double",{avoidEscape:!0}],radix:"error","require-await":"error","spaced-comment":["error","always",{line:{markers:["/"]}}],"sort-imports":"off","use-isnan":"error","valid-typeof":"off",yoda:"error","import/extensions":["error","never"],"import/no-deprecated":"warn","import/no-unused-modules":"error","import/no-cycle":"off","import/no-self-import":"error","import/no-dynamic-require":"error","import/no-useless-path-segments":"error","import/no-duplicates":"error","import/no-default-export":"error","import/order":["error",{"newlines-between":"always",groups:["builtin","external","internal","parent","sibling","index"],alphabetize:{order:"asc",caseInsensitive:!0},pathGroups:[{pattern:"react",group:"external",position:"before"},{pattern:"@sourcegraph/**",group:"external",position:"after"},{pattern:"*.scss",group:"index",patternOptions:{matchBase:!0},position:"after"}],pathGroupsExcludedImportTypes:[]}],"jsdoc/require-returns":"off","jsdoc/require-jsdoc":"off","jsdoc/require-param":"off","jsdoc/no-bad-blocks":"error","jsdoc/check-indentation":"off","jsdoc/check-tag-names":["error",{definedTags:["hidden","internal"]}],"react-hooks/exhaustive-deps":"error","react-hooks/rules-of-hooks":"error","react/button-has-type":"error","react/display-name":"warn","react/forbid-dom-props":["error",{forbid:["style"]}],"react/jsx-boolean-value":["error","always"],"react/jsx-curly-brace-presence":"error","react/jsx-fragments":["error","syntax"],"react/jsx-key":"error","react/jsx-no-bind":"off","react/jsx-no-comment-textnodes":"error","react/jsx-no-target-blank":"error","react/no-access-state-in-setstate":"error","react/no-array-index-key":"warn","react/no-deprecated":"warn","react/no-did-mount-set-state":"error","react/no-did-update-set-state":"error","react/no-direct-mutation-state":"error","react/no-find-dom-node":"error","react/no-is-mounted":"error","react/no-multi-comp":["off",{ignoreStateless:!0}],"react/no-redundant-should-component-update":"error","react/no-string-refs":"error","react/no-this-in-sfc":"error","react/no-typos":"error","react/no-unescaped-entities":["error",{forbid:[">","}"]}],"react/no-unsafe":["error",{checkAliases:!0}],"react/no-unused-state":"error","react/prefer-stateless-function":["error",{ignorePureComponents:!0}],"react/require-render-return":"error","react/self-closing-comp":"error","react/void-dom-elements-no-children":"error","react/prop-types":"off","rxjs/no-ignored-observable":"error","rxjs/no-ignored-subscription":"error","rxjs/no-async-subscribe":"error","rxjs/no-nested-subscribe":"error","rxjs/no-unbound-methods":"error","rxjs/throw-error":"error","rxjs/no-internal":"error","rxjs/no-subclass":"error","rxjs/no-unsafe-catch":"error","rxjs/no-subject-unsubscribe":"error","etc/throw-error":"error","etc/no-deprecated":"warn","@typescript-eslint/no-var-requires":"off","@typescript-eslint/prefer-regexp-exec":"off","@typescript-eslint/no-unsafe-call":"warn","@typescript-eslint/no-unsafe-member-access":"warn","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-assignment":"warn","unicorn/filename-case":["error",{cases:{camelCase:!0,pascalCase:!0,kebabCase:!0}}],"unicorn/no-process-exit":"off","unicorn/no-null":"off","unicorn/no-fn-reference-in-iterator":"off","unicorn/no-reduce":"off","unicorn/no-useless-undefined":"off","unicorn/prefer-number-properties":"off","unicorn/custom-error-definition":"off","unicorn/no-nested-ternary":"off","id-length":"off","unicorn/prevent-abbreviations":"off","unused-imports/no-unused-imports":"error","unused-imports/no-unused-vars":"off","unicorn/no-array-reduce":"off","unicorn/no-array-callback-reference":"off","unicorn/number-literal-case":"off","unicorn/numeric-separators-style":"off","unicorn/prefer-switch":"off","unicorn/prefer-spread":"off","unicorn/template-indent":"off","unicorn/prefer-export-from":"off","unicorn/explicit-length-check":"off","unicorn/prefer-date-now":"off","unicorn/no-await-expression-member":"off","unicorn/prefer-dom-node-text-content":"off","unicorn/consistent-destructuring":"off","unicorn/no-new-array":"off","unicorn/prefer-ternary":"off","unicorn/prefer-dom-node-dataset":"off","unicorn/no-useless-spread":"off","unicorn/no-lonely-if":"off","unicorn/prefer-array-some":"off","unicorn/prefer-native-coercion-functions":"off","unicorn/relative-url-style":"off","unicorn/prefer-array-flat-map":"off","unicorn/prefer-node-protocol":"off","unicorn/prefer-module":"off","unicorn/no-useless-promise-resolve-reject":"off","unicorn/no-array-method-this-argument":"off","unicorn/no-array-for-each":"off","no-unsafe-optional-chaining":"off","unicorn/import-style":"off","unicorn/no-array-push-push":"off","unicorn/no-useless-switch-case":"off","unicorn/prefer-regexp-test":"off","unicorn/no-object-as-default-parameter":"off","unicorn/prefer-code-point":"off","unicorn/prefer-object-from-entries":"off","unicorn/prefer-math-trunc":"off","unicorn/text-encoding-identifier-case":"off","unicorn/no-unreadable-iife":"off","unicorn/error-message":"off","unicorn/no-thenable":"off","unicorn/prefer-array-index-of":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-unnecessary-type-constraint":"off","unicorn/consistent-function-scoping":"off","rxjs/no-nested-subscribe":"off"},overrides:[{files:["*.ts","*.tsx"],parser:"@typescript-eslint/parser",plugins:["@typescript-eslint"],rules:{"@typescript-eslint/adjacent-overload-signatures":"error","@typescript-eslint/array-type":"error","@typescript-eslint/await-thenable":"error","@typescript-eslint/ban-types":["error",{extendDefaults:!0,types:{object:!1,"{}":!1}}],"@typescript-eslint/naming-convention":["off",{selector:"default",format:null},{selector:"typeLike",format:["PascalCase"],leadingUnderscore:"allow",trailingUnderscore:"allow"}],"@typescript-eslint/explicit-function-return-type":["error",{allowExpressions:!0,allowTypedFunctionExpressions:!0,allowHigherOrderFunctions:!0}],"@typescript-eslint/explicit-member-accessibility":["error",{overrides:{constructors:"no-public"}}],"@typescript-eslint/indent":"off","@typescript-eslint/interface-name-prefix":"off","@typescript-eslint/member-delimiter-style":"off","@typescript-eslint/member-ordering":"off","@typescript-eslint/no-empty-interface":"off","@typescript-eslint/no-empty-function":["error",{allow:["arrowFunctions"]}],"@typescript-eslint/no-explicit-any":"warn","@typescript-eslint/no-extraneous-class":"error","@typescript-eslint/no-for-in-array":"error","@typescript-eslint/no-floating-promises":"error","@typescript-eslint/no-inferrable-types":["error",{ignoreParameters:!0}],"@typescript-eslint/no-misused-new":"error","@typescript-eslint/no-misused-promises":"warn","@typescript-eslint/no-non-null-assertion":"warn","@typescript-eslint/no-unnecessary-condition":"off","@typescript-eslint/consistent-type-assertions":["warn",{assertionStyle:"as",objectLiteralTypeAssertions:"never"}],"@typescript-eslint/consistent-type-definitions":["error","interface"],"@typescript-eslint/no-base-to-string":"error","@typescript-eslint/no-parameter-properties":"off","@typescript-eslint/no-require-imports":"error","@typescript-eslint/no-unnecessary-qualifier":"error","@typescript-eslint/no-unnecessary-type-assertion":"warn","@typescript-eslint/no-unsafe-call":"warn","@typescript-eslint/no-unsafe-member-access":"warn","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-assignment":"warn","@typescript-eslint/no-unused-vars":["warn",{varsIgnorePattern:".*",args:"after-used",ignoreRestSiblings:!0}],"@typescript-eslint/no-use-before-define":"off","@typescript-eslint/no-useless-constructor":"error","@typescript-eslint/no-var-requires":"error","@typescript-eslint/prefer-as-const":"error","@typescript-eslint/prefer-for-of":"error","unicorn/no-for-loop":"off","@typescript-eslint/prefer-string-starts-ends-with":"error","unicorn/prefer-starts-ends-with":"off","@typescript-eslint/prefer-function-type":"error","@typescript-eslint/prefer-includes":"error","unicorn/prefer-includes":"off","@typescript-eslint/prefer-namespace-keyword":"error","@typescript-eslint/prefer-optional-chain":"error","@typescript-eslint/prefer-nullish-coalescing":"off","@typescript-eslint/type-annotation-spacing":"off","@typescript-eslint/triple-slash-reference":"error","@typescript-eslint/restrict-template-expressions":"off","@typescript-eslint/return-await":"error","@typescript-eslint/unbound-method":"error","@typescript-eslint/unified-signatures":"error","jsdoc/no-types":"error","jsdoc/no-undefined-types":"off","jsdoc/require-param-type":"off","jsdoc/require-returns-type":"off","jsdoc/valid-types":"off","import/no-unresolved":"off","import/default":"off","import/named":"off","import/namespace":"off","import/no-deprecated":"off","react/no-direct-mutation-state":"off","react/jsx-no-undef":"off","jsx-a11y/no-onchange":"off","jsx-a11y/no-autofocus":"off","jsx-a11y/accessible-emoji":"off","no-undef":"off","no-dupe-class-members":"off","require-await":"off"}},{files:"*.d.ts",rules:{"no-var":"off","@typescript-eslint/explicit-member-accessibility":"off","id-length":"off","import/no-default-export":"off"}},{files:"*.@(test|story).ts?(x)",rules:{"react/jsx-no-bind":"off","@typescript-eslint/explicit-function-return-type":"off","react/button-has-type":"off","rxjs/no-ignored-subscription":"warn","unicorn/consistent-function-scoping":"off"}},{files:"*.test.tsx",rules:{"@typescript-eslint/no-floating-promises":"off","unicorn/prefer-flat-map":"off"}}]}; //# sourceMappingURL=/sm/7e41a4e2d3ee8304b96f836ed97e4e1b018829f7e8ccaa11824c5738d7111a0e.map