@2digits/oxlint-config 0.6.15 → 0.6.17
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/base-DDWqp-yG.mjs +1 -0
- package/dist/base.d.mts +601 -2
- package/dist/base.mjs +1 -1
- package/dist/index.d.mts +2104 -5
- package/dist/index.mjs +1 -1
- package/dist/typescript-C5De5VIw.mjs +1 -0
- package/dist/typescript.d.mts +392 -2
- package/dist/typescript.mjs +1 -1
- package/package.json +11 -8
- package/dist/base-BSySiG3o.mjs +0 -1
- package/dist/types-CU7iziYy.d.mts +0 -8429
- package/dist/types-Dfvzj6n2.mjs +0 -1
- package/dist/typescript-CC7miX6k.mjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineConfig as e}from"@oxlint-types/define-config";import{ignorePatterns as t}from"@2digits/constants";const n=e({plugins:[`import`],rules:{"import/consistent-type-specifier-style":void 0,"import/default":`error`,"import/export":`error`,"import/exports-last":void 0,"import/extensions":void 0,"import/first":[`error`,`disable-absolute-first`],"import/group-exports":void 0,"import/max-dependencies":void 0,"import/named":void 0,"import/namespace":`error`,"import/no-absolute-path":`error`,"import/no-amd":`error`,"import/no-anonymous-default-export":`error`,"import/no-commonjs":void 0,"import/no-cycle":`error`,"import/no-default-export":void 0,"import/no-duplicates":`error`,"import/no-dynamic-require":`error`,"import/no-empty-named-blocks":`error`,"import/no-mutable-exports":void 0,"import/no-named-as-default":`error`,"import/no-named-as-default-member":`error`,"import/no-named-default":`error`,"import/no-named-export":void 0,"import/no-namespace":void 0,"import/no-nodejs-modules":void 0,"import/no-relative-parent-imports":void 0,"import/no-self-import":`error`,"import/no-unassigned-import":void 0,"import/no-webpack-loader-syntax":`error`,"import/prefer-default-export":void 0,"import/unambiguous":void 0,"import/newline-after-import":void 0}}),r=e({plugins:[`eslint`],rules:{"eslint/accessor-pairs":[`error`,{enforceForClassMembers:!0,setWithoutGet:!0}],"eslint/array-callback-return":`error`,"eslint/arrow-body-style":[`error`,`as-needed`,{requireReturnForObjectLiteral:!1}],"eslint/block-scoped-var":`error`,"eslint/capitalized-comments":`error`,"eslint/class-methods-use-this":void 0,"eslint/complexity":[`error`,{variant:`modified`,max:20}],"eslint/constructor-super":`error`,"eslint/curly":`error`,"eslint/default-case":void 0,"eslint/default-case-last":`error`,"eslint/default-param-last":`error`,"eslint/eqeqeq":[`error`,`smart`],"eslint/for-direction":`error`,"eslint/func-name-matching":void 0,"eslint/func-names":[`error`,`always`,{generators:`never`}],"eslint/func-style":[`error`,`declaration`,{allowTypeAnnotation:!0}],"eslint/getter-return":`error`,"eslint/grouped-accessor-pairs":`error`,"eslint/guard-for-in":`error`,"eslint/id-length":void 0,"eslint/init-declarations":void 0,"eslint/logical-assignment-operators":[`error`,`always`],"eslint/max-classes-per-file":void 0,"eslint/max-depth":void 0,"eslint/max-lines":void 0,"eslint/max-lines-per-function":void 0,"eslint/max-nested-callbacks":void 0,"eslint/max-params":void 0,"eslint/max-statements":void 0,"eslint/new-cap":[`error`,{capIsNew:!1,newIsCap:!0,properties:!0}],"eslint/no-alert":`error`,"eslint/no-array-constructor":`error`,"eslint/no-async-promise-executor":`error`,"eslint/no-await-in-loop":`error`,"eslint/no-bitwise":void 0,"eslint/no-caller":`error`,"eslint/no-case-declarations":`error`,"eslint/no-class-assign":`error`,"eslint/no-compare-neg-zero":`error`,"eslint/no-cond-assign":[`error`,`always`],"eslint/no-console":void 0,"eslint/no-const-assign":`error`,"eslint/no-constant-binary-expression":`error`,"eslint/no-constant-condition":[`error`,{checkLoops:`allExceptWhileTrue`}],"eslint/no-constructor-return":`error`,"eslint/no-continue":void 0,"eslint/no-control-regex":`error`,"eslint/no-debugger":`error`,"eslint/no-delete-var":`error`,"eslint/no-div-regex":`error`,"eslint/no-dupe-class-members":`error`,"eslint/no-dupe-else-if":`error`,"eslint/no-dupe-keys":`error`,"eslint/no-duplicate-case":`error`,"eslint/no-duplicate-imports":[`error`,{allowSeparateTypeImports:!1,includeExports:!1}],"eslint/no-else-return":[`error`,{allowElseIf:!1}],"eslint/no-empty":[`error`,{allowEmptyCatch:!0}],"eslint/no-empty-character-class":`error`,"eslint/no-empty-function":void 0,"eslint/no-empty-pattern":`error`,"eslint/no-empty-static-block":`error`,"eslint/no-eq-null":void 0,"eslint/no-eval":`error`,"eslint/no-ex-assign":`error`,"eslint/no-extend-native":`error`,"eslint/no-extra-bind":`error`,"eslint/no-extra-boolean-cast":[`error`,{enforceForInnerExpressions:!0}],"eslint/no-extra-label":`error`,"eslint/no-fallthrough":`error`,"eslint/no-func-assign":`error`,"eslint/no-global-assign":`error`,"eslint/no-implicit-coercion":void 0,"eslint/no-import-assign":`error`,"eslint/no-inline-comments":void 0,"eslint/no-inner-declarations":void 0,"eslint/no-invalid-regexp":`error`,"eslint/no-irregular-whitespace":`error`,"eslint/no-iterator":`error`,"eslint/no-label-var":`error`,"eslint/no-labels":[`error`,{allowLoop:!1,allowSwitch:!1}],"eslint/no-lone-blocks":`error`,"eslint/no-lonely-if":`error`,"eslint/no-loop-func":`error`,"eslint/no-loss-of-precision":`error`,"eslint/no-magic-numbers":void 0,"eslint/no-misleading-character-class":`error`,"eslint/no-multi-assign":`error`,"eslint/no-multi-str":`error`,"eslint/no-negated-condition":`error`,"eslint/no-nested-ternary":void 0,"eslint/no-new":`error`,"eslint/no-new-func":`error`,"eslint/no-new-native-nonconstructor":`error`,"eslint/no-new-wrappers":`error`,"eslint/no-nonoctal-decimal-escape":`error`,"eslint/no-obj-calls":`error`,"eslint/no-object-constructor":`error`,"eslint/no-param-reassign":void 0,"eslint/no-plusplus":void 0,"eslint/no-promise-executor-return":void 0,"eslint/no-proto":`error`,"eslint/no-prototype-builtins":`error`,"eslint/no-redeclare":`error`,"eslint/no-regex-spaces":`error`,"eslint/no-restricted-exports":void 0,"eslint/no-restricted-globals":[`error`,{message:"Use `globalThis` instead.",name:`global`},{message:"Use `globalThis` instead.",name:`self`}],"eslint/no-restricted-imports":void 0,"eslint/no-restricted-properties":void 0,"eslint/no-return-assign":`error`,"eslint/no-script-url":`error`,"eslint/no-self-assign":[`error`,{props:!0}],"eslint/no-self-compare":`error`,"eslint/no-sequences":`error`,"eslint/no-setter-return":`error`,"eslint/no-shadow":void 0,"eslint/no-shadow-restricted-names":`error`,"eslint/no-sparse-arrays":`error`,"eslint/no-template-curly-in-string":`error`,"eslint/no-ternary":void 0,"eslint/no-this-before-super":`error`,"eslint/no-throw-literal":`off`,"eslint/no-unassigned-vars":`error`,"eslint/no-undef":void 0,"eslint/no-undefined":void 0,"eslint/no-underscore-dangle":void 0,"eslint/no-unexpected-multiline":`error`,"eslint/no-unmodified-loop-condition":`error`,"eslint/no-unneeded-ternary":[`error`,{defaultAssignment:!1}],"eslint/no-unreachable":`error`,"eslint/no-unsafe-finally":`error`,"eslint/no-unsafe-negation":`error`,"eslint/no-unsafe-optional-chaining":[`error`,{disallowArithmeticOperators:!0}],"eslint/no-unused-expressions":[`error`,{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],"eslint/no-unused-labels":`error`,"eslint/no-unused-private-class-members":`error`,"eslint/no-unused-vars":[`error`,{args:`none`,caughtErrors:`none`,vars:`all`,argsIgnorePattern:`^_`,ignoreRestSiblings:!0,varsIgnorePattern:`^_`}],"eslint/no-use-before-define":void 0,"eslint/no-useless-assignment":void 0,"eslint/no-useless-backreference":`error`,"eslint/no-useless-call":`error`,"eslint/no-useless-catch":`error`,"eslint/no-useless-computed-key":`error`,"eslint/no-useless-concat":`error`,"eslint/no-useless-constructor":`error`,"eslint/no-useless-escape":`error`,"eslint/no-useless-rename":`error`,"eslint/no-useless-return":`error`,"eslint/no-var":`error`,"eslint/no-void":void 0,"eslint/no-warning-comments":void 0,"eslint/no-with":`error`,"eslint/object-shorthand":`error`,"eslint/operator-assignment":[`error`,`always`],"eslint/prefer-const":[`error`,{destructuring:`all`,ignoreReadBeforeAssign:!0}],"eslint/prefer-destructuring":[`error`,{array:!0,object:!0},{enforceForRenamedProperties:!0}],"eslint/prefer-exponentiation-operator":`error`,"eslint/prefer-numeric-literals":`error`,"eslint/prefer-object-has-own":`error`,"eslint/prefer-object-spread":`error`,"eslint/prefer-promise-reject-errors":`error`,"eslint/prefer-regex-literals":void 0,"eslint/prefer-rest-params":`error`,"eslint/prefer-spread":`error`,"eslint/prefer-template":`error`,"eslint/preserve-caught-error":`error`,"eslint/radix":`error`,"eslint/require-await":void 0,"eslint/require-unicode-regexp":void 0,"eslint/require-yield":`error`,"eslint/sort-imports":void 0,"eslint/sort-keys":void 0,"eslint/sort-vars":`error`,"eslint/symbol-description":`error`,"eslint/unicode-bom":[`error`,`never`],"eslint/use-isnan":[`error`,{enforceForIndexOf:!0,enforceForSwitchCase:!0}],"eslint/valid-typeof":[`error`,{requireStringLiterals:!0}],"eslint/vars-on-top":`error`,"eslint/yoda":[`error`,`never`],"eslint/no-implicit-globals":void 0,"eslint/prefer-arrow-callback":void 0,"eslint/id-match":void 0,"eslint/no-implied-eval":void 0,"eslint/prefer-named-capture-group":void 0,"eslint/no-unreachable-loop":void 0}}),i=e({plugins:[`jsdoc`],rules:{"jsdoc/check-access":`error`,"jsdoc/check-property-names":`error`,"jsdoc/check-tag-names":[`error`,{typed:!0}],"jsdoc/empty-tags":`error`,"jsdoc/implements-on-classes":`error`,"jsdoc/no-defaults":`error`,"jsdoc/require-param":`error`,"jsdoc/require-param-name":`error`,"jsdoc/require-property":`error`,"jsdoc/require-property-description":`error`,"jsdoc/require-property-name":`error`,"jsdoc/require-returns-description":`error`,"jsdoc/require-yields":`error`,"jsdoc/require-param-description":void 0,"jsdoc/require-param-type":void 0,"jsdoc/require-property-type":void 0,"jsdoc/require-returns":void 0,"jsdoc/require-returns-type":void 0,"jsdoc/require-throws-description":void 0,"jsdoc/require-throws-type":void 0,"jsdoc/require-yields-description":void 0,"jsdoc/require-yields-type":void 0}}),a=e({plugins:[`node`],rules:{"node/handle-callback-err":`error`,"node/no-exports-assign":`error`,"node/no-new-require":`error`,"node/no-path-concat":`error`,"node/callback-return":void 0,"node/global-require":void 0,"node/no-mixed-requires":void 0,"node/no-process-env":void 0,"node/no-sync":void 0,"node/no-top-level-await":void 0}}),o=e({plugins:[`oxc`],rules:{"oxc/approx-constant":`error`,"oxc/bad-array-method-on-arguments":`error`,"oxc/bad-bitwise-operator":`error`,"oxc/bad-char-at-comparison":`error`,"oxc/bad-comparison-sequence":`error`,"oxc/bad-min-max-func":`error`,"oxc/bad-object-literal-comparison":`error`,"oxc/bad-replace-all-arg":`error`,"oxc/branches-sharing-code":`error`,"oxc/const-comparisons":`error`,"oxc/double-comparisons":`error`,"oxc/erasing-op":`error`,"oxc/misrefactored-assign-op":`error`,"oxc/missing-throw":`error`,"oxc/no-accumulating-spread":`error`,"oxc/no-async-await":void 0,"oxc/no-async-endpoint-handlers":void 0,"oxc/no-barrel-file":[`error`,{threshold:1e4}],"oxc/no-const-enum":`error`,"oxc/no-map-spread":void 0,"oxc/no-optional-chaining":void 0,"oxc/no-rest-spread-properties":void 0,"oxc/no-this-in-exported-function":`error`,"oxc/number-arg-out-of-range":`error`,"oxc/only-used-in-recursion":`error`,"oxc/uninvoked-array-callback":`error`}}),s=e({env:{browser:!0,node:!0},options:{denyWarnings:!0,reportUnusedDisableDirectives:`deny`},categories:{nursery:`off`,pedantic:`off`,correctness:`off`,perf:`off`,style:`off`,restriction:`off`,suspicious:`off`},extends:[r,e({plugins:[`unicorn`],rules:{"unicorn/catch-error-name":`error`,"unicorn/consistent-assert":`error`,"unicorn/consistent-date-clone":`error`,"unicorn/consistent-empty-array-spread":`error`,"unicorn/consistent-existence-index-check":`error`,"unicorn/consistent-function-scoping":`error`,"unicorn/consistent-template-literal-escape":`error`,"unicorn/custom-error-definition":void 0,"unicorn/empty-brace-spaces":void 0,"unicorn/error-message":`error`,"unicorn/escape-case":`error`,"unicorn/explicit-length-check":`error`,"unicorn/filename-case":void 0,"unicorn/new-for-builtins":`error`,"unicorn/no-abusive-eslint-disable":`error`,"unicorn/no-accessor-recursion":`error`,"unicorn/no-anonymous-default-export":`error`,"unicorn/no-array-callback-reference":void 0,"unicorn/no-array-for-each":`error`,"unicorn/no-array-method-this-argument":`error`,"unicorn/no-array-reduce":`error`,"unicorn/no-array-reverse":`error`,"unicorn/no-array-sort":`error`,"unicorn/no-await-expression-member":`error`,"unicorn/no-await-in-promise-methods":`error`,"unicorn/no-console-spaces":`error`,"unicorn/no-document-cookie":`error`,"unicorn/no-empty-file":`error`,"unicorn/no-hex-escape":`error`,"unicorn/no-immediate-mutation":`error`,"unicorn/no-instanceof-array":`error`,"unicorn/no-instanceof-builtins":`error`,"unicorn/no-invalid-fetch-options":`error`,"unicorn/no-invalid-remove-event-listener":`error`,"unicorn/no-length-as-slice-end":`error`,"unicorn/no-lonely-if":`error`,"unicorn/no-magic-array-flat-depth":`error`,"unicorn/no-negated-condition":`error`,"unicorn/no-negation-in-equality-check":`error`,"unicorn/no-nested-ternary":void 0,"unicorn/no-new-array":`error`,"unicorn/no-new-buffer":`error`,"unicorn/no-null":`error`,"unicorn/no-object-as-default-parameter":`error`,"unicorn/no-process-exit":`error`,"unicorn/no-single-promise-in-promise-methods":`error`,"unicorn/no-static-only-class":`error`,"unicorn/no-thenable":`error`,"unicorn/no-this-assignment":`error`,"unicorn/no-typeof-undefined":`error`,"unicorn/no-unnecessary-array-flat-depth":`error`,"unicorn/no-unnecessary-array-splice-count":`error`,"unicorn/no-unnecessary-await":`error`,"unicorn/no-unnecessary-slice-end":`error`,"unicorn/no-unreadable-array-destructuring":`error`,"unicorn/no-unreadable-iife":`error`,"unicorn/no-useless-collection-argument":`error`,"unicorn/no-useless-error-capture-stack-trace":`error`,"unicorn/no-useless-fallback-in-spread":`error`,"unicorn/no-useless-iterator-to-array":`error`,"unicorn/no-useless-length-check":`error`,"unicorn/no-useless-promise-resolve-reject":`error`,"unicorn/no-useless-spread":`error`,"unicorn/no-useless-switch-case":`error`,"unicorn/no-useless-undefined":[`error`,{checkArguments:!1,checkArrowFunctionBody:!1}],"unicorn/no-zero-fractions":`error`,"unicorn/number-literal-case":`error`,"unicorn/numeric-separators-style":`error`,"unicorn/prefer-add-event-listener":`error`,"unicorn/prefer-array-find":`error`,"unicorn/prefer-array-flat":`error`,"unicorn/prefer-array-flat-map":`error`,"unicorn/prefer-array-index-of":`error`,"unicorn/prefer-array-some":`error`,"unicorn/prefer-at":[`error`,{checkAllIndexAccess:!1}],"unicorn/prefer-bigint-literals":`error`,"unicorn/prefer-blob-reading-methods":`error`,"unicorn/prefer-class-fields":`error`,"unicorn/prefer-classlist-toggle":`error`,"unicorn/prefer-code-point":`error`,"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`,"unicorn/prefer-event-target":`error`,"unicorn/prefer-global-this":`error`,"unicorn/prefer-import-meta-properties":void 0,"unicorn/prefer-includes":`error`,"unicorn/prefer-keyboard-event-key":`error`,"unicorn/prefer-logical-operator-over-ternary":`error`,"unicorn/prefer-math-min-max":`error`,"unicorn/prefer-math-trunc":`error`,"unicorn/prefer-modern-dom-apis":`error`,"unicorn/prefer-modern-math-apis":`error`,"unicorn/prefer-module":void 0,"unicorn/prefer-native-coercion-functions":`error`,"unicorn/prefer-negative-index":`error`,"unicorn/prefer-node-protocol":`error`,"unicorn/prefer-number-properties":`error`,"unicorn/prefer-object-from-entries":[`error`,{functions:[]}],"unicorn/prefer-optional-catch-binding":`error`,"unicorn/prefer-prototype-methods":`error`,"unicorn/prefer-query-selector":`error`,"unicorn/prefer-reflect-apply":`error`,"unicorn/prefer-regexp-test":`error`,"unicorn/prefer-response-static-json":`error`,"unicorn/prefer-set-has":`error`,"unicorn/prefer-set-size":`error`,"unicorn/prefer-spread":`error`,"unicorn/prefer-string-raw":`error`,"unicorn/prefer-string-replace-all":`error`,"unicorn/prefer-string-slice":`error`,"unicorn/prefer-string-starts-ends-with":`error`,"unicorn/prefer-string-trim-start-end":`error`,"unicorn/prefer-structured-clone":[`error`,{functions:[]}],"unicorn/prefer-ternary":[`error`,`only-single-line`],"unicorn/prefer-top-level-await":void 0,"unicorn/prefer-type-error":`error`,"unicorn/relative-url-style":`error`,"unicorn/require-array-join-separator":`error`,"unicorn/require-module-attributes":`error`,"unicorn/require-module-specifiers":`error`,"unicorn/require-number-to-fixed-digits-argument":`error`,"unicorn/require-post-message-target-origin":void 0,"unicorn/switch-case-braces":[`error`,`always`],"unicorn/switch-case-break-position":`error`,"unicorn/text-encoding-identifier-case":`error`,"unicorn/throw-new-error":`off`,"unicorn/import-style":void 0,"unicorn/max-nested-calls":void 0,"unicorn/no-array-fill-with-reference-type":void 0,"unicorn/prefer-export-from":void 0,"unicorn/prefer-number-coercion":void 0,"unicorn/prefer-single-call":void 0,"unicorn/explicit-timer-delay":void 0,"unicorn/no-confusing-array-with":void 0}}),n,a,o,i,e({jsPlugins:[{name:`zod`,specifier:import.meta.resolve(`eslint-plugin-zod`)}],rules:{"zod/array-style":[`error`,{style:`function`}],"zod/consistent-import":[`error`,{syntax:`namespace`}],"zod/consistent-schema-output-type-style":[`error`,{style:`infer`}],"zod/consistent-schema-var-name":[`warn`,{after:`Schema`}],"zod/no-any-schema":`error`,"zod/no-coerce-boolean":`error`,"zod/no-conflicting-checks":[`error`,{checkConfusingCases:!0,checkImpossibleCases:!0,checkInapplicableChecks:!0}],"zod/no-duplicate-schema-methods":`error`,"zod/no-empty-custom-schema":`error`,"zod/no-native-enum":`error`,"zod/no-number-schema-with-finite":`error`,"zod/no-number-schema-with-int":`error`,"zod/no-number-schema-with-is-finite":`error`,"zod/no-number-schema-with-is-int":`error`,"zod/no-number-schema-with-safe":`error`,"zod/no-number-schema-with-step":`error`,"zod/no-optional-and-default-together":[`warn`,{preferredMethod:`default`}],"zod/no-promise-schema":`error`,"zod/no-schema-with-is-nullable":`error`,"zod/no-schema-with-is-optional":`error`,"zod/no-throw-in-refine":`error`,"zod/no-transform-in-record-key":`error`,"zod/no-unnecessary-readonly":`error`,"zod/prefer-enum-over-literal-union":`error`,"zod/prefer-loose-object":`error`,"zod/prefer-meta":`error`,"zod/prefer-meta-last":`error`,"zod/prefer-strict-object":`error`,"zod/prefer-string-schema-with-trim":`error`,"zod/prefer-top-level-string-formats":`error`,"zod/prefer-trim-before-string-length-checks":`error`,"zod/prefer-tuple-over-array-length":`error`,"zod/require-brand-type-parameter":`error`,"zod/schema-error-property-style":[`error`,{selector:`Literal,TemplateLiteral`,example:`"This is an error message"`}],"zod/consistent-import-source":void 0,"zod/consistent-object-schema-type":void 0,"zod/no-string-schema-with-uuid":void 0,"zod/no-unknown-schema":void 0,"zod/require-error-message":void 0}})],ignorePatterns:t});export{s as t};
|
package/dist/base.d.mts
CHANGED
|
@@ -1,5 +1,604 @@
|
|
|
1
|
-
import { n as TypedOxlintConfig } from "./types-CU7iziYy.mjs";
|
|
2
1
|
//#region src/base.d.ts
|
|
3
|
-
declare const baseConfig:
|
|
2
|
+
declare const baseConfig: {
|
|
3
|
+
readonly env: {
|
|
4
|
+
readonly browser: true;
|
|
5
|
+
readonly node: true;
|
|
6
|
+
};
|
|
7
|
+
readonly options: {
|
|
8
|
+
readonly denyWarnings: true;
|
|
9
|
+
readonly reportUnusedDisableDirectives: "deny";
|
|
10
|
+
};
|
|
11
|
+
readonly categories: {
|
|
12
|
+
readonly nursery: "off";
|
|
13
|
+
readonly pedantic: "off";
|
|
14
|
+
readonly correctness: "off";
|
|
15
|
+
readonly perf: "off";
|
|
16
|
+
readonly style: "off";
|
|
17
|
+
readonly restriction: "off";
|
|
18
|
+
readonly suspicious: "off";
|
|
19
|
+
};
|
|
20
|
+
readonly extends: [{
|
|
21
|
+
readonly plugins: ["eslint"];
|
|
22
|
+
readonly rules: {
|
|
23
|
+
'eslint/accessor-pairs': ["error", {
|
|
24
|
+
enforceForClassMembers: true;
|
|
25
|
+
setWithoutGet: true;
|
|
26
|
+
}];
|
|
27
|
+
'eslint/array-callback-return': "error";
|
|
28
|
+
'eslint/arrow-body-style': ["error", "as-needed", {
|
|
29
|
+
requireReturnForObjectLiteral: boolean;
|
|
30
|
+
}];
|
|
31
|
+
'eslint/block-scoped-var': "error";
|
|
32
|
+
'eslint/capitalized-comments': "error";
|
|
33
|
+
'eslint/class-methods-use-this': undefined;
|
|
34
|
+
'eslint/complexity': ["error", {
|
|
35
|
+
variant: "modified";
|
|
36
|
+
max: number;
|
|
37
|
+
}];
|
|
38
|
+
'eslint/constructor-super': "error";
|
|
39
|
+
'eslint/curly': "error";
|
|
40
|
+
'eslint/default-case': undefined;
|
|
41
|
+
'eslint/default-case-last': "error";
|
|
42
|
+
'eslint/default-param-last': "error";
|
|
43
|
+
'eslint/eqeqeq': ["error", "smart"];
|
|
44
|
+
'eslint/for-direction': "error";
|
|
45
|
+
'eslint/func-name-matching': undefined;
|
|
46
|
+
'eslint/func-names': ["error", "always", {
|
|
47
|
+
generators: string;
|
|
48
|
+
}];
|
|
49
|
+
'eslint/func-style': ["error", "declaration", {
|
|
50
|
+
allowTypeAnnotation: boolean;
|
|
51
|
+
}];
|
|
52
|
+
'eslint/getter-return': "error";
|
|
53
|
+
'eslint/grouped-accessor-pairs': "error";
|
|
54
|
+
'eslint/guard-for-in': "error";
|
|
55
|
+
'eslint/id-length': undefined;
|
|
56
|
+
'eslint/init-declarations': undefined;
|
|
57
|
+
'eslint/logical-assignment-operators': ["error", "always"];
|
|
58
|
+
'eslint/max-classes-per-file': undefined;
|
|
59
|
+
'eslint/max-depth': undefined;
|
|
60
|
+
'eslint/max-lines': undefined;
|
|
61
|
+
'eslint/max-lines-per-function': undefined;
|
|
62
|
+
'eslint/max-nested-callbacks': undefined;
|
|
63
|
+
'eslint/max-params': undefined;
|
|
64
|
+
'eslint/max-statements': undefined;
|
|
65
|
+
'eslint/new-cap': ["error", {
|
|
66
|
+
capIsNew: false;
|
|
67
|
+
newIsCap: true;
|
|
68
|
+
properties: true;
|
|
69
|
+
}];
|
|
70
|
+
'eslint/no-alert': "error";
|
|
71
|
+
'eslint/no-array-constructor': "error";
|
|
72
|
+
'eslint/no-async-promise-executor': "error";
|
|
73
|
+
'eslint/no-await-in-loop': "error";
|
|
74
|
+
'eslint/no-bitwise': undefined;
|
|
75
|
+
'eslint/no-caller': "error";
|
|
76
|
+
'eslint/no-case-declarations': "error";
|
|
77
|
+
'eslint/no-class-assign': "error";
|
|
78
|
+
'eslint/no-compare-neg-zero': "error";
|
|
79
|
+
'eslint/no-cond-assign': ["error", "always"];
|
|
80
|
+
'eslint/no-console': undefined;
|
|
81
|
+
'eslint/no-const-assign': "error";
|
|
82
|
+
'eslint/no-constant-binary-expression': "error";
|
|
83
|
+
'eslint/no-constant-condition': ["error", {
|
|
84
|
+
checkLoops: "allExceptWhileTrue";
|
|
85
|
+
}];
|
|
86
|
+
'eslint/no-constructor-return': "error";
|
|
87
|
+
'eslint/no-continue': undefined;
|
|
88
|
+
'eslint/no-control-regex': "error";
|
|
89
|
+
'eslint/no-debugger': "error";
|
|
90
|
+
'eslint/no-delete-var': "error";
|
|
91
|
+
'eslint/no-div-regex': "error";
|
|
92
|
+
'eslint/no-dupe-class-members': "error";
|
|
93
|
+
'eslint/no-dupe-else-if': "error";
|
|
94
|
+
'eslint/no-dupe-keys': "error";
|
|
95
|
+
'eslint/no-duplicate-case': "error";
|
|
96
|
+
'eslint/no-duplicate-imports': ["error", {
|
|
97
|
+
allowSeparateTypeImports: false;
|
|
98
|
+
includeExports: false;
|
|
99
|
+
}];
|
|
100
|
+
'eslint/no-else-return': ["error", {
|
|
101
|
+
allowElseIf: false;
|
|
102
|
+
}];
|
|
103
|
+
'eslint/no-empty': ["error", {
|
|
104
|
+
allowEmptyCatch: true;
|
|
105
|
+
}];
|
|
106
|
+
'eslint/no-empty-character-class': "error";
|
|
107
|
+
'eslint/no-empty-function': undefined;
|
|
108
|
+
'eslint/no-empty-pattern': "error";
|
|
109
|
+
'eslint/no-empty-static-block': "error";
|
|
110
|
+
'eslint/no-eq-null': undefined;
|
|
111
|
+
'eslint/no-eval': "error";
|
|
112
|
+
'eslint/no-ex-assign': "error";
|
|
113
|
+
'eslint/no-extend-native': "error";
|
|
114
|
+
'eslint/no-extra-bind': "error";
|
|
115
|
+
'eslint/no-extra-boolean-cast': ["error", {
|
|
116
|
+
enforceForInnerExpressions: true;
|
|
117
|
+
}];
|
|
118
|
+
'eslint/no-extra-label': "error";
|
|
119
|
+
'eslint/no-fallthrough': "error";
|
|
120
|
+
'eslint/no-func-assign': "error";
|
|
121
|
+
'eslint/no-global-assign': "error";
|
|
122
|
+
'eslint/no-implicit-coercion': undefined;
|
|
123
|
+
'eslint/no-import-assign': "error";
|
|
124
|
+
'eslint/no-inline-comments': undefined;
|
|
125
|
+
'eslint/no-inner-declarations': undefined;
|
|
126
|
+
'eslint/no-invalid-regexp': "error";
|
|
127
|
+
'eslint/no-irregular-whitespace': "error";
|
|
128
|
+
'eslint/no-iterator': "error";
|
|
129
|
+
'eslint/no-label-var': "error";
|
|
130
|
+
'eslint/no-labels': ["error", {
|
|
131
|
+
allowLoop: false;
|
|
132
|
+
allowSwitch: false;
|
|
133
|
+
}];
|
|
134
|
+
'eslint/no-lone-blocks': "error";
|
|
135
|
+
'eslint/no-lonely-if': "error";
|
|
136
|
+
'eslint/no-loop-func': "error";
|
|
137
|
+
'eslint/no-loss-of-precision': "error";
|
|
138
|
+
'eslint/no-magic-numbers': undefined;
|
|
139
|
+
'eslint/no-misleading-character-class': "error";
|
|
140
|
+
'eslint/no-multi-assign': "error";
|
|
141
|
+
'eslint/no-multi-str': "error";
|
|
142
|
+
'eslint/no-negated-condition': "error";
|
|
143
|
+
'eslint/no-nested-ternary': undefined;
|
|
144
|
+
'eslint/no-new': "error";
|
|
145
|
+
'eslint/no-new-func': "error";
|
|
146
|
+
'eslint/no-new-native-nonconstructor': "error";
|
|
147
|
+
'eslint/no-new-wrappers': "error";
|
|
148
|
+
'eslint/no-nonoctal-decimal-escape': "error";
|
|
149
|
+
'eslint/no-obj-calls': "error";
|
|
150
|
+
'eslint/no-object-constructor': "error";
|
|
151
|
+
'eslint/no-param-reassign': undefined;
|
|
152
|
+
'eslint/no-plusplus': undefined;
|
|
153
|
+
'eslint/no-promise-executor-return': undefined;
|
|
154
|
+
'eslint/no-proto': "error";
|
|
155
|
+
'eslint/no-prototype-builtins': "error";
|
|
156
|
+
'eslint/no-redeclare': "error";
|
|
157
|
+
'eslint/no-regex-spaces': "error";
|
|
158
|
+
'eslint/no-restricted-exports': undefined;
|
|
159
|
+
'eslint/no-restricted-globals': ["error", {
|
|
160
|
+
message: string;
|
|
161
|
+
name: string;
|
|
162
|
+
}, {
|
|
163
|
+
message: string;
|
|
164
|
+
name: string;
|
|
165
|
+
}];
|
|
166
|
+
'eslint/no-restricted-imports': undefined;
|
|
167
|
+
'eslint/no-restricted-properties': undefined;
|
|
168
|
+
'eslint/no-return-assign': "error";
|
|
169
|
+
'eslint/no-script-url': "error";
|
|
170
|
+
'eslint/no-self-assign': ["error", {
|
|
171
|
+
props: true;
|
|
172
|
+
}];
|
|
173
|
+
'eslint/no-self-compare': "error";
|
|
174
|
+
'eslint/no-sequences': "error";
|
|
175
|
+
'eslint/no-setter-return': "error";
|
|
176
|
+
'eslint/no-shadow': undefined;
|
|
177
|
+
'eslint/no-shadow-restricted-names': "error";
|
|
178
|
+
'eslint/no-sparse-arrays': "error";
|
|
179
|
+
'eslint/no-template-curly-in-string': "error";
|
|
180
|
+
'eslint/no-ternary': undefined;
|
|
181
|
+
'eslint/no-this-before-super': "error";
|
|
182
|
+
'eslint/no-throw-literal': "off";
|
|
183
|
+
'eslint/no-unassigned-vars': "error";
|
|
184
|
+
'eslint/no-undef': undefined;
|
|
185
|
+
'eslint/no-undefined': undefined;
|
|
186
|
+
'eslint/no-underscore-dangle': undefined;
|
|
187
|
+
'eslint/no-unexpected-multiline': "error";
|
|
188
|
+
'eslint/no-unmodified-loop-condition': "error";
|
|
189
|
+
'eslint/no-unneeded-ternary': ["error", {
|
|
190
|
+
defaultAssignment: false;
|
|
191
|
+
}];
|
|
192
|
+
'eslint/no-unreachable': "error";
|
|
193
|
+
'eslint/no-unsafe-finally': "error";
|
|
194
|
+
'eslint/no-unsafe-negation': "error";
|
|
195
|
+
'eslint/no-unsafe-optional-chaining': ["error", {
|
|
196
|
+
disallowArithmeticOperators: true;
|
|
197
|
+
}];
|
|
198
|
+
'eslint/no-unused-expressions': ["error", {
|
|
199
|
+
allowShortCircuit: true;
|
|
200
|
+
allowTaggedTemplates: true;
|
|
201
|
+
allowTernary: true;
|
|
202
|
+
}];
|
|
203
|
+
'eslint/no-unused-labels': "error";
|
|
204
|
+
'eslint/no-unused-private-class-members': "error";
|
|
205
|
+
'eslint/no-unused-vars': ["error", {
|
|
206
|
+
args: "none";
|
|
207
|
+
caughtErrors: "none";
|
|
208
|
+
vars: "all";
|
|
209
|
+
argsIgnorePattern: string;
|
|
210
|
+
ignoreRestSiblings: true;
|
|
211
|
+
varsIgnorePattern: string;
|
|
212
|
+
}];
|
|
213
|
+
'eslint/no-use-before-define': undefined;
|
|
214
|
+
'eslint/no-useless-assignment': undefined;
|
|
215
|
+
'eslint/no-useless-backreference': "error";
|
|
216
|
+
'eslint/no-useless-call': "error";
|
|
217
|
+
'eslint/no-useless-catch': "error";
|
|
218
|
+
'eslint/no-useless-computed-key': "error";
|
|
219
|
+
'eslint/no-useless-concat': "error";
|
|
220
|
+
'eslint/no-useless-constructor': "error";
|
|
221
|
+
'eslint/no-useless-escape': "error";
|
|
222
|
+
'eslint/no-useless-rename': "error";
|
|
223
|
+
'eslint/no-useless-return': "error";
|
|
224
|
+
'eslint/no-var': "error";
|
|
225
|
+
'eslint/no-void': undefined;
|
|
226
|
+
'eslint/no-warning-comments': undefined;
|
|
227
|
+
'eslint/no-with': "error";
|
|
228
|
+
'eslint/object-shorthand': "error";
|
|
229
|
+
'eslint/operator-assignment': ["error", "always"];
|
|
230
|
+
'eslint/prefer-const': ["error", {
|
|
231
|
+
destructuring: "all";
|
|
232
|
+
ignoreReadBeforeAssign: true;
|
|
233
|
+
}];
|
|
234
|
+
'eslint/prefer-destructuring': ["error", {
|
|
235
|
+
array: true;
|
|
236
|
+
object: true;
|
|
237
|
+
}, {
|
|
238
|
+
enforceForRenamedProperties: boolean;
|
|
239
|
+
}];
|
|
240
|
+
'eslint/prefer-exponentiation-operator': "error";
|
|
241
|
+
'eslint/prefer-numeric-literals': "error";
|
|
242
|
+
'eslint/prefer-object-has-own': "error";
|
|
243
|
+
'eslint/prefer-object-spread': "error";
|
|
244
|
+
'eslint/prefer-promise-reject-errors': "error";
|
|
245
|
+
'eslint/prefer-regex-literals': undefined;
|
|
246
|
+
'eslint/prefer-rest-params': "error";
|
|
247
|
+
'eslint/prefer-spread': "error";
|
|
248
|
+
'eslint/prefer-template': "error";
|
|
249
|
+
'eslint/preserve-caught-error': "error";
|
|
250
|
+
'eslint/radix': "error";
|
|
251
|
+
'eslint/require-await': undefined;
|
|
252
|
+
'eslint/require-unicode-regexp': undefined;
|
|
253
|
+
'eslint/require-yield': "error";
|
|
254
|
+
'eslint/sort-imports': undefined;
|
|
255
|
+
'eslint/sort-keys': undefined;
|
|
256
|
+
'eslint/sort-vars': "error";
|
|
257
|
+
'eslint/symbol-description': "error";
|
|
258
|
+
'eslint/unicode-bom': ["error", "never"];
|
|
259
|
+
'eslint/use-isnan': ["error", {
|
|
260
|
+
enforceForIndexOf: true;
|
|
261
|
+
enforceForSwitchCase: true;
|
|
262
|
+
}];
|
|
263
|
+
'eslint/valid-typeof': ["error", {
|
|
264
|
+
requireStringLiterals: true;
|
|
265
|
+
}];
|
|
266
|
+
'eslint/vars-on-top': "error";
|
|
267
|
+
'eslint/yoda': ["error", "never"];
|
|
268
|
+
'eslint/no-implicit-globals': undefined;
|
|
269
|
+
'eslint/prefer-arrow-callback': undefined;
|
|
270
|
+
'eslint/id-match': undefined;
|
|
271
|
+
'eslint/no-implied-eval': undefined;
|
|
272
|
+
'eslint/prefer-named-capture-group': undefined;
|
|
273
|
+
'eslint/no-unreachable-loop': undefined;
|
|
274
|
+
};
|
|
275
|
+
}, {
|
|
276
|
+
readonly plugins: ["unicorn"];
|
|
277
|
+
readonly rules: {
|
|
278
|
+
'unicorn/catch-error-name': "error";
|
|
279
|
+
'unicorn/consistent-assert': "error";
|
|
280
|
+
'unicorn/consistent-date-clone': "error";
|
|
281
|
+
'unicorn/consistent-empty-array-spread': "error";
|
|
282
|
+
'unicorn/consistent-existence-index-check': "error";
|
|
283
|
+
'unicorn/consistent-function-scoping': "error";
|
|
284
|
+
'unicorn/consistent-template-literal-escape': "error";
|
|
285
|
+
'unicorn/custom-error-definition': undefined;
|
|
286
|
+
'unicorn/empty-brace-spaces': undefined;
|
|
287
|
+
'unicorn/error-message': "error";
|
|
288
|
+
'unicorn/escape-case': "error";
|
|
289
|
+
'unicorn/explicit-length-check': "error";
|
|
290
|
+
'unicorn/filename-case': undefined;
|
|
291
|
+
'unicorn/new-for-builtins': "error";
|
|
292
|
+
'unicorn/no-abusive-eslint-disable': "error";
|
|
293
|
+
'unicorn/no-accessor-recursion': "error";
|
|
294
|
+
'unicorn/no-anonymous-default-export': "error";
|
|
295
|
+
'unicorn/no-array-callback-reference': undefined;
|
|
296
|
+
'unicorn/no-array-for-each': "error";
|
|
297
|
+
'unicorn/no-array-method-this-argument': "error";
|
|
298
|
+
'unicorn/no-array-reduce': "error";
|
|
299
|
+
'unicorn/no-array-reverse': "error";
|
|
300
|
+
'unicorn/no-array-sort': "error";
|
|
301
|
+
'unicorn/no-await-expression-member': "error";
|
|
302
|
+
'unicorn/no-await-in-promise-methods': "error";
|
|
303
|
+
'unicorn/no-console-spaces': "error";
|
|
304
|
+
'unicorn/no-document-cookie': "error";
|
|
305
|
+
'unicorn/no-empty-file': "error";
|
|
306
|
+
'unicorn/no-hex-escape': "error";
|
|
307
|
+
'unicorn/no-immediate-mutation': "error";
|
|
308
|
+
'unicorn/no-instanceof-array': "error";
|
|
309
|
+
'unicorn/no-instanceof-builtins': "error";
|
|
310
|
+
'unicorn/no-invalid-fetch-options': "error";
|
|
311
|
+
'unicorn/no-invalid-remove-event-listener': "error";
|
|
312
|
+
'unicorn/no-length-as-slice-end': "error";
|
|
313
|
+
'unicorn/no-lonely-if': "error";
|
|
314
|
+
'unicorn/no-magic-array-flat-depth': "error";
|
|
315
|
+
'unicorn/no-negated-condition': "error";
|
|
316
|
+
'unicorn/no-negation-in-equality-check': "error";
|
|
317
|
+
'unicorn/no-nested-ternary': undefined;
|
|
318
|
+
'unicorn/no-new-array': "error";
|
|
319
|
+
'unicorn/no-new-buffer': "error";
|
|
320
|
+
'unicorn/no-null': "error";
|
|
321
|
+
'unicorn/no-object-as-default-parameter': "error";
|
|
322
|
+
'unicorn/no-process-exit': "error";
|
|
323
|
+
'unicorn/no-single-promise-in-promise-methods': "error";
|
|
324
|
+
'unicorn/no-static-only-class': "error";
|
|
325
|
+
'unicorn/no-thenable': "error";
|
|
326
|
+
'unicorn/no-this-assignment': "error";
|
|
327
|
+
'unicorn/no-typeof-undefined': "error";
|
|
328
|
+
'unicorn/no-unnecessary-array-flat-depth': "error";
|
|
329
|
+
'unicorn/no-unnecessary-array-splice-count': "error";
|
|
330
|
+
'unicorn/no-unnecessary-await': "error";
|
|
331
|
+
'unicorn/no-unnecessary-slice-end': "error";
|
|
332
|
+
'unicorn/no-unreadable-array-destructuring': "error";
|
|
333
|
+
'unicorn/no-unreadable-iife': "error";
|
|
334
|
+
'unicorn/no-useless-collection-argument': "error";
|
|
335
|
+
'unicorn/no-useless-error-capture-stack-trace': "error";
|
|
336
|
+
'unicorn/no-useless-fallback-in-spread': "error";
|
|
337
|
+
'unicorn/no-useless-iterator-to-array': "error";
|
|
338
|
+
'unicorn/no-useless-length-check': "error";
|
|
339
|
+
'unicorn/no-useless-promise-resolve-reject': "error";
|
|
340
|
+
'unicorn/no-useless-spread': "error";
|
|
341
|
+
'unicorn/no-useless-switch-case': "error";
|
|
342
|
+
'unicorn/no-useless-undefined': ["error", {
|
|
343
|
+
checkArguments: false;
|
|
344
|
+
checkArrowFunctionBody: false;
|
|
345
|
+
}];
|
|
346
|
+
'unicorn/no-zero-fractions': "error";
|
|
347
|
+
'unicorn/number-literal-case': "error";
|
|
348
|
+
'unicorn/numeric-separators-style': "error";
|
|
349
|
+
'unicorn/prefer-add-event-listener': "error";
|
|
350
|
+
'unicorn/prefer-array-find': "error";
|
|
351
|
+
'unicorn/prefer-array-flat': "error";
|
|
352
|
+
'unicorn/prefer-array-flat-map': "error";
|
|
353
|
+
'unicorn/prefer-array-index-of': "error";
|
|
354
|
+
'unicorn/prefer-array-some': "error";
|
|
355
|
+
'unicorn/prefer-at': ["error", {
|
|
356
|
+
checkAllIndexAccess: false;
|
|
357
|
+
}];
|
|
358
|
+
'unicorn/prefer-bigint-literals': "error";
|
|
359
|
+
'unicorn/prefer-blob-reading-methods': "error";
|
|
360
|
+
'unicorn/prefer-class-fields': "error";
|
|
361
|
+
'unicorn/prefer-classlist-toggle': "error";
|
|
362
|
+
'unicorn/prefer-code-point': "error";
|
|
363
|
+
'unicorn/prefer-date-now': "error";
|
|
364
|
+
'unicorn/prefer-default-parameters': "error";
|
|
365
|
+
'unicorn/prefer-dom-node-append': "error";
|
|
366
|
+
'unicorn/prefer-dom-node-dataset': "error";
|
|
367
|
+
'unicorn/prefer-dom-node-remove': "error";
|
|
368
|
+
'unicorn/prefer-dom-node-text-content': "error";
|
|
369
|
+
'unicorn/prefer-event-target': "error";
|
|
370
|
+
'unicorn/prefer-global-this': "error";
|
|
371
|
+
'unicorn/prefer-import-meta-properties': undefined;
|
|
372
|
+
'unicorn/prefer-includes': "error";
|
|
373
|
+
'unicorn/prefer-keyboard-event-key': "error";
|
|
374
|
+
'unicorn/prefer-logical-operator-over-ternary': "error";
|
|
375
|
+
'unicorn/prefer-math-min-max': "error";
|
|
376
|
+
'unicorn/prefer-math-trunc': "error";
|
|
377
|
+
'unicorn/prefer-modern-dom-apis': "error";
|
|
378
|
+
'unicorn/prefer-modern-math-apis': "error";
|
|
379
|
+
'unicorn/prefer-module': undefined;
|
|
380
|
+
'unicorn/prefer-native-coercion-functions': "error";
|
|
381
|
+
'unicorn/prefer-negative-index': "error";
|
|
382
|
+
'unicorn/prefer-node-protocol': "error";
|
|
383
|
+
'unicorn/prefer-number-properties': "error";
|
|
384
|
+
'unicorn/prefer-object-from-entries': ["error", {
|
|
385
|
+
functions: never[];
|
|
386
|
+
}];
|
|
387
|
+
'unicorn/prefer-optional-catch-binding': "error";
|
|
388
|
+
'unicorn/prefer-prototype-methods': "error";
|
|
389
|
+
'unicorn/prefer-query-selector': "error";
|
|
390
|
+
'unicorn/prefer-reflect-apply': "error";
|
|
391
|
+
'unicorn/prefer-regexp-test': "error";
|
|
392
|
+
'unicorn/prefer-response-static-json': "error";
|
|
393
|
+
'unicorn/prefer-set-has': "error";
|
|
394
|
+
'unicorn/prefer-set-size': "error";
|
|
395
|
+
'unicorn/prefer-spread': "error";
|
|
396
|
+
'unicorn/prefer-string-raw': "error";
|
|
397
|
+
'unicorn/prefer-string-replace-all': "error";
|
|
398
|
+
'unicorn/prefer-string-slice': "error";
|
|
399
|
+
'unicorn/prefer-string-starts-ends-with': "error";
|
|
400
|
+
'unicorn/prefer-string-trim-start-end': "error";
|
|
401
|
+
'unicorn/prefer-structured-clone': ["error", {
|
|
402
|
+
functions: never[];
|
|
403
|
+
}];
|
|
404
|
+
'unicorn/prefer-ternary': ["error", "only-single-line"];
|
|
405
|
+
'unicorn/prefer-top-level-await': undefined;
|
|
406
|
+
'unicorn/prefer-type-error': "error";
|
|
407
|
+
'unicorn/relative-url-style': "error";
|
|
408
|
+
'unicorn/require-array-join-separator': "error";
|
|
409
|
+
'unicorn/require-module-attributes': "error";
|
|
410
|
+
'unicorn/require-module-specifiers': "error";
|
|
411
|
+
'unicorn/require-number-to-fixed-digits-argument': "error";
|
|
412
|
+
'unicorn/require-post-message-target-origin': undefined;
|
|
413
|
+
'unicorn/switch-case-braces': ["error", "always"];
|
|
414
|
+
'unicorn/switch-case-break-position': "error";
|
|
415
|
+
'unicorn/text-encoding-identifier-case': "error";
|
|
416
|
+
'unicorn/throw-new-error': "off";
|
|
417
|
+
'unicorn/import-style': undefined;
|
|
418
|
+
'unicorn/max-nested-calls': undefined;
|
|
419
|
+
'unicorn/no-array-fill-with-reference-type': undefined;
|
|
420
|
+
'unicorn/prefer-export-from': undefined;
|
|
421
|
+
'unicorn/prefer-number-coercion': undefined;
|
|
422
|
+
'unicorn/prefer-single-call': undefined;
|
|
423
|
+
'unicorn/explicit-timer-delay': undefined;
|
|
424
|
+
'unicorn/no-confusing-array-with': undefined;
|
|
425
|
+
};
|
|
426
|
+
}, {
|
|
427
|
+
readonly plugins: ["import"];
|
|
428
|
+
readonly rules: {
|
|
429
|
+
'import/consistent-type-specifier-style': undefined;
|
|
430
|
+
'import/default': "error";
|
|
431
|
+
'import/export': "error";
|
|
432
|
+
'import/exports-last': undefined;
|
|
433
|
+
'import/extensions': undefined;
|
|
434
|
+
'import/first': ["error", "disable-absolute-first"];
|
|
435
|
+
'import/group-exports': undefined;
|
|
436
|
+
'import/max-dependencies': undefined;
|
|
437
|
+
'import/named': undefined;
|
|
438
|
+
'import/namespace': "error";
|
|
439
|
+
'import/no-absolute-path': "error";
|
|
440
|
+
'import/no-amd': "error";
|
|
441
|
+
'import/no-anonymous-default-export': "error";
|
|
442
|
+
'import/no-commonjs': undefined;
|
|
443
|
+
'import/no-cycle': "error";
|
|
444
|
+
'import/no-default-export': undefined;
|
|
445
|
+
'import/no-duplicates': "error";
|
|
446
|
+
'import/no-dynamic-require': "error";
|
|
447
|
+
'import/no-empty-named-blocks': "error";
|
|
448
|
+
'import/no-mutable-exports': undefined;
|
|
449
|
+
'import/no-named-as-default': "error";
|
|
450
|
+
'import/no-named-as-default-member': "error";
|
|
451
|
+
'import/no-named-default': "error";
|
|
452
|
+
'import/no-named-export': undefined;
|
|
453
|
+
'import/no-namespace': undefined;
|
|
454
|
+
'import/no-nodejs-modules': undefined;
|
|
455
|
+
'import/no-relative-parent-imports': undefined;
|
|
456
|
+
'import/no-self-import': "error";
|
|
457
|
+
'import/no-unassigned-import': undefined;
|
|
458
|
+
'import/no-webpack-loader-syntax': "error";
|
|
459
|
+
'import/prefer-default-export': undefined;
|
|
460
|
+
'import/unambiguous': undefined;
|
|
461
|
+
'import/newline-after-import': undefined;
|
|
462
|
+
};
|
|
463
|
+
}, {
|
|
464
|
+
readonly plugins: ["node"];
|
|
465
|
+
readonly rules: {
|
|
466
|
+
'node/handle-callback-err': "error";
|
|
467
|
+
'node/no-exports-assign': "error";
|
|
468
|
+
'node/no-new-require': "error";
|
|
469
|
+
'node/no-path-concat': "error";
|
|
470
|
+
'node/callback-return': undefined;
|
|
471
|
+
'node/global-require': undefined;
|
|
472
|
+
'node/no-mixed-requires': undefined;
|
|
473
|
+
'node/no-process-env': undefined;
|
|
474
|
+
'node/no-sync': undefined;
|
|
475
|
+
'node/no-top-level-await': undefined;
|
|
476
|
+
};
|
|
477
|
+
}, {
|
|
478
|
+
readonly plugins: ["oxc"];
|
|
479
|
+
readonly rules: {
|
|
480
|
+
'oxc/approx-constant': "error";
|
|
481
|
+
'oxc/bad-array-method-on-arguments': "error";
|
|
482
|
+
'oxc/bad-bitwise-operator': "error";
|
|
483
|
+
'oxc/bad-char-at-comparison': "error";
|
|
484
|
+
'oxc/bad-comparison-sequence': "error";
|
|
485
|
+
'oxc/bad-min-max-func': "error";
|
|
486
|
+
'oxc/bad-object-literal-comparison': "error";
|
|
487
|
+
'oxc/bad-replace-all-arg': "error";
|
|
488
|
+
'oxc/branches-sharing-code': "error";
|
|
489
|
+
'oxc/const-comparisons': "error";
|
|
490
|
+
'oxc/double-comparisons': "error";
|
|
491
|
+
'oxc/erasing-op': "error";
|
|
492
|
+
'oxc/misrefactored-assign-op': "error";
|
|
493
|
+
'oxc/missing-throw': "error";
|
|
494
|
+
'oxc/no-accumulating-spread': "error";
|
|
495
|
+
'oxc/no-async-await': undefined;
|
|
496
|
+
'oxc/no-async-endpoint-handlers': undefined;
|
|
497
|
+
'oxc/no-barrel-file': ["error", {
|
|
498
|
+
threshold: number;
|
|
499
|
+
}];
|
|
500
|
+
'oxc/no-const-enum': "error";
|
|
501
|
+
'oxc/no-map-spread': undefined;
|
|
502
|
+
'oxc/no-optional-chaining': undefined;
|
|
503
|
+
'oxc/no-rest-spread-properties': undefined;
|
|
504
|
+
'oxc/no-this-in-exported-function': "error";
|
|
505
|
+
'oxc/number-arg-out-of-range': "error";
|
|
506
|
+
'oxc/only-used-in-recursion': "error";
|
|
507
|
+
'oxc/uninvoked-array-callback': "error";
|
|
508
|
+
};
|
|
509
|
+
}, {
|
|
510
|
+
readonly plugins: ["jsdoc"];
|
|
511
|
+
readonly rules: {
|
|
512
|
+
'jsdoc/check-access': "error";
|
|
513
|
+
'jsdoc/check-property-names': "error";
|
|
514
|
+
'jsdoc/check-tag-names': ["error", {
|
|
515
|
+
typed: true;
|
|
516
|
+
}];
|
|
517
|
+
'jsdoc/empty-tags': "error";
|
|
518
|
+
'jsdoc/implements-on-classes': "error";
|
|
519
|
+
'jsdoc/no-defaults': "error";
|
|
520
|
+
'jsdoc/require-param': "error";
|
|
521
|
+
'jsdoc/require-param-name': "error";
|
|
522
|
+
'jsdoc/require-property': "error";
|
|
523
|
+
'jsdoc/require-property-description': "error";
|
|
524
|
+
'jsdoc/require-property-name': "error";
|
|
525
|
+
'jsdoc/require-returns-description': "error";
|
|
526
|
+
'jsdoc/require-yields': "error";
|
|
527
|
+
'jsdoc/require-param-description': undefined;
|
|
528
|
+
'jsdoc/require-param-type': undefined;
|
|
529
|
+
'jsdoc/require-property-type': undefined;
|
|
530
|
+
'jsdoc/require-returns': undefined;
|
|
531
|
+
'jsdoc/require-returns-type': undefined;
|
|
532
|
+
'jsdoc/require-throws-description': undefined;
|
|
533
|
+
'jsdoc/require-throws-type': undefined;
|
|
534
|
+
'jsdoc/require-yields-description': undefined;
|
|
535
|
+
'jsdoc/require-yields-type': undefined;
|
|
536
|
+
};
|
|
537
|
+
}, {
|
|
538
|
+
readonly jsPlugins: [{
|
|
539
|
+
readonly name: "zod";
|
|
540
|
+
readonly specifier: string;
|
|
541
|
+
}];
|
|
542
|
+
readonly rules: {
|
|
543
|
+
'zod/array-style': ["error", {
|
|
544
|
+
style: "function";
|
|
545
|
+
}];
|
|
546
|
+
'zod/consistent-import': ["error", {
|
|
547
|
+
syntax: "namespace";
|
|
548
|
+
}];
|
|
549
|
+
'zod/consistent-schema-output-type-style': ["error", {
|
|
550
|
+
style: "infer";
|
|
551
|
+
}];
|
|
552
|
+
'zod/consistent-schema-var-name': ["warn", {
|
|
553
|
+
after: string;
|
|
554
|
+
}];
|
|
555
|
+
'zod/no-any-schema': "error";
|
|
556
|
+
'zod/no-coerce-boolean': "error";
|
|
557
|
+
'zod/no-conflicting-checks': ["error", {
|
|
558
|
+
checkConfusingCases: true;
|
|
559
|
+
checkImpossibleCases: true;
|
|
560
|
+
checkInapplicableChecks: true;
|
|
561
|
+
}];
|
|
562
|
+
'zod/no-duplicate-schema-methods': "error";
|
|
563
|
+
'zod/no-empty-custom-schema': "error";
|
|
564
|
+
'zod/no-native-enum': "error";
|
|
565
|
+
'zod/no-number-schema-with-finite': "error";
|
|
566
|
+
'zod/no-number-schema-with-int': "error";
|
|
567
|
+
'zod/no-number-schema-with-is-finite': "error";
|
|
568
|
+
'zod/no-number-schema-with-is-int': "error";
|
|
569
|
+
'zod/no-number-schema-with-safe': "error";
|
|
570
|
+
'zod/no-number-schema-with-step': "error";
|
|
571
|
+
'zod/no-optional-and-default-together': ["warn", {
|
|
572
|
+
preferredMethod: "default";
|
|
573
|
+
}];
|
|
574
|
+
'zod/no-promise-schema': "error";
|
|
575
|
+
'zod/no-schema-with-is-nullable': "error";
|
|
576
|
+
'zod/no-schema-with-is-optional': "error";
|
|
577
|
+
'zod/no-throw-in-refine': "error";
|
|
578
|
+
'zod/no-transform-in-record-key': "error";
|
|
579
|
+
'zod/no-unnecessary-readonly': "error";
|
|
580
|
+
'zod/prefer-enum-over-literal-union': "error";
|
|
581
|
+
'zod/prefer-loose-object': "error";
|
|
582
|
+
'zod/prefer-meta': "error";
|
|
583
|
+
'zod/prefer-meta-last': "error";
|
|
584
|
+
'zod/prefer-strict-object': "error";
|
|
585
|
+
'zod/prefer-string-schema-with-trim': "error";
|
|
586
|
+
'zod/prefer-top-level-string-formats': "error";
|
|
587
|
+
'zod/prefer-trim-before-string-length-checks': "error";
|
|
588
|
+
'zod/prefer-tuple-over-array-length': "error";
|
|
589
|
+
'zod/require-brand-type-parameter': "error";
|
|
590
|
+
'zod/schema-error-property-style': ["error", {
|
|
591
|
+
selector: string;
|
|
592
|
+
example: string;
|
|
593
|
+
}];
|
|
594
|
+
'zod/consistent-import-source': undefined;
|
|
595
|
+
'zod/consistent-object-schema-type': undefined;
|
|
596
|
+
'zod/no-string-schema-with-uuid': undefined;
|
|
597
|
+
'zod/no-unknown-schema': undefined;
|
|
598
|
+
'zod/require-error-message': undefined;
|
|
599
|
+
};
|
|
600
|
+
}];
|
|
601
|
+
readonly ignorePatterns: string[];
|
|
602
|
+
};
|
|
4
603
|
//#endregion
|
|
5
604
|
export { baseConfig };
|