@paratco/eslint-config 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -25
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"globals";import t from"eslint-plugin-react";import n from"@eslint/js";import{configs as r}from"typescript-eslint";import i from"eslint-plugin-unicorn";import{configs as a}from"eslint-plugin-react-hooks";import o from"eslint-plugin-react-refresh";import{flatConfigs as s}from"eslint-plugin-import-x";import{createTypeScriptImportResolver as c}from"eslint-import-resolver-typescript";import l from"eslint-plugin-unused-imports";import u from"eslint-config-prettier";import d from"@stylistic/eslint-plugin";var f={eqeqeq:[`warn`],curly:[`warn`,`all`],"no-restricted-imports":[`error`,{patterns:[{regex:`^(node:)?process$`,message:`Please dont import node:process.`}]}],"no-unused-vars":[`error`,{args:`all`,argsIgnorePattern:`^_`,caughtErrors:`all`,caughtErrorsIgnorePattern:`^_`,destructuredArrayIgnorePattern:`^_`,ignoreRestSiblings:!0}],"no-fallthrough":[`error`,{allowEmptyCase:!0}]},p={"class-methods-use-this":`off`,"@typescript-eslint/class-methods-use-this":[`error`,{ignoreOverrideMethods:!0,ignoreClassesThatImplementAnInterface:!0}],"consistent-return":`off`,"@typescript-eslint/consistent-return":`off`,"@typescript-eslint/consistent-type-exports":[`error`,{fixMixedExportsWithInlineTypeSpecifier:!0}],"@typescript-eslint/consistent-type-imports":[`error`],"default-param-last":`off`,"@typescript-eslint/default-param-last":[`error`],"@typescript-eslint/explicit-function-return-type":[`error`,{allowExpressions:!0}],"@typescript-eslint/explicit-member-accessibility":[`error`,{accessibility:`no-public`,overrides:{constructors:`off`}}],"@typescript-eslint/explicit-module-boundary-types":[`error`],"init-declarations":`off`,"@typescript-eslint/init-declarations":[`off`],"max-params":`off`,"@typescript-eslint/max-params":[`off`],"@typescript-eslint/member-ordering":[`error`,{default:[`constructor`,`field`,`static-method`,`method`,`signature`]}],"@typescript-eslint/method-signature-style":[`error`],"@typescript-eslint/naming-convention":[`error`,{selector:`function`,format:[`PascalCase`,`camelCase`]}],"no-dupe-class-members":`off`,"@typescript-eslint/no-dupe-class-members":[`off`],"@typescript-eslint/no-import-type-side-effects":[`error`],"no-invalid-this":`off`,"@typescript-eslint/no-invalid-this":[`error`],"no-loop-func":`off`,"@typescript-eslint/no-loop-func":[`error`],"no-magic-numbers":`off`,"@typescript-eslint/no-magic-numbers":[`off`],"no-redeclare":`off`,"@typescript-eslint/no-redeclare":[`off`],"no-restricted-imports":`off`,"@typescript-eslint/no-restricted-imports":[`error`,{patterns:[{regex:`^(node:)?process$`,message:`Please dont import node:process.`}]}],"no-shadow":`off`,"@typescript-eslint/no-shadow":[`error`],"@typescript-eslint/no-unnecessary-parameter-property-assignment":[`off`],"@typescript-eslint/no-unnecessary-qualifier":[`warn`],"@typescript-eslint/no-unnecessary-type-conversion":[`warn`],"@typescript-eslint/no-unsafe-type-assertion":[`off`],"no-use-before-define":`off`,"@typescript-eslint/no-use-before-define":[`error`],"@typescript-eslint/no-useless-empty-export":[`warn`],"@typescript-eslint/parameter-properties":[`error`],"prefer-destructuring":`off`,"@typescript-eslint/prefer-destructuring":[`off`],"@typescript-eslint/prefer-enum-initializers":[`off`],"@typescript-eslint/prefer-readonly":[`warn`],"@typescript-eslint/prefer-readonly-parameter-types":[`off`],"@typescript-eslint/promise-function-async":[`error`],"@typescript-eslint/require-array-sort-compare":[`error`],"@typescript-eslint/strict-boolean-expressions":[`error`,{allowString:!1,allowNumber:!1,allowNullableObject:!1}],"@typescript-eslint/switch-exhaustiveness-check":[`error`],"@typescript-eslint/restrict-template-expressions":[`error`,{allowBoolean:!0,allowNumber:!0,allowRegExp:!0}],"@typescript-eslint/no-unnecessary-type-parameters":[`off`],"no-unused-vars":[`off`],"@typescript-eslint/no-unused-vars":[`error`,{args:`all`,argsIgnorePattern:`^_`,caughtErrors:`all`,caughtErrorsIgnorePattern:`^_`,destructuredArrayIgnorePattern:`^_`,ignoreRestSiblings:!0}],"@typescript-eslint/prefer-optional-chain":[`off`]},m={"unicorn/catch-error-name":[`error`,{ignore:[String.raw`^error[\da-zA-Z_]*$`]}],"unicorn/filename-case":[`off`],"unicorn/prevent-abbreviations":[`off`],"unicorn/no-null":[`off`],"unicorn/no-negated-condition":[`off`],"unicorn/switch-case-braces":[`off`],"unicorn/prefer-spread":[`off`],"unicorn/prefer-at":[`off`],"unicorn/prefer-ternary":[`warn`,`only-single-line`],"unicorn/no-typeof-undefined":[`off`],"unicorn/no-static-only-class":[`off`]},h=[n.configs.recommended,...r.strictTypeChecked,...r.stylisticTypeChecked,i.configs.recommended,{files:[`**/*.{js,mjs,cjs,ts,jsx,tsx}`],rules:f},{files:[`**/*.{ts,tsx}`],rules:p},{files:[`**/*.{js,mjs,cjs,ts,jsx,tsx}`],rules:m}],g={"react/boolean-prop-naming":[`error`],"react/button-has-type":[`error`],"react/checked-requires-onchange-or-readonly":[`off`],"react/default-props-match-prop-types":[`error`],"react/destructuring-assignment":[`warn`],"react/display-name":[`error`],"react/forbid-component-props":[`off`],"react/forbid-dom-props":[`off`],"react/forbid-elements":[`off`],"react/forbid-foreign-prop-types":[`error`],"react/forbid-prop-types":[`error`],"react/forward-ref-uses-ref":[`off`],"react/function-component-definition":[`warn`],"react/hook-use-state":[`error`],"react/iframe-missing-sandbox":[`error`],"react/jsx-boolean-value":[`warn`,`always`],"react/jsx-child-element-spacing":[`error`],"react/jsx-closing-bracket-location":[`off`],"react/jsx-closing-tag-location":[`off`],"react/jsx-curly-brace-presence":[`off`],"react/jsx-curly-newline":[`off`],"react/jsx-curly-spacing":[`off`],"react/jsx-equals-spacing":[`off`],"react/jsx-filename-extension":[`error`,{allow:`always`,extensions:[`.tsx`]}],"react/jsx-first-prop-new-line":[`off`],"react/jsx-fragments":[`warn`,`element`],"react/jsx-handler-names":[`error`],"react/jsx-indent":[`off`],"react/jsx-indent-props":[`off`],"react/jsx-key":[`error`],"react/jsx-max-depth":[`off`],"react/jsx-max-props-per-line":[`off`],"react/jsx-newline":[`off`],"react/jsx-no-bind":[`error`,{allowArrowFunctions:!0}],"react/jsx-no-comment-textnodes":[`error`],"react/jsx-no-constructed-context-values":[`error`],"react/jsx-no-duplicate-props":[`error`],"react/jsx-no-leaked-render":[`warn`],"react/jsx-no-literals":[`off`],"react/jsx-no-script-url":[`error`],"react/jsx-no-target-blank":[`warn`],"react/jsx-no-undef":[`error`],"react/jsx-no-useless-fragment":[`warn`],"react/jsx-one-expression-per-line":[`off`],"react/jsx-pascal-case":[`off`],"react/jsx-props-no-multi-spaces":[`off`],"react/jsx-props-no-spread-multi":[`off`],"react/jsx-props-no-spreading":[`off`],"react/jsx-sort-props":[`off`],"react/jsx-tag-spacing":[`off`],"react/jsx-uses-react":[`error`],"react/jsx-uses-vars":[`error`],"react/jsx-wrap-multilines":[`off`],"react/no-access-state-in-setstate":[`error`],"react/no-adjacent-inline-elements":[`error`],"react/no-array-index-key":[`error`],"react/no-arrow-function-lifecycle":[`warn`],"react/no-children-prop":[`error`],"react/no-danger":[`error`],"react/no-danger-with-children":[`error`],"react/no-deprecated":[`error`],"react/no-did-mount-set-state":[`error`,`disallow-in-func`],"react/no-did-update-set-state":[`error`,`disallow-in-func`],"react/no-direct-mutation-state":[`error`],"react/no-find-dom-node":[`error`],"react/no-invalid-html-attribute":[`error`],"react/no-is-mounted":[`error`],"react/no-multi-comp":[`off`],"react/no-namespace":[`error`],"react/no-object-type-as-default-prop":[`error`],"react/no-redundant-should-component-update":[`error`],"react/no-render-return-value":[`error`],"react/no-set-state":[`error`],"react/no-string-refs":[`error`,{noTemplateLiterals:!0}],"react/no-this-in-sfc":[`error`],"react/no-typos":[`error`],"react/no-unescaped-entities":[`error`],"react/no-unknown-property":[`warn`],"react/no-unsafe":[`off`],"react/no-unstable-nested-components":[`error`],"react/no-unused-class-component-methods":[`error`],"react/no-unused-prop-types":[`error`],"react/no-unused-state":[`error`],"react/no-will-update-set-state":[`error`,`disallow-in-func`],"react/prefer-es6-class":[`error`],"react/prefer-exact-props":[`error`],"react/prefer-read-only-props":[`warn`],"react/prefer-stateless-function":[`error`],"react/prop-types":[`error`],"react/react-in-jsx-scope":[`off`],"react/require-default-props":[`off`],"react/require-optimization":[`error`],"react/require-render-return":[`error`],"react/self-closing-comp":[`warn`],"react/sort-comp":[`error`],"react/sort-default-props":[`off`],"react/sort-prop-types":[`off`],"react/state-in-constructor":[`error`],"react/static-property-placement":[`error`],"react/style-prop-object":[`error`],"react/void-dom-elements-no-children":[`error`]},_=[...h,a.flat[`recommended-latest`],o.configs.recommended,{files:[`**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}`],...t.configs.flat.recommended,settings:{react:{version:`detect`}},rules:{...g}}],v={"import-x/no-deprecated":[`error`],"import-x/no-empty-named-blocks":[`warn`],"import-x/no-extraneous-dependencies":[`error`,{devDependencies:!1,optionalDependencies:!1}],"import-x/no-mutable-exports":[`error`],"import-x/no-rename-default":[`off`],"import-x/no-unused-modules":[`off`,{missingExports:!0}],"import-x/no-amd":[`error`],"import-x/no-commonjs":[`error`],"import-x/no-import-module-exports":[`warn`],"import-x/no-nodejs-modules":[`off`],"import-x/unambiguous":[`error`],"import-x/no-absolute-path":[`warn`],"import-x/no-cycle":[`error`],"import-x/no-dynamic-require":[`off`],"import-x/no-internal-modules":[`off`],"import-x/no-relative-packages":[`warn`],"import-x/no-relative-parent-imports":[`off`],"import-x/no-self-import":[`error`],"import-x/no-useless-path-segments":[`warn`,{noUselessIndex:!0}],"import-x/no-webpack-loader-syntax":[`error`],"import-x/consistent-type-specifier-style":[`warn`,`prefer-top-level`],"import-x/dynamic-import-chunkname":[`off`],"import-x/exports-last":[`off`],"import-x/extensions":[`error`,`never`],"import-x/first":[`warn`],"import-x/group-exports":[`off`],"import-x/max-dependencies":[`off`],"import-x/newline-after-import":[`warn`],"import-x/no-anonymous-default-export":[`error`,{allowArray:!1,allowArrowFunction:!0,allowAnonymousClass:!1,allowAnonymousFunction:!1,allowCallExpression:!0,allowNew:!1,allowLiteral:!1,allowObject:!1}],"import-x/no-default-export":[`off`],"import-x/no-named-default":[`off`],"import-x/no-named-export":[`off`],"import-x/no-namespace":[`warn`],"import-x/no-unassigned-import":[`error`,{allow:[`**/*.css`]}],"import-x/order":[`warn`],"import-x/prefer-default-export":[`off`]};function y(e){let t={alwaysTryTypes:!0,bun:!0};return e!==void 0&&(t.project=e.project),[s.recommended,s.typescript,{files:[`**/*.{js,mjs,cjs,ts,jsx,tsx}`],plugins:{"unused-imports":l},settings:{"import-x/resolver-next":[c(t)]},rules:{...v,"unused-imports/no-unused-imports":[`error`]}}]}var b=[u],x=[d.configs.customize({jsx:!0,arrowParens:!0,blockSpacing:!0,braceStyle:`stroustrup`,commaDangle:`never`,indent:2,semi:!0,quotes:`double`,quoteProps:`always`}),{files:[`**/*.{js,mjs,cjs,ts,jsx,tsx}`],languageOptions:{parserOptions:{ecmaFeatures:{jsx:!0}}},rules:{"@stylistic/array-bracket-newline":[`warn`],"@stylistic/array-bracket-spacing":[`warn`],"@stylistic/array-element-newline":[`warn`,`consistent`],"@stylistic/arrow-parens":[`warn`,`always`],"@stylistic/arrow-spacing":[`warn`],"@stylistic/block-spacing":[`warn`],"@stylistic/brace-style":[`warn`,`1tbs`],"@stylistic/comma-dangle":[`warn`],"@stylistic/comma-spacing":[`warn`],"@stylistic/comma-style":[`warn`],"@stylistic/computed-property-spacing":[`warn`],"@stylistic/curly-newline":[`warn`,`always`],"@stylistic/dot-location":[`warn`,`property`],"@stylistic/eol-last":[`warn`],"@stylistic/function-call-spacing":[`warn`],"@stylistic/function-call-argument-newline":[`warn`,`consistent`],"@stylistic/function-paren-newline":[`warn`,`consistent`],"@stylistic/generator-star-spacing":[`warn`],"@stylistic/implicit-arrow-linebreak":[`warn`],"@stylistic/indent":[`warn`,2],"@stylistic/indent-binary-ops":[`warn`,2],"@stylistic/jsx-child-element-spacing":[`error`],"@stylistic/jsx-closing-bracket-location":[`warn`],"@stylistic/jsx-closing-tag-location":[`warn`],"@stylistic/jsx-curly-brace-presence":[`warn`],"@stylistic/jsx-curly-newline":[`warn`],"@stylistic/jsx-curly-spacing":[`warn`],"@stylistic/jsx-equals-spacing":[`warn`],"@stylistic/jsx-first-prop-new-line":[`warn`],"@stylistic/jsx-function-call-newline":[`warn`],"@stylistic/jsx-indent-props":[`warn`,2],"@stylistic/jsx/jsx-max-props-per-line":[`off`],"@stylistic/jsx-newline":[`off`],"@stylistic/jsx-one-expression-per-line":[`warn`,{allow:`single-child`}],"@stylistic/jsx-pascal-case":[`error`],"@stylistic/jsx-quotes":[`warn`],"@stylistic/jsx-self-closing-comp":[`warn`],"@stylistic/jsx-sort-props":[`warn`,{callbacksLast:!0,shorthandFirst:!0,multiline:`last`,noSortAlphabetically:!0}],"@stylistic/jsx-tag-spacing":[`warn`,{closingSlash:`never`,beforeSelfClosing:`always`,afterOpening:`never`,beforeClosing:`never`}],"@stylistic/jsx-wrap-multilines":[`warn`,{declaration:`parens-new-line`,assignment:`parens-new-line`,return:`parens-new-line`,arrow:`parens-new-line`,condition:`parens-new-line`,logical:`parens-new-line`,prop:`parens-new-line`}],"@stylistic/key-spacing":`warn`,"@stylistic/keyword-spacing":`warn`,"@stylistic/line-comment-position":`warn`,"@stylistic/linebreak-style":`warn`,"@stylistic/lines-around-comment":[`warn`,{beforeBlockComment:!0,afterBlockComment:!1,beforeLineComment:!0,afterLineComment:!1,allowBlockStart:!0,allowBlockEnd:!0,allowObjectStart:!0,allowObjectEnd:!0,allowArrayStart:!0,allowArrayEnd:!0,allowClassStart:!0,allowClassEnd:!0,afterHashbangComment:!0}],"@stylistic/lines-between-class-members":[`warn`,{enforce:[{blankLine:`never`,prev:`field`,next:`field`},{blankLine:`always`,prev:`*`,next:`method`},{blankLine:`always`,prev:`method`,next:`*`}]}],"@stylistic/max-len":[`error`,{code:120,tabWidth:2,comments:120,ignoreComments:!0,ignoreTrailingComments:!0,ignoreUrls:!0,ignoreStrings:!0,ignoreTemplateLiterals:!0,ignoreRegExpLiterals:!0}],"@stylistic/max-statements-per-line":[`error`],"@stylistic/member-delimiter-style":[`warn`],"@stylistic/multiline-comment-style":[`off`],"@stylistic/multiline-ternary":[`warn`,`always-multiline`],"@stylistic/new-parens":[`warn`],"@stylistic/newline-per-chained-call":[`warn`],"@stylistic/no-confusing-arrow":[`warn`],"@stylistic/no-extra-parens":[`warn`],"@stylistic/no-extra-semi":[`warn`],"@stylistic/no-floating-decimal":[`warn`],"@stylistic/no-mixed-operators":[`error`],"@stylistic/no-mixed-spaces-and-tabs":[`error`],"@stylistic/no-multi-spaces":[`warn`],"@stylistic/no-multiple-empty-lines":[`warn`],"@stylistic/no-tabs":[`error`],"@stylistic/no-trailing-spaces":[`warn`],"@stylistic/no-whitespace-before-property":[`warn`],"@stylistic/nonblock-statement-body-position":[`warn`],"@stylistic/object-curly-newline":[`warn`,{consistent:!0}],"@stylistic/object-curly-spacing":[`warn`],"@stylistic/object-property-newline":[`warn`,{allowAllPropertiesOnSameLine:!0}],"@stylistic/one-var-declaration-per-line":[`warn`],"@stylistic/operator-linebreak":[`warn`],"@stylistic/padded-blocks":[`warn`,`never`],"@stylistic/padding-line-between-statements":[`warn`,{blankLine:`always`,prev:`*`,next:`return`},{blankLine:`always`,prev:`*`,next:`block-like`},{blankLine:`always`,prev:`block-like`,next:`*`},{blankLine:`always`,prev:`case`,next:`case`},{blankLine:`never`,prev:`*`,next:`break`},{blankLine:`always`,prev:`*`,next:`export`},{blankLine:`always`,prev:`*`,next:`interface`},{blankLine:`always`,prev:`interface`,next:`*`},{blankLine:`always`,prev:`*`,next:`class`},{blankLine:`always`,prev:`class`,next:`*`}],"@stylistic/quote-props":[`warn`,`as-needed`],"@stylistic/quotes":[`warn`],"@stylistic/rest-spread-spacing":[`warn`],"@stylistic/semi":[`warn`],"@stylistic/semi-spacing":[`warn`],"@stylistic/semi-style":[`warn`],"@stylistic/space-before-blocks":[`warn`],"@stylistic/space-before-function-paren":[`warn`,{anonymous:`always`,named:`never`,asyncArrow:`always`}],"@stylistic/space-in-parens":[`warn`],"@stylistic/space-infix-ops":[`warn`],"@stylistic/space-unary-ops":[`warn`],"@stylistic/spaced-comment":[`warn`],"@stylistic/switch-colon-spacing":[`warn`],"@stylistic/template-curly-spacing":[`warn`],"@stylistic/template-tag-spacing":[`warn`],"@stylistic/type-annotation-spacing":[`warn`],"@stylistic/type-generic-spacing":[`warn`],"@stylistic/type-named-tuple-spacing":[`warn`],"@stylistic/wrap-iife":[`warn`,`inside`],"@stylistic/wrap-regex":[`warn`],"@stylistic/yield-star-spacing":[`warn`,`after`]}}];function S(t){return{globals:e.node,parserOptions:{ecmaVersion:`latest`,tsconfigRootDir:t?.tsconfigRootDir,project:t?.project}}}function C(n){return{...t.configs.flat.recommended.languageOptions,globals:{...e.serviceworker,...e.browser},parserOptions:{tsconfigRootDir:n?.tsconfigRootDir,project:n?.project}}}function w(e){let t;return e.platform===`node`?(t=h,t.push({files:[`**/*.{ts,js}`],languageOptions:S(e.typescript)})):(t=_,t.push({files:[`**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}`],languageOptions:C(e.typescript)})),e.useImport===!0&&t.push(...y(e.typescript)),t.push(...e.style===`stylistic`?x:b),e.overrides!==void 0&&t.push(...e.overrides),e.ignores!==void 0&&t.push({ignores:e.ignores}),t}export{w as createConfig};
|
|
1
|
+
import e from"globals";import t from"eslint-plugin-react";import n from"@eslint/js";import{configs as r}from"typescript-eslint";import i from"eslint-plugin-unicorn";import{configs as a}from"eslint-plugin-react-hooks";import o from"eslint-plugin-react-refresh";import{flatConfigs as s}from"eslint-plugin-import-x";import{createTypeScriptImportResolver as c}from"eslint-import-resolver-typescript";import l from"eslint-plugin-unused-imports";import u from"eslint-config-prettier";import d from"@stylistic/eslint-plugin";var f={eqeqeq:[`warn`],curly:[`warn`,`all`],"no-restricted-imports":[`error`,{patterns:[{regex:`^(node:)?process$`,message:`Please dont import node:process.`}]}],"no-unused-vars":[`error`,{args:`all`,argsIgnorePattern:`^_`,caughtErrors:`all`,caughtErrorsIgnorePattern:`^_`,destructuredArrayIgnorePattern:`^_`,ignoreRestSiblings:!0}],"no-fallthrough":[`error`,{allowEmptyCase:!0}]},p={"class-methods-use-this":`off`,"@typescript-eslint/class-methods-use-this":[`error`,{ignoreOverrideMethods:!0,ignoreClassesThatImplementAnInterface:!0}],"consistent-return":`off`,"@typescript-eslint/consistent-return":`off`,"@typescript-eslint/consistent-type-exports":[`error`,{fixMixedExportsWithInlineTypeSpecifier:!0}],"@typescript-eslint/consistent-type-imports":[`error`],"default-param-last":`off`,"@typescript-eslint/default-param-last":[`error`],"@typescript-eslint/explicit-function-return-type":[`error`,{allowExpressions:!0}],"@typescript-eslint/explicit-member-accessibility":[`error`,{accessibility:`no-public`,overrides:{constructors:`off`}}],"@typescript-eslint/explicit-module-boundary-types":[`error`],"init-declarations":`off`,"@typescript-eslint/init-declarations":[`off`],"max-params":`off`,"@typescript-eslint/max-params":[`off`],"@typescript-eslint/member-ordering":[`error`,{default:[`constructor`,`field`,`static-method`,`method`,`signature`]}],"@typescript-eslint/method-signature-style":[`error`],"@typescript-eslint/naming-convention":[`error`,{selector:`function`,format:[`PascalCase`,`camelCase`]}],"no-dupe-class-members":`off`,"@typescript-eslint/no-dupe-class-members":[`off`],"@typescript-eslint/no-import-type-side-effects":[`error`],"no-invalid-this":`off`,"@typescript-eslint/no-invalid-this":[`error`],"no-loop-func":`off`,"@typescript-eslint/no-loop-func":[`error`],"no-magic-numbers":`off`,"@typescript-eslint/no-magic-numbers":[`off`],"no-redeclare":`off`,"@typescript-eslint/no-redeclare":[`off`],"no-restricted-imports":`off`,"@typescript-eslint/no-restricted-imports":[`error`,{patterns:[{regex:`^(node:)?process$`,message:`Please dont import node:process.`}]}],"no-shadow":`off`,"@typescript-eslint/no-shadow":[`error`],"@typescript-eslint/no-unnecessary-parameter-property-assignment":[`off`],"@typescript-eslint/no-unnecessary-qualifier":[`warn`],"@typescript-eslint/no-unnecessary-type-conversion":[`warn`],"@typescript-eslint/no-unsafe-type-assertion":[`off`],"no-use-before-define":`off`,"@typescript-eslint/no-use-before-define":[`error`],"@typescript-eslint/no-useless-empty-export":[`warn`],"@typescript-eslint/parameter-properties":[`error`],"prefer-destructuring":`off`,"@typescript-eslint/prefer-destructuring":[`off`],"@typescript-eslint/prefer-enum-initializers":[`off`],"@typescript-eslint/prefer-readonly":[`warn`],"@typescript-eslint/prefer-readonly-parameter-types":[`off`],"@typescript-eslint/promise-function-async":[`error`],"@typescript-eslint/require-array-sort-compare":[`error`],"@typescript-eslint/strict-boolean-expressions":[`error`,{allowString:!1,allowNumber:!1,allowNullableObject:!1}],"@typescript-eslint/switch-exhaustiveness-check":[`error`],"@typescript-eslint/restrict-template-expressions":[`error`,{allowBoolean:!0,allowNumber:!0,allowRegExp:!0}],"@typescript-eslint/no-unnecessary-type-parameters":[`off`],"no-unused-vars":[`off`],"@typescript-eslint/no-unused-vars":[`error`,{args:`all`,argsIgnorePattern:`^_`,caughtErrors:`all`,caughtErrorsIgnorePattern:`^_`,destructuredArrayIgnorePattern:`^_`,ignoreRestSiblings:!0}],"@typescript-eslint/prefer-optional-chain":[`off`],"@typescript-eslint/no-unnecessary-type-assertion":[`off`]},m={"unicorn/catch-error-name":[`error`,{ignore:[String.raw`^error[\da-zA-Z_]*$`]}],"unicorn/filename-case":[`off`],"unicorn/prevent-abbreviations":[`off`],"unicorn/no-null":[`off`],"unicorn/no-negated-condition":[`off`],"unicorn/switch-case-braces":[`off`],"unicorn/prefer-spread":[`off`],"unicorn/prefer-at":[`off`],"unicorn/prefer-ternary":[`warn`,`only-single-line`],"unicorn/no-typeof-undefined":[`off`],"unicorn/no-static-only-class":[`off`]},h=[n.configs.recommended,...r.strictTypeChecked,...r.stylisticTypeChecked,i.configs.recommended,{files:[`**/*.{js,mjs,cjs,ts,jsx,tsx}`],rules:f},{files:[`**/*.{ts,tsx}`],rules:p},{files:[`**/*.{js,mjs,cjs,ts,jsx,tsx}`],rules:m}],g={"react/boolean-prop-naming":[`error`],"react/button-has-type":[`error`],"react/checked-requires-onchange-or-readonly":[`off`],"react/default-props-match-prop-types":[`error`],"react/destructuring-assignment":[`warn`],"react/display-name":[`error`],"react/forbid-component-props":[`off`],"react/forbid-dom-props":[`off`],"react/forbid-elements":[`off`],"react/forbid-foreign-prop-types":[`error`],"react/forbid-prop-types":[`error`],"react/forward-ref-uses-ref":[`off`],"react/function-component-definition":[`warn`],"react/hook-use-state":[`error`],"react/iframe-missing-sandbox":[`error`],"react/jsx-boolean-value":[`warn`,`always`],"react/jsx-child-element-spacing":[`error`],"react/jsx-closing-bracket-location":[`off`],"react/jsx-closing-tag-location":[`off`],"react/jsx-curly-brace-presence":[`off`],"react/jsx-curly-newline":[`off`],"react/jsx-curly-spacing":[`off`],"react/jsx-equals-spacing":[`off`],"react/jsx-filename-extension":[`error`,{allow:`always`,extensions:[`.tsx`]}],"react/jsx-first-prop-new-line":[`off`],"react/jsx-fragments":[`warn`,`element`],"react/jsx-handler-names":[`error`],"react/jsx-indent":[`off`],"react/jsx-indent-props":[`off`],"react/jsx-key":[`error`],"react/jsx-max-depth":[`off`],"react/jsx-max-props-per-line":[`off`],"react/jsx-newline":[`off`],"react/jsx-no-bind":[`error`,{allowArrowFunctions:!0}],"react/jsx-no-comment-textnodes":[`error`],"react/jsx-no-constructed-context-values":[`error`],"react/jsx-no-duplicate-props":[`error`],"react/jsx-no-leaked-render":[`warn`],"react/jsx-no-literals":[`off`],"react/jsx-no-script-url":[`error`],"react/jsx-no-target-blank":[`warn`],"react/jsx-no-undef":[`error`],"react/jsx-no-useless-fragment":[`warn`],"react/jsx-one-expression-per-line":[`off`],"react/jsx-pascal-case":[`off`],"react/jsx-props-no-multi-spaces":[`off`],"react/jsx-props-no-spread-multi":[`off`],"react/jsx-props-no-spreading":[`off`],"react/jsx-sort-props":[`off`],"react/jsx-tag-spacing":[`off`],"react/jsx-uses-react":[`error`],"react/jsx-uses-vars":[`error`],"react/jsx-wrap-multilines":[`off`],"react/no-access-state-in-setstate":[`error`],"react/no-adjacent-inline-elements":[`error`],"react/no-array-index-key":[`error`],"react/no-arrow-function-lifecycle":[`warn`],"react/no-children-prop":[`error`],"react/no-danger":[`error`],"react/no-danger-with-children":[`error`],"react/no-deprecated":[`error`],"react/no-did-mount-set-state":[`error`,`disallow-in-func`],"react/no-did-update-set-state":[`error`,`disallow-in-func`],"react/no-direct-mutation-state":[`error`],"react/no-find-dom-node":[`error`],"react/no-invalid-html-attribute":[`error`],"react/no-is-mounted":[`error`],"react/no-multi-comp":[`off`],"react/no-namespace":[`error`],"react/no-object-type-as-default-prop":[`error`],"react/no-redundant-should-component-update":[`error`],"react/no-render-return-value":[`error`],"react/no-set-state":[`error`],"react/no-string-refs":[`error`,{noTemplateLiterals:!0}],"react/no-this-in-sfc":[`error`],"react/no-typos":[`error`],"react/no-unescaped-entities":[`error`],"react/no-unknown-property":[`warn`],"react/no-unsafe":[`off`],"react/no-unstable-nested-components":[`error`],"react/no-unused-class-component-methods":[`error`],"react/no-unused-prop-types":[`error`],"react/no-unused-state":[`error`],"react/no-will-update-set-state":[`error`,`disallow-in-func`],"react/prefer-es6-class":[`error`],"react/prefer-exact-props":[`error`],"react/prefer-read-only-props":[`warn`],"react/prefer-stateless-function":[`error`],"react/prop-types":[`error`],"react/react-in-jsx-scope":[`off`],"react/require-default-props":[`off`],"react/require-optimization":[`error`],"react/require-render-return":[`error`],"react/self-closing-comp":[`warn`],"react/sort-comp":[`error`],"react/sort-default-props":[`off`],"react/sort-prop-types":[`off`],"react/state-in-constructor":[`error`],"react/static-property-placement":[`error`],"react/style-prop-object":[`error`],"react/void-dom-elements-no-children":[`error`]},_=[...h,a.flat[`recommended-latest`],o.configs.recommended,{files:[`**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}`],...t.configs.flat.recommended,settings:{react:{version:`detect`}},rules:{...g}}],v={"import-x/no-deprecated":[`error`],"import-x/no-empty-named-blocks":[`warn`],"import-x/no-extraneous-dependencies":[`error`,{devDependencies:!1,optionalDependencies:!1}],"import-x/no-mutable-exports":[`error`],"import-x/no-rename-default":[`off`],"import-x/no-unused-modules":[`off`,{missingExports:!0}],"import-x/no-amd":[`error`],"import-x/no-commonjs":[`error`],"import-x/no-import-module-exports":[`warn`],"import-x/no-nodejs-modules":[`off`],"import-x/unambiguous":[`error`],"import-x/no-absolute-path":[`warn`],"import-x/no-cycle":[`error`],"import-x/no-dynamic-require":[`off`],"import-x/no-internal-modules":[`off`],"import-x/no-relative-packages":[`warn`],"import-x/no-relative-parent-imports":[`off`],"import-x/no-self-import":[`error`],"import-x/no-useless-path-segments":[`warn`,{noUselessIndex:!0}],"import-x/no-webpack-loader-syntax":[`error`],"import-x/consistent-type-specifier-style":[`warn`,`prefer-top-level`],"import-x/dynamic-import-chunkname":[`off`],"import-x/exports-last":[`off`],"import-x/extensions":[`error`,`never`],"import-x/first":[`warn`],"import-x/group-exports":[`off`],"import-x/max-dependencies":[`off`],"import-x/newline-after-import":[`warn`],"import-x/no-anonymous-default-export":[`error`,{allowArray:!1,allowArrowFunction:!0,allowAnonymousClass:!1,allowAnonymousFunction:!1,allowCallExpression:!0,allowNew:!1,allowLiteral:!1,allowObject:!1}],"import-x/no-default-export":[`off`],"import-x/no-named-default":[`off`],"import-x/no-named-export":[`off`],"import-x/no-namespace":[`warn`],"import-x/no-unassigned-import":[`error`,{allow:[`**/*.css`]}],"import-x/order":[`warn`],"import-x/prefer-default-export":[`off`]};function y(e){let t={alwaysTryTypes:!0,bun:!0};return e!==void 0&&(t.project=e.project),[s.recommended,s.typescript,{files:[`**/*.{js,mjs,cjs,ts,jsx,tsx}`],plugins:{"unused-imports":l},settings:{"import-x/resolver-next":[c(t)]},rules:{...v,"unused-imports/no-unused-imports":[`error`]}}]}var b=[u],x=[d.configs.customize({jsx:!0,arrowParens:!0,blockSpacing:!0,braceStyle:`stroustrup`,commaDangle:`never`,indent:2,semi:!0,quotes:`double`,quoteProps:`always`}),{files:[`**/*.{js,mjs,cjs,ts,jsx,tsx}`],languageOptions:{parserOptions:{ecmaFeatures:{jsx:!0}}},rules:{"@stylistic/array-bracket-newline":[`warn`],"@stylistic/array-bracket-spacing":[`warn`],"@stylistic/array-element-newline":[`warn`,`consistent`],"@stylistic/arrow-parens":[`warn`,`always`],"@stylistic/arrow-spacing":[`warn`],"@stylistic/block-spacing":[`warn`],"@stylistic/brace-style":[`warn`,`1tbs`],"@stylistic/comma-dangle":[`warn`],"@stylistic/comma-spacing":[`warn`],"@stylistic/comma-style":[`warn`],"@stylistic/computed-property-spacing":[`warn`],"@stylistic/curly-newline":[`warn`,`always`],"@stylistic/dot-location":[`warn`,`property`],"@stylistic/eol-last":[`warn`],"@stylistic/function-call-spacing":[`warn`],"@stylistic/function-call-argument-newline":[`warn`,`consistent`],"@stylistic/function-paren-newline":[`warn`,`consistent`],"@stylistic/generator-star-spacing":[`warn`],"@stylistic/implicit-arrow-linebreak":[`warn`],"@stylistic/indent":[`warn`,2],"@stylistic/indent-binary-ops":[`warn`,2],"@stylistic/jsx-child-element-spacing":[`error`],"@stylistic/jsx-closing-bracket-location":[`warn`],"@stylistic/jsx-closing-tag-location":[`warn`],"@stylistic/jsx-curly-brace-presence":[`warn`],"@stylistic/jsx-curly-newline":[`warn`],"@stylistic/jsx-curly-spacing":[`warn`],"@stylistic/jsx-equals-spacing":[`warn`],"@stylistic/jsx-first-prop-new-line":[`warn`],"@stylistic/jsx-function-call-newline":[`warn`],"@stylistic/jsx-indent-props":[`warn`,2],"@stylistic/jsx/jsx-max-props-per-line":[`off`],"@stylistic/jsx-newline":[`off`],"@stylistic/jsx-one-expression-per-line":[`warn`,{allow:`single-child`}],"@stylistic/jsx-pascal-case":[`error`],"@stylistic/jsx-quotes":[`warn`],"@stylistic/jsx-self-closing-comp":[`warn`],"@stylistic/jsx-sort-props":[`warn`,{callbacksLast:!0,shorthandFirst:!0,multiline:`last`,noSortAlphabetically:!0}],"@stylistic/jsx-tag-spacing":[`warn`,{closingSlash:`never`,beforeSelfClosing:`always`,afterOpening:`never`,beforeClosing:`never`}],"@stylistic/jsx-wrap-multilines":[`warn`,{declaration:`parens-new-line`,assignment:`parens-new-line`,return:`parens-new-line`,arrow:`parens-new-line`,condition:`parens-new-line`,logical:`parens-new-line`,prop:`parens-new-line`}],"@stylistic/key-spacing":`warn`,"@stylistic/keyword-spacing":`warn`,"@stylistic/line-comment-position":`warn`,"@stylistic/linebreak-style":`warn`,"@stylistic/lines-around-comment":[`warn`,{beforeBlockComment:!0,afterBlockComment:!1,beforeLineComment:!0,afterLineComment:!1,allowBlockStart:!0,allowBlockEnd:!0,allowObjectStart:!0,allowObjectEnd:!0,allowArrayStart:!0,allowArrayEnd:!0,allowClassStart:!0,allowClassEnd:!0,afterHashbangComment:!0}],"@stylistic/lines-between-class-members":[`warn`,{enforce:[{blankLine:`never`,prev:`field`,next:`field`},{blankLine:`always`,prev:`*`,next:`method`},{blankLine:`always`,prev:`method`,next:`*`}]}],"@stylistic/max-len":[`error`,{code:120,tabWidth:2,comments:120,ignoreComments:!0,ignoreTrailingComments:!0,ignoreUrls:!0,ignoreStrings:!0,ignoreTemplateLiterals:!0,ignoreRegExpLiterals:!0}],"@stylistic/max-statements-per-line":[`error`],"@stylistic/member-delimiter-style":[`warn`],"@stylistic/multiline-comment-style":[`off`],"@stylistic/multiline-ternary":[`warn`,`always-multiline`],"@stylistic/new-parens":[`warn`],"@stylistic/newline-per-chained-call":[`warn`],"@stylistic/no-confusing-arrow":[`warn`],"@stylistic/no-extra-parens":[`warn`],"@stylistic/no-extra-semi":[`warn`],"@stylistic/no-floating-decimal":[`warn`],"@stylistic/no-mixed-operators":[`error`],"@stylistic/no-mixed-spaces-and-tabs":[`error`],"@stylistic/no-multi-spaces":[`warn`],"@stylistic/no-multiple-empty-lines":[`warn`],"@stylistic/no-tabs":[`error`],"@stylistic/no-trailing-spaces":[`warn`],"@stylistic/no-whitespace-before-property":[`warn`],"@stylistic/nonblock-statement-body-position":[`warn`],"@stylistic/object-curly-newline":[`warn`,{consistent:!0}],"@stylistic/object-curly-spacing":[`warn`],"@stylistic/object-property-newline":[`warn`,{allowAllPropertiesOnSameLine:!0}],"@stylistic/one-var-declaration-per-line":[`warn`],"@stylistic/operator-linebreak":[`warn`],"@stylistic/padded-blocks":[`warn`,`never`],"@stylistic/padding-line-between-statements":[`warn`,{blankLine:`always`,prev:`*`,next:`return`},{blankLine:`always`,prev:`*`,next:`block-like`},{blankLine:`always`,prev:`block-like`,next:`*`},{blankLine:`always`,prev:`case`,next:`case`},{blankLine:`never`,prev:`*`,next:`break`},{blankLine:`always`,prev:`*`,next:`export`},{blankLine:`always`,prev:`*`,next:`interface`},{blankLine:`always`,prev:`interface`,next:`*`},{blankLine:`always`,prev:`*`,next:`class`},{blankLine:`always`,prev:`class`,next:`*`}],"@stylistic/quote-props":[`warn`,`as-needed`],"@stylistic/quotes":[`warn`],"@stylistic/rest-spread-spacing":[`warn`],"@stylistic/semi":[`warn`],"@stylistic/semi-spacing":[`warn`],"@stylistic/semi-style":[`warn`],"@stylistic/space-before-blocks":[`warn`],"@stylistic/space-before-function-paren":[`warn`,{anonymous:`always`,named:`never`,asyncArrow:`always`}],"@stylistic/space-in-parens":[`warn`],"@stylistic/space-infix-ops":[`warn`],"@stylistic/space-unary-ops":[`warn`],"@stylistic/spaced-comment":[`warn`],"@stylistic/switch-colon-spacing":[`warn`],"@stylistic/template-curly-spacing":[`warn`],"@stylistic/template-tag-spacing":[`warn`],"@stylistic/type-annotation-spacing":[`warn`],"@stylistic/type-generic-spacing":[`warn`],"@stylistic/type-named-tuple-spacing":[`warn`],"@stylistic/wrap-iife":[`warn`,`inside`],"@stylistic/wrap-regex":[`warn`],"@stylistic/yield-star-spacing":[`warn`,`after`]}}];function S(t){return{globals:e.node,parserOptions:{ecmaVersion:`latest`,tsconfigRootDir:t?.tsconfigRootDir,project:t?.project}}}function C(n){return{...t.configs.flat.recommended.languageOptions,globals:{...e.serviceworker,...e.browser},parserOptions:{tsconfigRootDir:n?.tsconfigRootDir,project:n?.project}}}function w(e){let t;return e.platform===`node`?(t=h,t.push({files:[`**/*.{ts,js}`],languageOptions:S(e.typescript)})):(t=_,t.push({files:[`**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}`],languageOptions:C(e.typescript)})),e.useImport===!0&&t.push(...y(e.typescript)),t.push(...e.style===`stylistic`?x:b),e.overrides!==void 0&&t.push(...e.overrides),e.ignores!==void 0&&t.push({ignores:e.ignores}),t}export{w as createConfig};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|