@ziloen/eslint-config 0.1.63 → 0.1.65

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.d.ts CHANGED
@@ -2,7 +2,6 @@ import { TSESLint } from "@typescript-eslint/utils";
2
2
 
3
3
  //#region src/types.d.ts
4
4
  type FlatESLintConfig = TSESLint.FlatConfig.Config;
5
-
6
5
  //#endregion
7
6
  //#region src/configs/format.d.ts
8
7
  declare function format({
@@ -12,18 +11,15 @@ declare function format({
12
11
  project?: string | string[];
13
12
  tsconfigRootDir?: string;
14
13
  }): FlatESLintConfig[];
15
-
16
14
  //#endregion
17
15
  //#region src/configs/javascript.d.ts
18
16
  declare const javascript: FlatESLintConfig[];
19
-
20
17
  //#endregion
21
18
  //#region src/configs/react.d.ts
22
19
  declare function react(options?: {
23
20
  project?: string | string[];
24
21
  tsconfigRootDir?: string;
25
22
  }): FlatESLintConfig[];
26
-
27
23
  //#endregion
28
24
  //#region src/configs/typescript.d.ts
29
25
  declare function typescript({
@@ -33,7 +29,6 @@ declare function typescript({
33
29
  project?: string | string[];
34
30
  tsconfigRootDir?: string;
35
31
  }): FlatESLintConfig[];
36
-
37
32
  //#endregion
38
33
  //#region src/configs/vue.d.ts
39
34
  declare function vue({
@@ -43,6 +38,5 @@ declare function vue({
43
38
  project?: string | string[];
44
39
  tsconfigRootDir?: string;
45
40
  }): FlatESLintConfig[];
46
-
47
41
  //#endregion
48
42
  export { FlatESLintConfig, format, javascript, react, typescript, vue };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{cwd as e}from"node:process";import t from"typescript-eslint";import n from"@stylistic/eslint-plugin";import r from"eslint-plugin-react";import i from"eslint-plugin-unicorn";import a from"eslint-plugin-vue";import o from"eslint-plugin-ziloen";import s from"vue-eslint-parser";import c from"@eslint/js";function l({project:r,tsconfigRootDir:i=e()}={}){return[{name:`format/general`,plugins:{"@typescript-eslint":t.plugin,ziloen:o,style:n},languageOptions:{parser:t.parser,parserOptions:{project:r||void 0,projectService:r?void 0:!0,tsconfigRootDir:i,sourceType:`module`,extraFileExtensions:[`.vue`]}},rules:{"style/array-bracket-newline":[`warn`,`consistent`],"style/array-bracket-spacing":[`warn`,`never`],"style/array-element-newline":[`warn`,`consistent`],"style/arrow-parens":[`warn`,`always`],"style/arrow-spacing":`warn`,"style/computed-property-spacing":`warn`,"style/comma-style":`warn`,"style/dot-location":[`warn`,`property`],"style/function-call-argument-newline":[`warn`,`consistent`],"style/generator-star-spacing":[`warn`,{before:!1,after:!0,named:`after`,anonymous:`after`,method:`before`}],"style/max-len":[`warn`,{code:120,tabWidth:2,ignoreComments:!0,ignoreTrailingComments:!0,ignoreStrings:!0,ignoreTemplateLiterals:!0,ignoreRegExpLiterals:!0}],"style/new-parens":`off`,"style/newline-per-chained-call":[`warn`,{ignoreChainWithDepth:2}],"style/no-mixed-spaces-and-tabs":`warn`,"style/no-multi-spaces":`warn`,"style/no-multiple-empty-lines":[`warn`,{max:3}],"style/no-trailing-spaces":[`warn`,{ignoreComments:!0}],"no-useless-rename":`warn`,"style/no-whitespace-before-property":`warn`,"style/object-curly-newline":[`warn`,{consistent:!0}],"object-shorthand":[`warn`,`always`,{avoidQuotes:!0}],"prefer-template":`warn`,"style/quote-props":[`warn`,`as-needed`],"style/rest-spread-spacing":[`warn`,`never`],"style/semi-spacing":[`warn`,{before:!1,after:!0}],"style/semi-style":`warn`,"sort-imports":[`off`,{ignoreDeclarationSort:!0}],"style/space-in-parens":`warn`,"style/space-unary-ops":[`warn`,{words:!0,nonwords:!1}],"style/switch-colon-spacing":`warn`,"style/template-curly-spacing":`warn`,"style/yield-star-spacing":[`warn`,`after`],"style/block-spacing":`warn`,"style/brace-style":[`warn`,`1tbs`,{allowSingleLine:!0}],"style/comma-dangle":[`warn`,`only-multiline`],"style/comma-spacing":`warn`,"style/func-call-spacing":`warn`,"style/indent":[`warn`,2,{VariableDeclarator:`first`,SwitchCase:1,outerIIFEBody:1,MemberExpression:1,flatTernaryExpressions:!1,offsetTernaryExpressions:!0,ignoredNodes:[]}],"style/indent-binary-ops":[`warn`,2],"style/key-spacing":[`warn`],"style/keyword-spacing":`warn`,"style/no-extra-parens":[`warn`,`all`,{allowParensAfterCommentPattern:`@type`,ignoreJSX:`all`,conditionalAssign:!1,returnAssign:!1,ternaryOperandBinaryExpressions:!1,nestedBinaryExpressions:!1}],"style/no-extra-semi":[`warn`],"style/object-curly-spacing":[`warn`,`always`],"style/quotes":[`warn`,`single`,{avoidEscape:!0,allowTemplateLiterals:!0}],"style/semi":[`warn`,`never`],"style/space-before-blocks":`warn`,"style/space-before-function-paren":[`warn`,{anonymous:`always`,named:`never`,asyncArrow:`always`}],"style/space-infix-ops":`warn`,"style/member-delimiter-style":[`warn`,{multiline:{delimiter:`none`,requireLast:!1},singleline:{requireLast:!1},multilineDetection:`brackets`}],"@typescript-eslint/no-unnecessary-qualifier":`warn`,"style/type-annotation-spacing":[`warn`],"ziloen/generic-spacing":`warn`}},{name:`format/jsx`,files:[`**/*.jsx`,`**/*.tsx`],plugins:{style:n},rules:{"style/jsx-tag-spacing":[`warn`,{closingSlash:`never`,beforeSelfClosing:`proportional-always`,afterOpening:`never`,beforeClosing:`never`}],"style/jsx-curly-spacing":[`warn`],"style/jsx-indent-props":[`warn`,{indentMode:2}],"style/jsx-sort-props":[`warn`,{noSortAlphabetically:!1,reservedFirst:!0}]}}]}const u=[{name:`javascript/ignore`,ignores:[`**/CHANGELOG*.md`,`**/*.min.*`,`**/LICENSE*`,`**/auto-import?(s).d.ts`,`**/package-lock.json`,`**/pnpm-lock.yaml`,`**/yarn.lock`,`**/bun.lockb`,`**/node_modules`,`**/dist`,`**/.nuxt`,`**/.next`,`**/.vercel`,`**/.idea`,`*.html`,`**/test-results`,`**/playwright-report`,`**/blob-report`,`**/playwright/.cache`]},c.configs.recommended,{name:`javascript/overrides`,rules:{"array-callback-return":[`error`,{allowImplicit:!0}],"block-scoped-var":`error`,"constructor-super":`error`,eqeqeq:[`error`,`smart`],"logical-assignment-operators":[`warn`],"max-nested-callbacks":[`warn`,5],"no-await-in-loop":`warn`,"no-async-promise-executor":`off`,"no-caller":`error`,"no-constant-binary-expression":`error`,"no-console":[`off`,{allow:[`warn`,`error`]}],"no-constructor-return":`warn`,"no-empty":`off`,"no-eval":`warn`,"no-extra-semi":`off`,"no-fallthrough":[`error`,{allowEmptyCase:!0}],"no-new-native-nonconstructor":`off`,"no-new-symbol":`off`,"no-promise-executor-return":`off`,"no-restricted-exports":[`off`,{restrictDefaultExports:{direct:!0}}],"no-restricted-globals":[`error`,`event`,`name`,`length`,`status`],"no-return-await":`off`,"no-undef":`off`,"no-unused-vars":`off`,"no-var":`error`,"prefer-const":[`off`,{destructuring:`all`,ignoreReadBeforeAssign:!1}],"prefer-exponentiation-operator":`warn`,"prefer-object-has-own":`warn`,"prefer-promise-reject-errors":[`warn`,{allowEmptyReject:!0}],"require-atomic-updates":`off`}},{name:`unicorn/overrides`,plugins:{unicorn:i},rules:{"unicorn/better-regex":[`warn`,{sortCharacterClasses:!1}],"unicorn/error-message":`warn`,"unicorn/no-document-cookie":`warn`,"unicorn/no-instanceof-builtins":`warn`,"unicorn/no-invalid-remove-event-listener":`error`,"unicorn/no-negation-in-equality-check":`error`,"unicorn/no-new-array":`error`,"unicorn/no-new-buffer":`error`,"unicorn/no-thenable":`error`,"unicorn/no-typeof-undefined":[`warn`,{checkGlobalVariables:!1}],"unicorn/no-unnecessary-await":`off`,"unicorn/no-unreadable-array-destructuring":`error`,"unicorn/no-useless-fallback-in-spread":`warn`,"unicorn/no-useless-promise-resolve-reject":`warn`,"unicorn/no-useless-spread":`warn`,"unicorn/no-useless-undefined":[`off`,{checkArguments:!1,checkArrowFunctionBody:!1}],"unicorn/no-zero-fractions":`warn`,"unicorn/number-literal-case":`warn`,"unicorn/prefer-array-flat":`warn`,"unicorn/prefer-array-flat-map":`warn`,"unicorn/prefer-array-index-of":`warn`,"unicorn/prefer-array-some":`warn`,"unicorn/prefer-at":`warn`,"unicorn/prefer-blob-reading-methods":`warn`,"unicorn/prefer-code-point":`warn`,"unicorn/prefer-dom-node-append":`warn`,"unicorn/prefer-dom-node-dataset":`off`,"unicorn/prefer-dom-node-remove":`warn`,"unicorn/prefer-dom-node-text-content":`warn`,"unicorn/prefer-export-from":[`warn`,{ignoreUsedVariables:!0}],"unicorn/prefer-includes":`warn`,"unicorn/prefer-keyboard-event-key":`warn`,"unicorn/prefer-modern-dom-apis":`warn`,"unicorn/prefer-modern-math-apis":`warn`,"unicorn/prefer-negative-index":`warn`,"unicorn/prefer-node-protocol":`warn`,"unicorn/prefer-object-from-entries":`warn`,"unicorn/prefer-optional-catch-binding":`warn`,"unicorn/prefer-prototype-methods":`warn`,"unicorn/prefer-query-selector":`off`,"unicorn/prefer-set-size":`warn`,"unicorn/prefer-string-raw":`warn`,"unicorn/prefer-string-slice":`warn`,"unicorn/throw-new-error":`warn`}}];let d=!1;function f({project:n,tsconfigRootDir:r=e()}={}){return d?[]:(d=!0,[...u,...t.config(...t.configs.strictTypeChecked,{name:`typescript/type-checked/project`,languageOptions:{parserOptions:{project:n||void 0,projectService:n?void 0:{allowDefaultProject:[`./*.js`],defaultProject:`./tsconfig.json`},tsconfigRootDir:r}}},{files:[`**/*.js`,`**/*.jsx`],extends:[t.configs.disableTypeChecked]},{name:`typescript/off`,rules:{"@typescript-eslint/consistent-type-definitions":`off`,"default-param-last":`off`,"@typescript-eslint/default-param-last":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`off`,"no-dupe-class-members":`off`,"@typescript-eslint/no-dupe-class-members":`off`,"@typescript-eslint/no-empty-function":`off`,"@typescript-eslint/no-non-null-assertion":`off`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`off`,"no-undef":`off`,"require-await":`off`,"@typescript-eslint/require-await":`off`}}),{name:`typescript/overrides`,files:[`**/*.ts`,`**/*.tsx`,`**/*.mts`,`**/*.cts`,`**/*.vue`],languageOptions:{parser:t.parser,sourceType:`module`,parserOptions:{ecmaVersion:`latest`,jsDocParsingMode:`none`,extraFileExtensions:[`.vue`],project:n||void 0,projectService:n?void 0:{allowDefaultProject:[`./*.js`],defaultProject:`./tsconfig.json`},tsconfigRootDir:r}},rules:{"@typescript-eslint/consistent-type-imports":`warn`,"@typescript-eslint/consistent-type-definitions":`off`,"default-param-last":`off`,"@typescript-eslint/default-param-last":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`off`,"@typescript-eslint/no-confusing-void-expression":[`off`,{ignoreArrowShorthand:!0}],"@typescript-eslint/no-deprecated":`off`,"no-dupe-class-members":`off`,"@typescript-eslint/no-dupe-class-members":`off`,"@typescript-eslint/no-empty-function":`off`,"@typescript-eslint/no-explicit-any":`off`,"@typescript-eslint/no-floating-promises":`off`,"@typescript-eslint/no-invalid-void-type":`off`,"no-loop-func":`off`,"@typescript-eslint/no-loop-func":`error`,"@typescript-eslint/no-misused-promises":[`error`,{checksVoidReturn:!1}],"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-non-null-assertion":`off`,"no-redeclare":`off`,"@typescript-eslint/no-redeclare":[`error`],"@typescript-eslint/no-redundant-type-constituents":`warn`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":[`error`,{allowThrowingAny:!1,allowThrowingUnknown:!1}],"no-undef":`off`,"@typescript-eslint/no-unnecessary-condition":`off`,"@typescript-eslint/no-unnecessary-type-parameters":`off`,"@typescript-eslint/no-unnecessary-type-assertion":`off`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":[`warn`,{allowShortCircuit:!0,enforceForJSX:!0}],"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`off`,"@typescript-eslint/prefer-nullish-coalescing":[`warn`,{ignorePrimitives:{bigint:!0,boolean:!0,number:!0,string:!0}}],"@typescript-eslint/prefer-optional-chain":`off`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/promise-function-async":[`off`,{checkArrowFunctions:!1}],"@typescript-eslint/require-array-sort-compare":[`error`],"require-await":`off`,"@typescript-eslint/require-await":`off`,"@typescript-eslint/restrict-template-expressions":[`error`,{allowAny:!1,allowArray:!1,allowBoolean:!1,allowNullish:!1,allowNumber:!0,allowRegExp:!1}],"@typescript-eslint/unified-signatures":`off`}},{files:[`**/*.d.ts`],rules:{"@typescript-eslint/ban-types":`off`,"@typescript-eslint/no-invalid-void-type":`off`,"@typescript-eslint/consistent-type-imports":`off`,"@typescript-eslint/no-empty-object-type":`off`}}])}function p(e){return[...f(e),{name:`react/override`,files:[`**/*.jsx`,`**/*.tsx`],plugins:{react:r,ziloen:o},languageOptions:{parserOptions:{ecmaFeatures:{jsx:!0}}},settings:{react:{version:`18`}},rules:{"react/react-in-jsx-scope":`off`,"react/jsx-key":[`error`,{}],"react/jsx-no-undef":`off`,"react/jsx-fragments":[`warn`,`syntax`],"react/no-invalid-html-attribute":`warn`,"react/no-unknown-property":`warn`,"ziloen/jsx-strict-logical-expressions":`error`}}]}function m({project:n,tsconfigRootDir:r=e()}={}){return[...f({project:n,tsconfigRootDir:r}),...a.configs[`flat/essential`],{name:`vue/overrides`,files:[`**/*.vue`],languageOptions:{parser:s,parserOptions:{parser:t.parser,ecmaFeatures:{jsx:!0},ecmaVersion:`latest`,extraFileExtensions:[`.vue`],sourceType:`module`,project:n||void 0,projectService:n?void 0:!0,tsconfigRootDir:r}},processor:a.processors.vue,rules:{"vue/no-unused-vars":`off`,"vue/html-self-closing":`off`,"vue/max-attributes-per-line":`off`,"vue/multi-word-component-names":`off`,"vue/require-default-prop":`off`,"vue/require-prop-types":`off`,"vue/singleline-html-element-content-newline":`off`}}]}export{l as format,u as javascript,p as react,f as typescript,m as vue};
1
+ import e from"@stylistic/eslint-plugin";import t from"eslint-plugin-ziloen";import{cwd as n}from"node:process";import r from"typescript-eslint";import i from"@eslint/js";import*as a from"eslint-plugin-regexp";import o from"eslint-plugin-unicorn";import s from"eslint-plugin-react";import c from"eslint-plugin-vue";function l({project:i,tsconfigRootDir:a=n()}={}){return[{name:`format/general`,plugins:{"@typescript-eslint":r.plugin,ziloen:t,style:e},languageOptions:{parser:r.parser,parserOptions:{project:i||void 0,projectService:i?void 0:!0,tsconfigRootDir:a,sourceType:`module`,extraFileExtensions:[`.vue`]}},rules:{"style/array-bracket-newline":[`warn`,`consistent`],"style/array-bracket-spacing":[`warn`,`never`],"style/array-element-newline":[`warn`,`consistent`],"style/arrow-parens":[`warn`,`always`],"style/arrow-spacing":`warn`,"style/computed-property-spacing":`warn`,"style/comma-style":`warn`,"style/dot-location":[`warn`,`property`],"style/function-call-argument-newline":[`warn`,`consistent`],"style/generator-star-spacing":[`warn`,{before:!1,after:!0,named:`after`,anonymous:`after`,method:`before`}],"style/max-len":[`warn`,{code:120,tabWidth:2,ignoreComments:!0,ignoreTrailingComments:!0,ignoreStrings:!0,ignoreTemplateLiterals:!0,ignoreRegExpLiterals:!0}],"style/new-parens":`off`,"style/newline-per-chained-call":[`warn`,{ignoreChainWithDepth:2}],"style/no-mixed-spaces-and-tabs":`warn`,"style/no-multi-spaces":`warn`,"style/no-multiple-empty-lines":[`warn`,{max:3}],"style/no-trailing-spaces":[`warn`,{ignoreComments:!0}],"no-useless-rename":`warn`,"style/no-whitespace-before-property":`warn`,"style/object-curly-newline":[`warn`,{consistent:!0}],"object-shorthand":[`warn`,`always`,{avoidQuotes:!0}],"prefer-template":`warn`,"style/quote-props":[`warn`,`as-needed`],"style/rest-spread-spacing":[`warn`,`never`],"style/semi-spacing":[`warn`,{before:!1,after:!0}],"style/semi-style":`warn`,"sort-imports":[`off`,{ignoreDeclarationSort:!0}],"style/space-in-parens":`warn`,"style/space-unary-ops":[`warn`,{words:!0,nonwords:!1}],"style/switch-colon-spacing":`warn`,"style/template-curly-spacing":`warn`,"style/yield-star-spacing":[`warn`,`after`],"style/block-spacing":`warn`,"style/brace-style":[`warn`,`1tbs`,{allowSingleLine:!0}],"style/comma-dangle":[`warn`,`only-multiline`],"style/comma-spacing":`warn`,"style/function-call-spacing":`warn`,"style/indent":[`warn`,2,{VariableDeclarator:`first`,SwitchCase:1,outerIIFEBody:1,MemberExpression:1,flatTernaryExpressions:!1,offsetTernaryExpressions:!0,ignoredNodes:[]}],"style/indent-binary-ops":[`warn`,2],"style/key-spacing":[`warn`],"style/keyword-spacing":`warn`,"style/no-extra-parens":[`warn`,`all`,{allowParensAfterCommentPattern:`@type`,ignoreJSX:`all`,conditionalAssign:!1,returnAssign:!1,ternaryOperandBinaryExpressions:!1,nestedBinaryExpressions:!1}],"style/no-extra-semi":[`warn`],"style/object-curly-spacing":[`warn`,`always`],"style/quotes":[`warn`,`single`,{avoidEscape:!0,allowTemplateLiterals:!0}],"style/semi":[`warn`,`never`],"style/space-before-blocks":`warn`,"style/space-before-function-paren":[`warn`,{anonymous:`always`,named:`never`,asyncArrow:`always`}],"style/space-infix-ops":`warn`,"style/member-delimiter-style":[`warn`,{multiline:{delimiter:`none`,requireLast:!1},singleline:{requireLast:!1},multilineDetection:`brackets`}],"@typescript-eslint/no-unnecessary-qualifier":`warn`,"style/type-annotation-spacing":[`warn`],"ziloen/generic-spacing":`warn`}},{name:`format/jsx`,files:[`**/*.jsx`,`**/*.tsx`],plugins:{style:e},rules:{"style/jsx-tag-spacing":[`warn`,{closingSlash:`never`,beforeSelfClosing:`proportional-always`,afterOpening:`never`,beforeClosing:`never`}],"style/jsx-curly-spacing":[`warn`],"style/jsx-indent-props":[`warn`,{indentMode:2}],"style/jsx-sort-props":[`warn`,{noSortAlphabetically:!1,reservedFirst:!0}]}}]}const u=[{name:`javascript/ignore`,ignores:[`**/CHANGELOG*.md`,`**/*.min.*`,`**/LICENSE*`,`**/auto-import?(s).d.ts`,`**/package-lock.json`,`**/pnpm-lock.yaml`,`**/yarn.lock`,`**/bun.lockb`,`**/node_modules`,`**/dist`,`**/.nuxt`,`**/.next`,`**/.vercel`,`**/.idea`,`*.html`,`**/test-results`,`**/playwright-report`,`**/blob-report`,`**/playwright/.cache`]},i.configs.recommended,{name:`javascript/overrides`,rules:{"array-callback-return":[`error`,{allowImplicit:!0}],"block-scoped-var":`error`,"constructor-super":`error`,eqeqeq:[`error`,`smart`],"logical-assignment-operators":[`warn`],"max-nested-callbacks":[`warn`,5],"no-await-in-loop":`warn`,"no-async-promise-executor":`off`,"no-caller":`error`,"no-constant-binary-expression":`error`,"no-console":[`off`,{allow:[`warn`,`error`]}],"no-constructor-return":`warn`,"no-empty":`off`,"no-eval":`warn`,"no-extra-semi":`off`,"no-fallthrough":[`error`,{allowEmptyCase:!0}],"no-new-native-nonconstructor":`off`,"no-new-symbol":`off`,"no-promise-executor-return":`off`,"no-restricted-exports":[`off`,{restrictDefaultExports:{direct:!0}}],"no-restricted-globals":[`error`,`event`,`name`,`length`,`status`],"no-return-await":`off`,"no-undef":`off`,"no-unused-vars":`off`,"no-var":`error`,"prefer-const":[`off`,{destructuring:`all`,ignoreReadBeforeAssign:!1}],"prefer-exponentiation-operator":`warn`,"prefer-object-has-own":`warn`,"prefer-promise-reject-errors":[`warn`,{allowEmptyReject:!0}],"require-atomic-updates":`off`}},{name:`unicorn/overrides`,plugins:{unicorn:o,regexp:a},rules:{"regexp/no-unused-capturing-group":[`error`,{fixable:!1,allowNamed:!1}],"unicorn/better-regex":[`warn`,{sortCharacterClasses:!1}],"unicorn/error-message":`warn`,"unicorn/no-document-cookie":`warn`,"unicorn/no-instanceof-builtins":`warn`,"unicorn/no-invalid-remove-event-listener":`error`,"unicorn/no-negation-in-equality-check":`error`,"unicorn/no-new-array":`error`,"unicorn/no-new-buffer":`error`,"unicorn/no-thenable":`error`,"unicorn/no-typeof-undefined":[`warn`,{checkGlobalVariables:!1}],"unicorn/no-unnecessary-await":`off`,"unicorn/no-unreadable-array-destructuring":`error`,"unicorn/no-useless-fallback-in-spread":`warn`,"unicorn/no-useless-promise-resolve-reject":`warn`,"unicorn/no-useless-spread":`warn`,"unicorn/no-useless-undefined":[`off`,{checkArguments:!1,checkArrowFunctionBody:!1}],"unicorn/no-zero-fractions":`warn`,"unicorn/number-literal-case":`warn`,"unicorn/prefer-array-flat":`warn`,"unicorn/prefer-array-flat-map":`warn`,"unicorn/prefer-array-index-of":`warn`,"unicorn/prefer-array-some":`warn`,"unicorn/prefer-at":`warn`,"unicorn/prefer-blob-reading-methods":`warn`,"unicorn/prefer-code-point":`warn`,"unicorn/prefer-dom-node-append":`warn`,"unicorn/prefer-dom-node-dataset":`off`,"unicorn/prefer-dom-node-remove":`warn`,"unicorn/prefer-dom-node-text-content":`warn`,"unicorn/prefer-export-from":[`warn`,{ignoreUsedVariables:!0}],"unicorn/prefer-includes":`warn`,"unicorn/prefer-keyboard-event-key":`warn`,"unicorn/prefer-modern-dom-apis":`warn`,"unicorn/prefer-modern-math-apis":`warn`,"unicorn/prefer-negative-index":`warn`,"unicorn/prefer-node-protocol":`warn`,"unicorn/prefer-object-from-entries":`warn`,"unicorn/prefer-optional-catch-binding":`warn`,"unicorn/prefer-prototype-methods":`warn`,"unicorn/prefer-query-selector":`off`,"unicorn/prefer-set-size":`warn`,"unicorn/prefer-string-raw":`warn`,"unicorn/prefer-string-slice":`warn`,"unicorn/throw-new-error":`warn`}}];let d=!1;function f({project:e,tsconfigRootDir:t=n()}={}){return d?[]:(d=!0,[...u,...r.config(...r.configs.strictTypeChecked,{name:`typescript/type-checked/project`,languageOptions:{parserOptions:{project:e||void 0,projectService:e?void 0:{allowDefaultProject:[`./*.js`],defaultProject:`./tsconfig.json`},tsconfigRootDir:t}}},{name:`typescript/disable-js-type-check`,files:[`**/*.js`,`**/*.jsx`],extends:[r.configs.disableTypeChecked]},{name:`typescript/off`,rules:{"@typescript-eslint/consistent-type-definitions":`off`,"default-param-last":`off`,"@typescript-eslint/default-param-last":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`off`,"no-dupe-class-members":`off`,"@typescript-eslint/no-dupe-class-members":`off`,"@typescript-eslint/no-empty-function":`off`,"@typescript-eslint/no-non-null-assertion":`off`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`off`,"no-undef":`off`,"require-await":`off`,"@typescript-eslint/require-await":`off`}}),{name:`typescript/overrides`,files:[`**/*.ts`,`**/*.tsx`,`**/*.mts`,`**/*.cts`,`**/*.vue`],languageOptions:{parser:r.parser,sourceType:`module`,parserOptions:{ecmaVersion:`latest`,jsDocParsingMode:`none`,extraFileExtensions:[`.vue`],project:e||void 0,projectService:e?void 0:{allowDefaultProject:[`./*.js`],defaultProject:`./tsconfig.json`},tsconfigRootDir:t}},rules:{"@typescript-eslint/consistent-type-imports":`warn`,"@typescript-eslint/consistent-type-definitions":`off`,"default-param-last":`off`,"@typescript-eslint/default-param-last":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`off`,"@typescript-eslint/no-confusing-void-expression":[`off`,{ignoreArrowShorthand:!0}],"@typescript-eslint/no-deprecated":`off`,"no-dupe-class-members":`off`,"@typescript-eslint/no-dupe-class-members":`off`,"@typescript-eslint/no-empty-function":`off`,"@typescript-eslint/no-explicit-any":`off`,"@typescript-eslint/no-floating-promises":`off`,"@typescript-eslint/no-invalid-void-type":`off`,"no-loop-func":`off`,"@typescript-eslint/no-loop-func":`error`,"@typescript-eslint/no-misused-promises":[`error`,{checksVoidReturn:!1}],"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-non-null-assertion":`off`,"no-redeclare":`off`,"@typescript-eslint/no-redeclare":[`error`],"@typescript-eslint/no-redundant-type-constituents":`warn`,"no-restricted-syntax":[`warn`,{selector:`:matches(PropertyDefinition, MethodDefinition)[accessibility="private"]`,message:"Use `#private` instead "},{selector:`:matches(PropertyDefinition, MethodDefinition)[accessibility="public"]`,message:"Unnecessary `public` access modifier, just remove it"}],"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":[`error`,{allowThrowingAny:!1,allowThrowingUnknown:!1}],"no-undef":`off`,"@typescript-eslint/no-unnecessary-condition":`off`,"@typescript-eslint/no-unnecessary-type-parameters":`off`,"@typescript-eslint/no-unnecessary-type-assertion":`off`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":[`warn`,{allowShortCircuit:!0,enforceForJSX:!0}],"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`off`,"@typescript-eslint/prefer-nullish-coalescing":[`warn`,{ignorePrimitives:{bigint:!0,boolean:!0,number:!0,string:!0}}],"@typescript-eslint/prefer-optional-chain":`off`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/promise-function-async":[`off`,{checkArrowFunctions:!1}],"@typescript-eslint/require-array-sort-compare":[`error`],"require-await":`off`,"@typescript-eslint/require-await":`off`,"@typescript-eslint/restrict-template-expressions":[`error`,{allowAny:!1,allowArray:!1,allowBoolean:!1,allowNullish:!1,allowNumber:!0,allowRegExp:!1}],"@typescript-eslint/unified-signatures":`off`}},{files:[`**/*.d.ts`],rules:{"@typescript-eslint/ban-types":`off`,"@typescript-eslint/no-invalid-void-type":`off`,"@typescript-eslint/consistent-type-imports":`off`,"@typescript-eslint/no-empty-object-type":`off`}}])}function p(e){return[...f(e),{name:`react/override`,files:[`**/*.jsx`,`**/*.tsx`],plugins:{react:s,ziloen:t},languageOptions:{parserOptions:{ecmaFeatures:{jsx:!0}}},settings:{react:{version:`18`}},rules:{"react/react-in-jsx-scope":`off`,"react/jsx-key":[`error`,{}],"react/jsx-no-undef":`off`,"react/jsx-fragments":[`warn`,`syntax`],"react/no-invalid-html-attribute":`warn`,"react/no-unknown-property":`warn`,"ziloen/jsx-strict-logical-expressions":`error`}}]}function m({project:e,tsconfigRootDir:t=n()}={}){return[...f({project:e,tsconfigRootDir:t}),...c.configs[`flat/essential`],{name:`vue/overrides`,files:[`**/*.vue`],languageOptions:{parserOptions:{parser:r.parser,project:e||void 0,projectService:e?void 0:!0,tsconfigRootDir:t}},rules:{"vue/no-unused-vars":`off`,"vue/html-self-closing":`off`,"vue/max-attributes-per-line":`off`,"vue/multi-word-component-names":`off`,"vue/require-default-prop":`off`,"vue/require-prop-types":`off`,"vue/singleline-html-element-content-newline":`off`}}]}export{l as format,u as javascript,p as react,f as typescript,m as vue};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziloen/eslint-config",
3
- "version": "0.1.63",
3
+ "version": "0.1.65",
4
4
  "author": "ziloen",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -16,27 +16,28 @@
16
16
  "dist"
17
17
  ],
18
18
  "dependencies": {
19
- "@eslint/js": "^9.26.0",
20
- "@stylistic/eslint-plugin": "^4.2.0",
21
- "@typescript-eslint/utils": "^8.32.1",
19
+ "@eslint-react/eslint-plugin": "^1.52.2",
20
+ "@eslint/js": "^9.30.1",
21
+ "@stylistic/eslint-plugin": "^5.1.0",
22
+ "@typescript-eslint/utils": "^8.36.0",
22
23
  "eslint-plugin-react": "^7.37.5",
24
+ "eslint-plugin-regexp": "^2.9.0",
23
25
  "eslint-plugin-unicorn": "^59.0.1",
24
- "eslint-plugin-vue": "^10.1.0",
26
+ "eslint-plugin-vue": "^10.3.0",
25
27
  "eslint-plugin-ziloen": "^0.1.16",
26
28
  "typescript": "^5.8.3",
27
- "typescript-eslint": "8.32.1",
28
- "vue-eslint-parser": "^10.1.3"
29
+ "typescript-eslint": "8.36.0"
29
30
  },
30
31
  "devDependencies": {
31
32
  "@types/eslint": "^9.6.1",
32
- "@types/node": "^22.15.17",
33
- "@types/react": "^19.1.3",
34
- "bumpp": "^10.1.0",
33
+ "@types/node": "^24.0.12",
34
+ "@types/react": "^19.1.8",
35
+ "bumpp": "^10.2.0",
35
36
  "cross-env": "^7.0.3",
36
- "eslint": "^9.26.0",
37
+ "eslint": "^9.30.1",
37
38
  "react": "^19.1.0",
38
- "tsdown": "0.11.5",
39
- "vue": "^3.5.13"
39
+ "tsdown": "0.12.9",
40
+ "vue": "^3.5.17"
40
41
  },
41
42
  "peerDependencies": {
42
43
  "eslint": "^9"