UNPKG

eslint-config-shiny

Version:

An eslint config that makes your code so clean and polished that it shines!

2 lines (1 loc) 4.76 kB
import t from"@eslint/js";import s from"@eslint-community/eslint-plugin-eslint-comments";import e from"@typescript-eslint/eslint-plugin";import i from"eslint-plugin-array-func";import a from"eslint-plugin-autofix";import r from"eslint-plugin-es-x";import n from"eslint-plugin-import";import c from"eslint-plugin-no-secrets";import l from"eslint-plugin-promise";import p from"eslint-plugin-regexp";import u from"eslint-plugin-unicorn";var m={apply:{"@eslint-community/eslint-comments":s,"array-func":i,promise:l,regexp:p,unicorn:u},extends:["empty"],name:"base",plugins:{autofix:a,"es-x":r,import:n,"no-secrets":c,ts:e},rules:[r.configs["flat/no-new-in-esnext"],t.configs.recommended,e.configs["strict-type-checked"],e.configs["stylistic-type-checked"],n.flatConfigs.recommended,{"accessor-pairs":0,"array-func/prefer-array-from":0,"arrow-body-style":2,"autofix/no-proto":2,"autofix/no-prototype-builtins":2,"autofix/no-useless-concat":1,eqeqeq:2,"guard-for-in":2,"import/no-unresolved":0,"import/order":0,"logical-assignment-operators":1,"no-alert":1,"no-case-declarations":0,"no-console":1,"no-constructor-return":2,"no-control-regex":0,"no-div-regex":1,"no-dupe-class-members":0,"no-duplicate-imports":[1,{includeExports:!0}],"no-else-return":1,"no-eq-null":2,"no-eval":2,"no-extend-native":2,"no-extra-bind":1,"no-extra-label":1,"no-fallthrough":0,"no-floating-decimal":1,"no-implicit-globals":1,"no-implied-eval":2,"no-iterator":2,"no-label-var":2,"no-lone-blocks":1,"no-lonely-if":1,"no-loss-of-precision":1,"no-new-wrappers":2,"no-object-constructor":2,"no-param-reassign":0,"no-promise-executor-return":2,"no-return-assign":2,"no-script-url":2,"no-secrets/no-secrets":[2,{tolerance:4.2}],"no-sequences":2,"no-template-curly-in-string":1,"no-undef":0,"no-undef-init":1,"no-underscore-dangle":1,"no-unmodified-loop-condition":2,"no-unneeded-ternary":1,"no-useless-call":1,"no-useless-computed-key":1,"no-useless-concat":1,"no-useless-rename":1,"no-useless-return":1,"no-var":1,"no-void":2,"no-warning-comments":1,"object-shorthand":2,"operator-assignment":2,"prefer-arrow-callback":2,"prefer-const":2,"prefer-exponentiation-operator":1,"prefer-numeric-literals":1,"prefer-object-has-own":2,"prefer-promise-reject-errors":1,"prefer-regex-literals":1,"prefer-spread":1,"prefer-template":1,"promise/always-return":0,"promise/no-multiple-resolved":1,"promise/param-names":0,"promise/prefer-await-to-then":1,"promise/spec-only":2,"regexp/strict":2,"ts/class-methods-use-this":2,"ts/consistent-type-exports":2,"ts/default-param-last":2,"ts/dot-notation":2,"ts/explicit-function-return-type":2,"ts/method-signature-style":2,"ts/naming-convention":[2,{format:["camelCase","PascalCase","UPPER_CASE"],leadingUnderscore:"allow",selector:"variableLike",trailingUnderscore:"allow"}],"ts/no-array-constructor":2,"ts/no-dynamic-delete":0,"ts/no-import-type-side-effects":2,"ts/no-loop-func":2,"ts/no-misused-promises":[2,{checksVoidReturn:!1}],"ts/no-shadow":2,"ts/no-this-alias":0,"ts/no-unnecessary-condition":[2,{allowConstantLoopConditions:!0}],"ts/no-unnecessary-parameter-property-assignment":1,"ts/no-unnecessary-qualifier":1,"ts/no-unused-vars":[2,{args:"all",argsIgnorePattern:"^_",caughtErrors:"all",caughtErrorsIgnorePattern:"^_",destructuredArrayIgnorePattern:"^_",ignoreRestSiblings:!0,varsIgnorePattern:"^_"}],"ts/no-useless-constructor":2,"ts/no-useless-empty-export":2,"ts/prefer-readonly":1,"ts/prefer-string-starts-ends-with":0,"ts/promise-function-async":2,"ts/require-array-sort-compare":1,"ts/require-await":2,"ts/switch-exhaustiveness-check":2,"ts/unbound-method":0,"unicorn/catch-error-name":0,"unicorn/custom-error-definition":2,"unicorn/expiring-todo-comments":0,"unicorn/explicit-length-check":0,"unicorn/filename-case":0,"unicorn/import-style":0,"unicorn/no-array-callback-reference":0,"unicorn/no-await-expression-member":0,"unicorn/no-for-loop":0,"unicorn/no-new-array":0,"unicorn/no-object-as-default-parameter":0,"unicorn/no-static-only-class":0,"unicorn/no-this-assignment":0,"unicorn/no-useless-undefined":0,"unicorn/number-literal-case":0,"unicorn/numeric-separators-style":0,"unicorn/prefer-event-target":0,"unicorn/prefer-math-min-max":0,"unicorn/prefer-math-trunc":0,"unicorn/prefer-modern-math-apis":0,"unicorn/prefer-number-properties":0,"unicorn/prefer-query-selector":0,"unicorn/prefer-spread":0,"unicorn/prefer-string-raw":0,"unicorn/prefer-string-slice":0,"unicorn/prevent-abbreviations":0,"unicorn/switch-case-braces":0,"unicorn/text-encoding-identifier-case":0,yoda:2}]},o=e.configs["disable-type-checked"],f=[m,{extends:[o],files:["**/*.js"],languageOptions:{sourceType:"script"},name:"base-script"},{extends:[o],files:["**/*.cjs"],languageOptions:{sourceType:"commonjs"},name:"base-cjs"}],j=f;export{m as config,j as default};