@ziloen/eslint-config 0.1.26 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +30 -1
- package/dist/index.d.cts +6 -9
- package/dist/index.d.ts +6 -9
- package/dist/index.js +13 -1
- package/package.json +10 -13
package/dist/index.cjs
CHANGED
|
@@ -1 +1,30 @@
|
|
|
1
|
-
"use strict";var v=Object.create;var u=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty;var k=(e,r)=>{for(var o in r)u(e,o,{get:r[o],enumerable:!0})},g=(e,r,o,d)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of j(r))!E.call(e,a)&&a!==o&&u(e,a,{get:()=>r[a],enumerable:!(d=h(r,a))||d.enumerable});return e};var t=(e,r,o)=>(o=e!=null?v(S(e)):{},g(r||!e||!e.__esModule?u(o,"default",{value:e,enumerable:!0}):o,e)),C=e=>g(u({},"__esModule",{value:!0}),e);var L={};k(L,{format:()=>T,javascript:()=>w,react:()=>F,typescript:()=>f,vue:()=>O});module.exports=C(L);var y=t(require("@stylistic/eslint-plugin"),1),s=t(require("@typescript-eslint/eslint-plugin"),1),i=t(require("eslint-plugin-react"),1),m=t(require("eslint-plugin-unicorn"),1),l=t(require("eslint-plugin-vue"),1),p=t(require("eslint-plugin-ziloen"),1),n=t(require("@typescript-eslint/parser"),1),c=t(require("vue-eslint-parser"),1);function T({tsconfigPath:e}){return[{plugins:{"@typescript-eslint":s.default,ziloen:p.default,style:y.default},languageOptions:{parser:n.default,parserOptions:{project:e,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:i.default,style:y.default},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:c.default,parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:"latest",extraFileExtensions:[".vue"],parser:n.default,sourceType:"module",project:!0}}}]}var x=t(require("@eslint/js"),1);var w=[{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"]},x.default.configs.recommended,{plugins:{unicorn:m.default},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"}}];var b=require("process");function f({tsconfigPath:e}){return[...w,{plugins:{"@typescript-eslint":s.default}},{files:["**/*.?([cm])ts?(x)","**/*.vue"],languageOptions:{parser:n.default,sourceType:"module",parserOptions:{ecmaVersion:"latest",jsDocParsingMode:"none",extraFileExtensions:[".vue"],project:e,tsconfigRootDir:(0,b.cwd)()}},rules:{...s.default.configs["strict-type-checked"].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 F({tsconfigPath:e}){return[...f({tsconfigPath:e}),{files:["**/*.jsx","**/*.tsx"],plugins:{react:i.default,ziloen:p.default},languageOptions:{parser:n.default,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 O({tsconfigPath:e}){return[...f({tsconfigPath:e}),{plugins:{vue:l.default}},{files:["**/*.vue"],languageOptions:{parser:c.default,parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:"latest",extraFileExtensions:[".vue"],parser:n.default,sourceType:"module",project:!0}},processor:l.default.processors[".vue"],rules:{...l.default.configs["vue3-essential"].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"}}]}0&&(module.exports={format,javascript,react,typescript,vue});
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var a = require('typescript-eslint');
|
|
4
|
+
var o = require('@stylistic/eslint-plugin');
|
|
5
|
+
var e = require('eslint-plugin-react');
|
|
6
|
+
var l = require('eslint-plugin-unicorn');
|
|
7
|
+
var s = require('eslint-plugin-vue');
|
|
8
|
+
var r = require('eslint-plugin-ziloen');
|
|
9
|
+
var n = require('vue-eslint-parser');
|
|
10
|
+
var c = require('@eslint/js');
|
|
11
|
+
var process = require('process');
|
|
12
|
+
|
|
13
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
|
|
15
|
+
var a__default = /*#__PURE__*/_interopDefault(a);
|
|
16
|
+
var o__default = /*#__PURE__*/_interopDefault(o);
|
|
17
|
+
var e__default = /*#__PURE__*/_interopDefault(e);
|
|
18
|
+
var l__default = /*#__PURE__*/_interopDefault(l);
|
|
19
|
+
var s__default = /*#__PURE__*/_interopDefault(s);
|
|
20
|
+
var r__default = /*#__PURE__*/_interopDefault(r);
|
|
21
|
+
var n__default = /*#__PURE__*/_interopDefault(n);
|
|
22
|
+
var c__default = /*#__PURE__*/_interopDefault(c);
|
|
23
|
+
|
|
24
|
+
function E(){return [{plugins:{"@typescript-eslint":a__default.default.plugin,ziloen:r__default.default,style:o__default.default},languageOptions:{parser:a__default.default.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:e__default.default,style:o__default.default},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:n__default.default,parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:"latest",extraFileExtensions:[".vue"],parser:a__default.default.parser,sourceType:"module",project:!0}}}]}var p=[{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__default.default.configs.recommended,{plugins:{unicorn:l__default.default},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 t(){return [...p,...a__default.default.config(...a__default.default.configs.strictTypeChecked),{files:["**/*.?([cm])ts?(x)","**/*.vue"],languageOptions:{parser:a__default.default.parser,sourceType:"module",parserOptions:{ecmaVersion:"latest",jsDocParsingMode:"none",extraFileExtensions:[".vue"],projectService:!0,tsconfigRootDir:process.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 D(){return [...t(),{files:["**/*.jsx","**/*.tsx"],plugins:{react:e__default.default,ziloen:r__default.default},languageOptions:{parser:a__default.default.parser,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 U(){return [...t(),...s__default.default.configs["flat/essential"],{files:["**/*.vue"],languageOptions:{parser:n__default.default,parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:"latest",extraFileExtensions:[".vue"],parser:a__default.default.parser,sourceType:"module",project:!0,projectService:!0}},processor:s__default.default.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"}}]}
|
|
25
|
+
|
|
26
|
+
exports.format = E;
|
|
27
|
+
exports.javascript = p;
|
|
28
|
+
exports.react = D;
|
|
29
|
+
exports.typescript = t;
|
|
30
|
+
exports.vue = U;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { FlatESLintConfig } from 'eslint-define-config';
|
|
2
2
|
export { FlatESLintConfig, defineFlatConfig } from 'eslint-define-config';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
tsconfigPath: string | string[];
|
|
6
|
-
};
|
|
7
|
-
declare function typescript({ tsconfigPath }: TSOptions): FlatESLintConfig[];
|
|
8
|
-
|
|
9
|
-
declare function format({ tsconfigPath }: TSOptions): FlatESLintConfig[];
|
|
4
|
+
declare function format(): FlatESLintConfig[];
|
|
10
5
|
|
|
11
6
|
declare const javascript: FlatESLintConfig[];
|
|
12
7
|
|
|
13
|
-
declare function react(
|
|
8
|
+
declare function react(): FlatESLintConfig[];
|
|
9
|
+
|
|
10
|
+
declare function typescript(): FlatESLintConfig[];
|
|
14
11
|
|
|
15
|
-
declare function vue(
|
|
12
|
+
declare function vue(): FlatESLintConfig[];
|
|
16
13
|
|
|
17
|
-
export {
|
|
14
|
+
export { format, javascript, react, typescript, vue };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { FlatESLintConfig } from 'eslint-define-config';
|
|
2
2
|
export { FlatESLintConfig, defineFlatConfig } from 'eslint-define-config';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
tsconfigPath: string | string[];
|
|
6
|
-
};
|
|
7
|
-
declare function typescript({ tsconfigPath }: TSOptions): FlatESLintConfig[];
|
|
8
|
-
|
|
9
|
-
declare function format({ tsconfigPath }: TSOptions): FlatESLintConfig[];
|
|
4
|
+
declare function format(): FlatESLintConfig[];
|
|
10
5
|
|
|
11
6
|
declare const javascript: FlatESLintConfig[];
|
|
12
7
|
|
|
13
|
-
declare function react(
|
|
8
|
+
declare function react(): FlatESLintConfig[];
|
|
9
|
+
|
|
10
|
+
declare function typescript(): FlatESLintConfig[];
|
|
14
11
|
|
|
15
|
-
declare function vue(
|
|
12
|
+
declare function vue(): FlatESLintConfig[];
|
|
16
13
|
|
|
17
|
-
export {
|
|
14
|
+
export { format, javascript, react, typescript, vue };
|
package/dist/index.js
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
import{default as l}from"@stylistic/eslint-plugin";import{default as n}from"@typescript-eslint/eslint-plugin";import{default as t}from"eslint-plugin-react";import{default as p}from"eslint-plugin-unicorn";import{default as o}from"eslint-plugin-vue";import{default as s}from"eslint-plugin-ziloen";import{default as e}from"@typescript-eslint/parser";import{default as a}from"vue-eslint-parser";function S({tsconfigPath:r}){return[{plugins:{"@typescript-eslint":n,ziloen:s,style:l},languageOptions:{parser:e,parserOptions:{project:r,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:t,style:l},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:a,parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:"latest",extraFileExtensions:[".vue"],parser:e,sourceType:"module",project:!0}}}]}import f from"@eslint/js";var c=[{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"}}];import{cwd as u}from"node:process";function i({tsconfigPath:r}){return[...c,{plugins:{"@typescript-eslint":n}},{files:["**/*.?([cm])ts?(x)","**/*.vue"],languageOptions:{parser:e,sourceType:"module",parserOptions:{ecmaVersion:"latest",jsDocParsingMode:"none",extraFileExtensions:[".vue"],project:r,tsconfigRootDir:u()}},rules:{...n.configs["strict-type-checked"].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 R({tsconfigPath:r}){return[...i({tsconfigPath:r}),{files:["**/*.jsx","**/*.tsx"],plugins:{react:t,ziloen:s},languageOptions:{parser:e,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 B({tsconfigPath:r}){return[...i({tsconfigPath:r}),{plugins:{vue:o}},{files:["**/*.vue"],languageOptions:{parser:a,parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:"latest",extraFileExtensions:[".vue"],parser:e,sourceType:"module",project:!0}},processor:o.processors[".vue"],rules:{...o.configs["vue3-essential"].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{S as format,c as javascript,R as react,i as typescript,B as vue};
|
|
1
|
+
import a from 'typescript-eslint';
|
|
2
|
+
import o from '@stylistic/eslint-plugin';
|
|
3
|
+
import e from 'eslint-plugin-react';
|
|
4
|
+
import l from 'eslint-plugin-unicorn';
|
|
5
|
+
import s from 'eslint-plugin-vue';
|
|
6
|
+
import r from 'eslint-plugin-ziloen';
|
|
7
|
+
import n from 'vue-eslint-parser';
|
|
8
|
+
import c from '@eslint/js';
|
|
9
|
+
import { cwd } from 'node:process';
|
|
10
|
+
|
|
11
|
+
function E(){return [{plugins:{"@typescript-eslint":a.plugin,ziloen:r,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:e,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:n,parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:"latest",extraFileExtensions:[".vue"],parser:a.parser,sourceType:"module",project:!0}}}]}var p=[{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,{plugins:{unicorn:l},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 t(){return [...p,...a.config(...a.configs.strictTypeChecked),{files:["**/*.?([cm])ts?(x)","**/*.vue"],languageOptions:{parser:a.parser,sourceType:"module",parserOptions:{ecmaVersion:"latest",jsDocParsingMode:"none",extraFileExtensions:[".vue"],projectService:!0,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 D(){return [...t(),{files:["**/*.jsx","**/*.tsx"],plugins:{react:e,ziloen:r},languageOptions:{parser:a.parser,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 U(){return [...t(),...s.configs["flat/essential"],{files:["**/*.vue"],languageOptions:{parser:n,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"}}]}
|
|
12
|
+
|
|
13
|
+
export { E as format, p as javascript, D as react, t as typescript, U 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.28",
|
|
4
4
|
"author": "ziloen",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -16,34 +16,31 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@eslint/js": "^9.
|
|
19
|
+
"@eslint/js": "^9.4.0",
|
|
20
20
|
"@stylistic/eslint-plugin": "^2.1.0",
|
|
21
|
-
"@typescript-eslint/
|
|
22
|
-
"
|
|
23
|
-
"eslint": "^9.3.0",
|
|
21
|
+
"@typescript-eslint/parser": "8.0.0-alpha.30",
|
|
22
|
+
"eslint": "^9.4.0",
|
|
24
23
|
"eslint-define-config": "^2.1.0",
|
|
25
24
|
"eslint-plugin-react": "^7.34.2",
|
|
26
25
|
"eslint-plugin-unicorn": "^53.0.0",
|
|
27
26
|
"eslint-plugin-vue": "^9.26.0",
|
|
28
27
|
"eslint-plugin-ziloen": "^0.1.10",
|
|
29
28
|
"typescript": "^5.4.5",
|
|
30
|
-
"typescript-eslint": "8.0.0-alpha.
|
|
31
|
-
"vue-eslint-parser": "^9.4.
|
|
29
|
+
"typescript-eslint": "8.0.0-alpha.30",
|
|
30
|
+
"vue-eslint-parser": "^9.4.3"
|
|
32
31
|
},
|
|
33
32
|
"devDependencies": {
|
|
34
33
|
"@types/eslint": "^8.56.10",
|
|
35
|
-
"@types/node": "^20.
|
|
34
|
+
"@types/node": "^20.14.2",
|
|
36
35
|
"@types/react": "^18.3.3",
|
|
37
|
-
"@typescript-eslint/rule-tester": "8.0.0-alpha.21",
|
|
38
|
-
"@typescript-eslint/utils": "8.0.0-alpha.21",
|
|
39
36
|
"bumpp": "^9.4.1",
|
|
40
37
|
"react": "^18.3.1",
|
|
41
|
-
"tsup": "^8.0
|
|
38
|
+
"tsup": "^8.1.0",
|
|
42
39
|
"vue": "^3.4.27"
|
|
43
40
|
},
|
|
44
41
|
"scripts": {
|
|
45
|
-
"build": "tsup
|
|
42
|
+
"build": "tsup",
|
|
46
43
|
"release": "bumpp --commit --no-push && pnpm publish",
|
|
47
|
-
"lint": "eslint .
|
|
44
|
+
"lint": "eslint ."
|
|
48
45
|
}
|
|
49
46
|
}
|