@ziloen/eslint-config 0.1.32 → 0.1.34
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 +6 -3
- package/dist/index.js +8 -7
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { FlatESLintConfig } from 'eslint-define-config';
|
|
2
|
-
|
|
1
|
+
import { FlatESLintConfig as FlatESLintConfig$1 } from 'eslint-define-config';
|
|
2
|
+
|
|
3
|
+
type FlatESLintConfig = FlatESLintConfig$1 & {
|
|
4
|
+
name?: string | undefined;
|
|
5
|
+
};
|
|
3
6
|
|
|
4
7
|
declare function format(): FlatESLintConfig[];
|
|
5
8
|
|
|
@@ -11,4 +14,4 @@ declare function typescript(): FlatESLintConfig[];
|
|
|
11
14
|
|
|
12
15
|
declare function vue(): FlatESLintConfig[];
|
|
13
16
|
|
|
14
|
-
export { format, javascript, react, typescript, vue };
|
|
17
|
+
export { type FlatESLintConfig, format, javascript, react, typescript, vue };
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import i from 'typescript-eslint';
|
|
2
|
+
import t from '@stylistic/eslint-plugin';
|
|
3
3
|
import r from 'eslint-plugin-react';
|
|
4
|
-
import
|
|
4
|
+
import o from 'eslint-plugin-unicorn';
|
|
5
5
|
import s from 'eslint-plugin-vue';
|
|
6
6
|
import n from 'eslint-plugin-ziloen';
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import l from 'vue-eslint-parser';
|
|
8
|
+
import y from '@eslint/js';
|
|
9
|
+
import { cwd } from 'node:process';
|
|
9
10
|
|
|
10
|
-
function c(){return [{plugins:{"@typescript-eslint":a.plugin,ziloen:n,style:o},languageOptions:{parser:a.parser,parserOptions:{projectService:!0,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","as-needed"],"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,flatTernaryExpressions:!1,offsetTernaryExpressions:!0,ignoredNodes:["PropertyDefinition[decorators]","FunctionExpression[params]:has(Identifier[decorators])"]}],"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"}},{files:["**/*.jsx","**/*.tsx"],plugins:{react:r,style:o},rules:{"react/self-closing-comp":["off",{component:!0,html:!1}],"style/jsx-tag-spacing":["warn",{closingSlash:"never",beforeSelfClosing:"proportional-always",afterOpening:"never",beforeClosing:"never"}],"style/jsx-curly-spacing":["warn"],"style/jsx-indent":"off","style/jsx-indent-props":["warn",{indentMode:2}]}},{files:["**/*.vue"],languageOptions:{parser:t,parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:"latest",extraFileExtensions:[".vue"],parser:a.parser,sourceType:"module",project:!0}}}]}var i=[{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"]},f.configs.recommended,{plugins:{unicorn:p},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":"warn","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","unicorn/better-regex":["warn",{sortCharacterClasses:!1}],"unicorn/error-message":"warn","unicorn/no-document-cookie":"warn","unicorn/no-instanceof-array":"warn","unicorn/no-invalid-remove-event-listener":"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":["warn",{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":"warn","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"}}];function e(){return [...i,...a.config(...a.configs.strictTypeChecked,{languageOptions:{parserOptions:{projectService:{allowDefaultProject:["./*.js"],defaultProject:"./tsconfig.json"},tsconfigRootDir:import.meta.dirname}}}),{files:["**/*.?([cm])ts?(x)","**/*.vue"],languageOptions:{parser:a.parser,sourceType:"module",parserOptions:{ecmaVersion:"latest",jsDocParsingMode:"none",extraFileExtensions:[".vue"],projectService:{allowDefaultProject:["./*.js"],defaultProject:"./tsconfig.json"},tsconfigRootDir:import.meta.dirname}},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}],"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","no-loop-func":"off","@typescript-eslint/no-loop-func":"error","@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:!1}],"@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-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"],"@typescript-eslint/restrict-template-expressions":["error",{allowNumber:!0,allowRegExp:!1,allowNullish:!1,allowBoolean:!1,allowAny:!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 u(){return [...e(),{files:["**/*.jsx","**/*.tsx"],plugins:{react:r,ziloen:n},languageOptions:{parserOptions:{ecmaFeatures:{jsx:!0}}},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","ziloen/jsx-strict-logical-expressions":"error"}}]}function m(){return [...e(),...s.configs["flat/essential"],{files:["**/*.vue"],languageOptions:{parser:t,parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:"latest",extraFileExtensions:[".vue"],parser:a.parser,sourceType:"module",project:!0,projectService:!0}},processor:s.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"}}]}
|
|
11
|
+
function u(){return [{name:"format/general",plugins:{"@typescript-eslint":i.plugin,ziloen:n,style:t},languageOptions:{parser:i.parser,parserOptions:{projectService:!0,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","as-needed"],"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,flatTernaryExpressions:!1,offsetTernaryExpressions:!0,ignoredNodes:["PropertyDefinition[decorators]","FunctionExpression[params]:has(Identifier[decorators])"]}],"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/react",files:["**/*.jsx","**/*.tsx"],plugins:{react:r,style:t},rules:{"react/self-closing-comp":["off",{component:!0,html:!1}],"style/jsx-tag-spacing":["warn",{closingSlash:"never",beforeSelfClosing:"proportional-always",afterOpening:"never",beforeClosing:"never"}],"style/jsx-curly-spacing":["warn"],"style/jsx-indent":"off","style/jsx-indent-props":["warn",{indentMode:2}]}}]}var a=[{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"]},y.configs.recommended,{name:"javascript/overrides",plugins:{unicorn:o},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},rules:{"unicorn/better-regex":["warn",{sortCharacterClasses:!1}],"unicorn/error-message":"warn","unicorn/no-document-cookie":"warn","unicorn/no-instanceof-array":"warn","unicorn/no-invalid-remove-event-listener":"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":["warn",{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":"warn","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"}}];var f=!1;function e(){return f?[]:(f=!0,[...a,...i.config(...i.configs.strictTypeChecked,{name:"typescript/type-checked/project",languageOptions:{parserOptions:{projectService:{allowDefaultProject:["./*.js"],defaultProject:"./tsconfig.json"},tsconfigRootDir:cwd()}}}),{name:"typescript/overrides",files:["**/*.ts","**/*.tsx","**/*.mts","**/*.cts","**/*.vue"],languageOptions:{parser:i.parser,sourceType:"module",parserOptions:{ecmaVersion:"latest",jsDocParsingMode:"none",extraFileExtensions:[".vue"],projectService:{allowDefaultProject:["./*.js"],defaultProject:"./tsconfig.json"},tsconfigRootDir:cwd()}},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}],"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","no-loop-func":"off","@typescript-eslint/no-loop-func":"error","@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:!1}],"@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-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"],"@typescript-eslint/restrict-template-expressions":["error",{allowNumber:!0,allowRegExp:!1,allowNullish:!1,allowBoolean:!1,allowAny:!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 m(){return [...e(),{name:"react/override",files:["**/*.jsx","**/*.tsx"],plugins:{react:r,ziloen:n},languageOptions:{parserOptions:{ecmaFeatures:{jsx:!0}}},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","ziloen/jsx-strict-logical-expressions":"error"}}]}function g(){return [...e(),...s.configs["flat/essential"],{name:"vue/overrides",files:["**/*.vue"],languageOptions:{parser:l,parserOptions:{parser:i.parser,ecmaFeatures:{jsx:!0},ecmaVersion:"latest",extraFileExtensions:[".vue"],sourceType:"module",projectService:!0,tsconfigRootDir:cwd()}},processor:s.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"}}]}
|
|
11
12
|
|
|
12
|
-
export {
|
|
13
|
+
export { u as format, a as javascript, m as react, e as typescript, g as vue };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziloen/eslint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.34",
|
|
4
4
|
"author": "ziloen",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "tsup",
|
|
43
|
+
"inspect": "pnpm dlx @eslint/config-inspector@latest",
|
|
43
44
|
"release": "bumpp --commit --no-push && pnpm publish",
|
|
44
45
|
"lint": "eslint ."
|
|
45
46
|
}
|