@xsynaptic/eslint-config 3.1.2 → 3.1.4

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +7 -7
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{defineConfig as e}from"@eslint/config-helpers";import t from"eslint-plugin-perfectionist";import n from"eslint-plugin-unicorn";import r from"globals";import i from"typescript-eslint";var a=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,d=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),f=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=c(t),a=0,l=i.length,d;a<l;a++)d=i[a],!u.call(e,d)&&d!==n&&o(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=s(t,d))||r.enumerable});return e},p=(e,t,n)=>(n=e==null?{}:a(l(e)),f(t||!e||!e.__esModule?o(n,`default`,{value:e,enumerable:!0}):n,e)),m=d(((e,t)=>{t.exports={name:`@eslint/js`,version:`9.39.2`,description:`ESLint JavaScript language implementation`,funding:`https://eslint.org/donate`,main:`./src/index.js`,types:`./types/index.d.ts`,scripts:{"test:types":`tsc -p tests/types/tsconfig.json`},files:[`LICENSE`,`README.md`,`src`,`types`],publishConfig:{access:`public`},repository:{type:`git`,url:`https://github.com/eslint/eslint.git`,directory:`packages/js`},homepage:`https://eslint.org`,bugs:`https://github.com/eslint/eslint/issues/`,keywords:[`javascript`,`eslint-plugin`,`eslint`],license:`MIT`,engines:{node:`^18.18.0 || ^20.9.0 || >=21.1.0`}}})),h=d(((e,t)=>{t.exports=Object.freeze({rules:Object.freeze({"accessor-pairs":`error`,"array-callback-return":`error`,"arrow-body-style":`error`,"block-scoped-var":`error`,camelcase:`error`,"capitalized-comments":`error`,"class-methods-use-this":`error`,complexity:`error`,"consistent-return":`error`,"consistent-this":`error`,"constructor-super":`error`,curly:`error`,"default-case":`error`,"default-case-last":`error`,"default-param-last":`error`,"dot-notation":`error`,eqeqeq:`error`,"for-direction":`error`,"func-name-matching":`error`,"func-names":`error`,"func-style":`error`,"getter-return":`error`,"grouped-accessor-pairs":`error`,"guard-for-in":`error`,"id-denylist":`error`,"id-length":`error`,"id-match":`error`,"init-declarations":`error`,"logical-assignment-operators":`error`,"max-classes-per-file":`error`,"max-depth":`error`,"max-lines":`error`,"max-lines-per-function":`error`,"max-nested-callbacks":`error`,"max-params":`error`,"max-statements":`error`,"new-cap":`error`,"no-alert":`error`,"no-array-constructor":`error`,"no-async-promise-executor":`error`,"no-await-in-loop":`error`,"no-bitwise":`error`,"no-caller":`error`,"no-case-declarations":`error`,"no-class-assign":`error`,"no-compare-neg-zero":`error`,"no-cond-assign":`error`,"no-console":`error`,"no-const-assign":`error`,"no-constant-binary-expression":`error`,"no-constant-condition":`error`,"no-constructor-return":`error`,"no-continue":`error`,"no-control-regex":`error`,"no-debugger":`error`,"no-delete-var":`error`,"no-div-regex":`error`,"no-dupe-args":`error`,"no-dupe-class-members":`error`,"no-dupe-else-if":`error`,"no-dupe-keys":`error`,"no-duplicate-case":`error`,"no-duplicate-imports":`error`,"no-else-return":`error`,"no-empty":`error`,"no-empty-character-class":`error`,"no-empty-function":`error`,"no-empty-pattern":`error`,"no-empty-static-block":`error`,"no-eq-null":`error`,"no-eval":`error`,"no-ex-assign":`error`,"no-extend-native":`error`,"no-extra-bind":`error`,"no-extra-boolean-cast":`error`,"no-extra-label":`error`,"no-fallthrough":`error`,"no-func-assign":`error`,"no-global-assign":`error`,"no-implicit-coercion":`error`,"no-implicit-globals":`error`,"no-implied-eval":`error`,"no-import-assign":`error`,"no-inline-comments":`error`,"no-inner-declarations":`error`,"no-invalid-regexp":`error`,"no-invalid-this":`error`,"no-irregular-whitespace":`error`,"no-iterator":`error`,"no-label-var":`error`,"no-labels":`error`,"no-lone-blocks":`error`,"no-lonely-if":`error`,"no-loop-func":`error`,"no-loss-of-precision":`error`,"no-magic-numbers":`error`,"no-misleading-character-class":`error`,"no-multi-assign":`error`,"no-multi-str":`error`,"no-negated-condition":`error`,"no-nested-ternary":`error`,"no-new":`error`,"no-new-func":`error`,"no-new-native-nonconstructor":`error`,"no-new-wrappers":`error`,"no-nonoctal-decimal-escape":`error`,"no-obj-calls":`error`,"no-object-constructor":`error`,"no-octal":`error`,"no-octal-escape":`error`,"no-param-reassign":`error`,"no-plusplus":`error`,"no-promise-executor-return":`error`,"no-proto":`error`,"no-prototype-builtins":`error`,"no-redeclare":`error`,"no-regex-spaces":`error`,"no-restricted-exports":`error`,"no-restricted-globals":`error`,"no-restricted-imports":`error`,"no-restricted-properties":`error`,"no-restricted-syntax":`error`,"no-return-assign":`error`,"no-script-url":`error`,"no-self-assign":`error`,"no-self-compare":`error`,"no-sequences":`error`,"no-setter-return":`error`,"no-shadow":`error`,"no-shadow-restricted-names":`error`,"no-sparse-arrays":`error`,"no-template-curly-in-string":`error`,"no-ternary":`error`,"no-this-before-super":`error`,"no-throw-literal":`error`,"no-unassigned-vars":`error`,"no-undef":`error`,"no-undef-init":`error`,"no-undefined":`error`,"no-underscore-dangle":`error`,"no-unexpected-multiline":`error`,"no-unmodified-loop-condition":`error`,"no-unneeded-ternary":`error`,"no-unreachable":`error`,"no-unreachable-loop":`error`,"no-unsafe-finally":`error`,"no-unsafe-negation":`error`,"no-unsafe-optional-chaining":`error`,"no-unused-expressions":`error`,"no-unused-labels":`error`,"no-unused-private-class-members":`error`,"no-unused-vars":`error`,"no-use-before-define":`error`,"no-useless-assignment":`error`,"no-useless-backreference":`error`,"no-useless-call":`error`,"no-useless-catch":`error`,"no-useless-computed-key":`error`,"no-useless-concat":`error`,"no-useless-constructor":`error`,"no-useless-escape":`error`,"no-useless-rename":`error`,"no-useless-return":`error`,"no-var":`error`,"no-void":`error`,"no-warning-comments":`error`,"no-with":`error`,"object-shorthand":`error`,"one-var":`error`,"operator-assignment":`error`,"prefer-arrow-callback":`error`,"prefer-const":`error`,"prefer-destructuring":`error`,"prefer-exponentiation-operator":`error`,"prefer-named-capture-group":`error`,"prefer-numeric-literals":`error`,"prefer-object-has-own":`error`,"prefer-object-spread":`error`,"prefer-promise-reject-errors":`error`,"prefer-regex-literals":`error`,"prefer-rest-params":`error`,"prefer-spread":`error`,"prefer-template":`error`,"preserve-caught-error":`error`,radix:`error`,"require-atomic-updates":`error`,"require-await":`error`,"require-unicode-regexp":`error`,"require-yield":`error`,"sort-imports":`error`,"sort-keys":`error`,"sort-vars":`error`,strict:`error`,"symbol-description":`error`,"unicode-bom":`error`,"use-isnan":`error`,"valid-typeof":`error`,"vars-on-top":`error`,yoda:`error`})})})),g=d(((e,t)=>{t.exports=Object.freeze({rules:Object.freeze({"constructor-super":`error`,"for-direction":`error`,"getter-return":`error`,"no-async-promise-executor":`error`,"no-case-declarations":`error`,"no-class-assign":`error`,"no-compare-neg-zero":`error`,"no-cond-assign":`error`,"no-const-assign":`error`,"no-constant-binary-expression":`error`,"no-constant-condition":`error`,"no-control-regex":`error`,"no-debugger":`error`,"no-delete-var":`error`,"no-dupe-args":`error`,"no-dupe-class-members":`error`,"no-dupe-else-if":`error`,"no-dupe-keys":`error`,"no-duplicate-case":`error`,"no-empty":`error`,"no-empty-character-class":`error`,"no-empty-pattern":`error`,"no-empty-static-block":`error`,"no-ex-assign":`error`,"no-extra-boolean-cast":`error`,"no-fallthrough":`error`,"no-func-assign":`error`,"no-global-assign":`error`,"no-import-assign":`error`,"no-invalid-regexp":`error`,"no-irregular-whitespace":`error`,"no-loss-of-precision":`error`,"no-misleading-character-class":`error`,"no-new-native-nonconstructor":`error`,"no-nonoctal-decimal-escape":`error`,"no-obj-calls":`error`,"no-octal":`error`,"no-prototype-builtins":`error`,"no-redeclare":`error`,"no-regex-spaces":`error`,"no-self-assign":`error`,"no-setter-return":`error`,"no-shadow-restricted-names":`error`,"no-sparse-arrays":`error`,"no-this-before-super":`error`,"no-undef":`error`,"no-unexpected-multiline":`error`,"no-unreachable":`error`,"no-unsafe-finally":`error`,"no-unsafe-negation":`error`,"no-unsafe-optional-chaining":`error`,"no-unused-labels":`error`,"no-unused-private-class-members":`error`,"no-unused-vars":`error`,"no-useless-backreference":`error`,"no-useless-catch":`error`,"no-useless-escape":`error`,"no-with":`error`,"require-yield":`error`,"use-isnan":`error`,"valid-typeof":`error`})})})),_=p(d(((e,t)=>{let{name:n,version:r}=m();t.exports={meta:{name:n,version:r},configs:{all:h(),recommended:g()}}}))(),1);function v(a,o){let s=o?.customGlobals??{};return e(_.default.configs.recommended,...i.configs.strictTypeChecked,...i.configs.stylisticTypeChecked,{languageOptions:{globals:{...r.builtin,...r.nodeBuiltin,...s},parser:i.parser,parserOptions:o?.parserOptions??{projectService:!0}},plugins:{"@typescript-eslint":i.plugin},rules:{"@typescript-eslint/array-type":[`warn`,{default:`generic`}],"@typescript-eslint/no-non-null-assertion":`off`,"@typescript-eslint/no-unused-vars":[`error`,{argsIgnorePattern:`^_`,caughtErrorsIgnorePattern:`^_`,destructuredArrayIgnorePattern:`^_`,ignoreRestSiblings:!0,varsIgnorePattern:`^_`}],"@typescript-eslint/prefer-nullish-coalescing":`off`}},n.configs.recommended,{rules:{"unicorn/filename-case":`warn`,"unicorn/no-array-callback-reference":`off`,"unicorn/prevent-abbreviations":`off`}},{plugins:{perfectionist:t},rules:{"sort-classes":`off`,"perfectionist/sort-imports":[`error`,{type:`natural`,order:`asc`,internalPattern:[`^~/.*`,`^@/.*`,`^#.*`]}],"perfectionist/sort-interfaces":`off`,"perfectionist/sort-jsx-props":`off`,"perfectionist/sort-maps":`off`,"perfectionist/sort-modules":`off`,"perfectionist/sort-objects":`off`,"perfectionist/sort-object-types":`off`,"perfectionist/sort-sets":`off`,"perfectionist/sort-switch-case":`off`,"perfectionist/sort-union-types":`off`}},...a??[])}export{v as getConfig};
1
+ import e from"eslint-plugin-perfectionist";import t from"eslint-plugin-unicorn";import n from"globals";import r from"typescript-eslint";var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e},f=(e,t,n)=>(n=e==null?{}:i(c(e)),d(t||!e||!e.__esModule?a(n,`default`,{value:e,enumerable:!0}):n,e));const p=[`env`,`extends`,`globals`,`ignorePatterns`,`noInlineConfig`,`overrides`,`parser`,`parserOptions`,`reportUnusedDisableDirectives`,`root`],m=new Set([`basePath`,`ignores`,`name`]);function h(e,t){return e.name?e.name:`UserConfig${t}`}function g(e,t){return typeof e==`string`?e:e.name?e.name:`ExtendedConfig${t}`}function _(e){if(Array.isArray(e.plugins))return!0;for(let t of p)if(t in e)return!0;return!1}function v(e){return Object.keys(e).every(e=>m.has(e))}function y(e){let t=e.indexOf(`/`);if(t===-1)return{namespace:``,name:e};let n=e.slice(0,t);if(n[0]===`@`&&n!==`@`){let r=e.indexOf(`/`,t+1);if(r!==-1)return n=e.slice(0,r),{namespace:n,name:e.slice(r+1)}}let r=e.slice(t+1);return{namespace:n,name:r}}function b(e,t,n){let r=t.meta?.namespace;if(!r||r===e||!n.rules&&!n.processor&&!n.language)return n;let i={...n};if(i.rules){let t=Object.keys(i.rules),n={};for(let a=0;a<t.length;a++){let o=t[a],{namespace:s,name:c}=y(o);s===r?n[`${e}/${c}`]=i.rules[o]:n[o]=i.rules[o]}i.rules=n}if(typeof i.processor==`string`){let{namespace:t,name:n}=y(i.processor);t&&t===r&&(i.processor=`${e}/${n}`)}if(typeof i.language==`string`){let{namespace:t,name:n}=y(i.language);t===r&&(i.language=`${e}/${n}`)}return i}function x(e,t,n,r){if(Array.isArray(n))return n.map(n=>x(e,t,n,r));if(_(n))throw TypeError(`Plugin config "${r}" is an eslintrc config and cannot be used in this context.`);return b(e,t,n)}function S(e,t){let{namespace:n,name:r}=y(t),i=e.plugins?.[n];if(!i)throw TypeError(`Plugin "${n}" not found.`);let a=i.configs?.[r];if(a&&(Array.isArray(a)||!_(a)))return x(n,i,a,t);let o=i.configs?.[`flat/${r}`];if(o&&(Array.isArray(o)||!_(o)))return x(n,i,o,t);let s=a||o?`Plugin config "${r}" in plugin "${n}" is an eslintrc config and cannot be used in this context.`:`Plugin config "${r}" not found in plugin "${n}".`;throw TypeError(s)}function*C(e,t=``){for(let n=0;n<e.length;n++){let r=t?`${t}[${n}]`:`[${n}]`;if(Array.isArray(e[n])){yield*C(e[n],r);continue}yield{indexPath:r,value:e[n]}}}function w(e=[],t=[]){if(!t.length)return e.concat();if(!e.length)return t.concat();let n=[];for(let r of e)for(let e of t){let t=[];Array.isArray(r)?t.push(...r):t.push(r),Array.isArray(e)?t.push(...e):t.push(e),n.push(t)}return n}function T(e,t,n,r){let i={...n};return v(n)||(e.files&&(i.files=w(e.files,n.files)),e.ignores&&(i.ignores=e.ignores.concat(n.ignores??[]))),i.name=`${t} > ${r}`,e.basePath&&(i.basePath=e.basePath),i}function E(e,t){if(!e.extends)return[e];if(!Array.isArray(e.extends))throw TypeError("The `extends` property must be an array.");let{extends:n,...r}=e,i=new WeakMap,a=n.map(t=>{if(typeof t==`string`){let n=S(e,t);return Array.isArray(n)?n.forEach((e,n)=>{i.set(e,`${t}[${n}]`)}):i.set(n,t),n}return t}),o=[];for(let{indexPath:n,value:s}of C(a)){let a=s;if(`basePath`in a)throw TypeError("'basePath' in `extends` is not allowed.");if(`extends`in a)throw TypeError(`Nested 'extends' is not allowed.`);let c=t.get(e),l=i.get(s)??g(s,n);o.push(T(r,c,a,l))}return v(r)||o.push(r),o.flat()}function D(e,t){return e.flatMap(e=>E(e,t))}function O(...e){let t=new WeakMap,n=[];if(e.length===0)throw TypeError(`Expected one or more arguments.`);for(let{indexPath:r,value:i}of C(e)){if(typeof i!=`object`||!i)throw TypeError(`Expected an object but received ${String(i)}.`);let e=i;t.set(e,h(e,r)),n.push(e)}return D(n,t)}var k=u(((e,t)=>{t.exports={name:`@eslint/js`,version:`9.39.2`,description:`ESLint JavaScript language implementation`,funding:`https://eslint.org/donate`,main:`./src/index.js`,types:`./types/index.d.ts`,scripts:{"test:types":`tsc -p tests/types/tsconfig.json`},files:[`LICENSE`,`README.md`,`src`,`types`],publishConfig:{access:`public`},repository:{type:`git`,url:`https://github.com/eslint/eslint.git`,directory:`packages/js`},homepage:`https://eslint.org`,bugs:`https://github.com/eslint/eslint/issues/`,keywords:[`javascript`,`eslint-plugin`,`eslint`],license:`MIT`,engines:{node:`^18.18.0 || ^20.9.0 || >=21.1.0`}}})),A=u(((e,t)=>{t.exports=Object.freeze({rules:Object.freeze({"accessor-pairs":`error`,"array-callback-return":`error`,"arrow-body-style":`error`,"block-scoped-var":`error`,camelcase:`error`,"capitalized-comments":`error`,"class-methods-use-this":`error`,complexity:`error`,"consistent-return":`error`,"consistent-this":`error`,"constructor-super":`error`,curly:`error`,"default-case":`error`,"default-case-last":`error`,"default-param-last":`error`,"dot-notation":`error`,eqeqeq:`error`,"for-direction":`error`,"func-name-matching":`error`,"func-names":`error`,"func-style":`error`,"getter-return":`error`,"grouped-accessor-pairs":`error`,"guard-for-in":`error`,"id-denylist":`error`,"id-length":`error`,"id-match":`error`,"init-declarations":`error`,"logical-assignment-operators":`error`,"max-classes-per-file":`error`,"max-depth":`error`,"max-lines":`error`,"max-lines-per-function":`error`,"max-nested-callbacks":`error`,"max-params":`error`,"max-statements":`error`,"new-cap":`error`,"no-alert":`error`,"no-array-constructor":`error`,"no-async-promise-executor":`error`,"no-await-in-loop":`error`,"no-bitwise":`error`,"no-caller":`error`,"no-case-declarations":`error`,"no-class-assign":`error`,"no-compare-neg-zero":`error`,"no-cond-assign":`error`,"no-console":`error`,"no-const-assign":`error`,"no-constant-binary-expression":`error`,"no-constant-condition":`error`,"no-constructor-return":`error`,"no-continue":`error`,"no-control-regex":`error`,"no-debugger":`error`,"no-delete-var":`error`,"no-div-regex":`error`,"no-dupe-args":`error`,"no-dupe-class-members":`error`,"no-dupe-else-if":`error`,"no-dupe-keys":`error`,"no-duplicate-case":`error`,"no-duplicate-imports":`error`,"no-else-return":`error`,"no-empty":`error`,"no-empty-character-class":`error`,"no-empty-function":`error`,"no-empty-pattern":`error`,"no-empty-static-block":`error`,"no-eq-null":`error`,"no-eval":`error`,"no-ex-assign":`error`,"no-extend-native":`error`,"no-extra-bind":`error`,"no-extra-boolean-cast":`error`,"no-extra-label":`error`,"no-fallthrough":`error`,"no-func-assign":`error`,"no-global-assign":`error`,"no-implicit-coercion":`error`,"no-implicit-globals":`error`,"no-implied-eval":`error`,"no-import-assign":`error`,"no-inline-comments":`error`,"no-inner-declarations":`error`,"no-invalid-regexp":`error`,"no-invalid-this":`error`,"no-irregular-whitespace":`error`,"no-iterator":`error`,"no-label-var":`error`,"no-labels":`error`,"no-lone-blocks":`error`,"no-lonely-if":`error`,"no-loop-func":`error`,"no-loss-of-precision":`error`,"no-magic-numbers":`error`,"no-misleading-character-class":`error`,"no-multi-assign":`error`,"no-multi-str":`error`,"no-negated-condition":`error`,"no-nested-ternary":`error`,"no-new":`error`,"no-new-func":`error`,"no-new-native-nonconstructor":`error`,"no-new-wrappers":`error`,"no-nonoctal-decimal-escape":`error`,"no-obj-calls":`error`,"no-object-constructor":`error`,"no-octal":`error`,"no-octal-escape":`error`,"no-param-reassign":`error`,"no-plusplus":`error`,"no-promise-executor-return":`error`,"no-proto":`error`,"no-prototype-builtins":`error`,"no-redeclare":`error`,"no-regex-spaces":`error`,"no-restricted-exports":`error`,"no-restricted-globals":`error`,"no-restricted-imports":`error`,"no-restricted-properties":`error`,"no-restricted-syntax":`error`,"no-return-assign":`error`,"no-script-url":`error`,"no-self-assign":`error`,"no-self-compare":`error`,"no-sequences":`error`,"no-setter-return":`error`,"no-shadow":`error`,"no-shadow-restricted-names":`error`,"no-sparse-arrays":`error`,"no-template-curly-in-string":`error`,"no-ternary":`error`,"no-this-before-super":`error`,"no-throw-literal":`error`,"no-unassigned-vars":`error`,"no-undef":`error`,"no-undef-init":`error`,"no-undefined":`error`,"no-underscore-dangle":`error`,"no-unexpected-multiline":`error`,"no-unmodified-loop-condition":`error`,"no-unneeded-ternary":`error`,"no-unreachable":`error`,"no-unreachable-loop":`error`,"no-unsafe-finally":`error`,"no-unsafe-negation":`error`,"no-unsafe-optional-chaining":`error`,"no-unused-expressions":`error`,"no-unused-labels":`error`,"no-unused-private-class-members":`error`,"no-unused-vars":`error`,"no-use-before-define":`error`,"no-useless-assignment":`error`,"no-useless-backreference":`error`,"no-useless-call":`error`,"no-useless-catch":`error`,"no-useless-computed-key":`error`,"no-useless-concat":`error`,"no-useless-constructor":`error`,"no-useless-escape":`error`,"no-useless-rename":`error`,"no-useless-return":`error`,"no-var":`error`,"no-void":`error`,"no-warning-comments":`error`,"no-with":`error`,"object-shorthand":`error`,"one-var":`error`,"operator-assignment":`error`,"prefer-arrow-callback":`error`,"prefer-const":`error`,"prefer-destructuring":`error`,"prefer-exponentiation-operator":`error`,"prefer-named-capture-group":`error`,"prefer-numeric-literals":`error`,"prefer-object-has-own":`error`,"prefer-object-spread":`error`,"prefer-promise-reject-errors":`error`,"prefer-regex-literals":`error`,"prefer-rest-params":`error`,"prefer-spread":`error`,"prefer-template":`error`,"preserve-caught-error":`error`,radix:`error`,"require-atomic-updates":`error`,"require-await":`error`,"require-unicode-regexp":`error`,"require-yield":`error`,"sort-imports":`error`,"sort-keys":`error`,"sort-vars":`error`,strict:`error`,"symbol-description":`error`,"unicode-bom":`error`,"use-isnan":`error`,"valid-typeof":`error`,"vars-on-top":`error`,yoda:`error`})})})),j=u(((e,t)=>{t.exports=Object.freeze({rules:Object.freeze({"constructor-super":`error`,"for-direction":`error`,"getter-return":`error`,"no-async-promise-executor":`error`,"no-case-declarations":`error`,"no-class-assign":`error`,"no-compare-neg-zero":`error`,"no-cond-assign":`error`,"no-const-assign":`error`,"no-constant-binary-expression":`error`,"no-constant-condition":`error`,"no-control-regex":`error`,"no-debugger":`error`,"no-delete-var":`error`,"no-dupe-args":`error`,"no-dupe-class-members":`error`,"no-dupe-else-if":`error`,"no-dupe-keys":`error`,"no-duplicate-case":`error`,"no-empty":`error`,"no-empty-character-class":`error`,"no-empty-pattern":`error`,"no-empty-static-block":`error`,"no-ex-assign":`error`,"no-extra-boolean-cast":`error`,"no-fallthrough":`error`,"no-func-assign":`error`,"no-global-assign":`error`,"no-import-assign":`error`,"no-invalid-regexp":`error`,"no-irregular-whitespace":`error`,"no-loss-of-precision":`error`,"no-misleading-character-class":`error`,"no-new-native-nonconstructor":`error`,"no-nonoctal-decimal-escape":`error`,"no-obj-calls":`error`,"no-octal":`error`,"no-prototype-builtins":`error`,"no-redeclare":`error`,"no-regex-spaces":`error`,"no-self-assign":`error`,"no-setter-return":`error`,"no-shadow-restricted-names":`error`,"no-sparse-arrays":`error`,"no-this-before-super":`error`,"no-undef":`error`,"no-unexpected-multiline":`error`,"no-unreachable":`error`,"no-unsafe-finally":`error`,"no-unsafe-negation":`error`,"no-unsafe-optional-chaining":`error`,"no-unused-labels":`error`,"no-unused-private-class-members":`error`,"no-unused-vars":`error`,"no-useless-backreference":`error`,"no-useless-catch":`error`,"no-useless-escape":`error`,"no-with":`error`,"require-yield":`error`,"use-isnan":`error`,"valid-typeof":`error`})})})),M=f(u(((e,t)=>{let{name:n,version:r}=k();t.exports={meta:{name:n,version:r},configs:{all:A(),recommended:j()}}}))(),1);function N(i,a){let o=a?.customGlobals??{};return O(M.default.configs.recommended,...r.configs.strictTypeChecked,...r.configs.stylisticTypeChecked,{languageOptions:{globals:{...n.builtin,...n.nodeBuiltin,...o},parser:r.parser,parserOptions:a?.parserOptions??{projectService:!0}},plugins:{"@typescript-eslint":r.plugin},rules:{"@typescript-eslint/array-type":[`warn`,{default:`generic`}],"@typescript-eslint/no-non-null-assertion":`off`,"@typescript-eslint/no-unused-vars":[`error`,{argsIgnorePattern:`^_`,caughtErrorsIgnorePattern:`^_`,destructuredArrayIgnorePattern:`^_`,ignoreRestSiblings:!0,varsIgnorePattern:`^_`}],"@typescript-eslint/prefer-nullish-coalescing":`off`}},t.configs.recommended,{rules:{"unicorn/filename-case":`warn`,"unicorn/no-array-callback-reference":`off`,"unicorn/prevent-abbreviations":`off`}},{plugins:{perfectionist:e},rules:{"sort-classes":`off`,"perfectionist/sort-imports":[`error`,{type:`natural`,order:`asc`,internalPattern:[`^~/.*`,`^@/.*`,`^#.*`]}],"perfectionist/sort-interfaces":`off`,"perfectionist/sort-jsx-props":`off`,"perfectionist/sort-maps":`off`,"perfectionist/sort-modules":`off`,"perfectionist/sort-objects":`off`,"perfectionist/sort-object-types":`off`,"perfectionist/sort-sets":`off`,"perfectionist/sort-switch-case":`off`,"perfectionist/sort-union-types":`off`}},...i??[])}export{N as getConfig};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsynaptic/eslint-config",
3
- "version": "3.1.2",
3
+ "version": "3.1.4",
4
4
  "description": "A common ESLint config factory for TypeScript projects",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -23,18 +23,18 @@
23
23
  "check-types": "tsc --noEmit --extendedDiagnostics"
24
24
  },
25
25
  "dependencies": {
26
- "eslint": "^9.39.2",
27
- "eslint-plugin-perfectionist": "^5.3.1",
26
+ "eslint-plugin-perfectionist": "^5.4.0",
28
27
  "eslint-plugin-unicorn": "^62.0.0",
29
- "globals": "^17.0.0",
30
- "typescript-eslint": "^8.53.0"
28
+ "globals": "^17.1.0",
29
+ "typescript-eslint": "^8.54.0"
31
30
  },
32
31
  "devDependencies": {
33
32
  "@eslint/config-helpers": "^0.5.1",
34
33
  "@eslint/js": "^9.39.2",
34
+ "eslint": "^9.39.2",
35
35
  "jiti": "^2.6.1",
36
- "prettier": "^3.8.0",
37
- "tsdown": "^0.20.0-beta.3",
36
+ "prettier": "^3.8.1",
37
+ "tsdown": "^0.19.0",
38
38
  "typescript": "^5.9.3"
39
39
  },
40
40
  "packageManager": "pnpm@10.25.0+sha512.5e82639027af37cf832061bcc6d639c219634488e0f2baebe785028a793de7b525ffcd3f7ff574f5e9860654e098fe852ba8ac5dd5cefe1767d23a020a92f501"