@xsynaptic/eslint-config 5.0.1 → 5.2.0

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.mjs CHANGED
@@ -91,8 +91,7 @@ function getConfig(customConfig, options) {
91
91
  "unicorn/no-invalid-argument-count": "off",
92
92
  "unicorn/no-top-level-assignment-in-function": "off",
93
93
  "unicorn/number-literal-case": ["error", { hexadecimalValue: "lowercase" }],
94
- "unicorn/prefer-iterator-to-array": "off",
95
- "unicorn/prefer-uint8array-base64": "off"
94
+ "unicorn/prefer-iterator-to-array": "off"
96
95
  } },
97
96
  perfectionist.configs["recommended-natural"],
98
97
  {
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["webComponentConfigs"],"sources":["../src/index.ts"],"sourcesContent":["import type { Config, ConfigWithExtends, ConfigWithExtendsArray } from '@eslint/config-helpers';\n\nimport eslintComments from '@eslint-community/eslint-plugin-eslint-comments';\nimport { defineConfig } from '@eslint/config-helpers';\nimport eslint from '@eslint/js';\nimport astroPlugin from 'eslint-plugin-astro';\nimport perfectionist from 'eslint-plugin-perfectionist';\nimport unicornPlugin from 'eslint-plugin-unicorn';\nimport { configs as webComponentConfigs } from 'eslint-plugin-wc';\nimport globals from 'globals';\nimport tseslint from 'typescript-eslint';\n\ntype RestrictedSyntaxOption = string | { message?: string; selector: string };\n\n// Extend via `getConfig(_, { restrictedSyntax })`\n// Redefining the rule clobbers these, as ESLint replaces rule keys wholesale\nexport const restrictedSyntaxDefaults: Array<RestrictedSyntaxOption> = [\n\t{\n\t\tmessage: 'Separate type imports into their own `import type` statement.',\n\t\tselector: 'ImportDeclaration[importKind=\"value\"] ImportSpecifier[importKind=\"type\"]',\n\t},\n\t{\n\t\tmessage:\n\t\t\t'Use a ternary returning undefined (condition ? <Element /> : undefined) instead of && for conditional rendering.',\n\t\tselector:\n\t\t\t':matches(JSXElement, JSXFragment) > JSXExpressionContainer > LogicalExpression[operator=\"&&\"]',\n\t},\n];\n\n// Astro plugin rules plus the `.astro` parser wiring and disableTypeChecked blocks it needs\n// Types can't resolve through the Astro parser so `astro check` owns type checking\n// For a11y, install eslint-plugin-jsx-a11y and pass a config (e.g. `astroPlugin.configs['flat/jsx-a11y-strict']`)\nexport function getAstroConfig(options?: {\n\ta11y?: ConfigWithExtendsArray;\n}): ConfigWithExtendsArray {\n\treturn [\n\t\t...astroPlugin.configs['flat/recommended'],\n\t\t...(options?.a11y ?? []),\n\t\t// Split from the disableTypeChecked block below so it doesn't clobber these parserOptions\n\t\t{\n\t\t\tfiles: ['**/*.astro'],\n\t\t\tlanguageOptions: {\n\t\t\t\tparserOptions: {\n\t\t\t\t\textraFileExtensions: ['.astro'],\n\t\t\t\t\tparser: tseslint.parser,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tfiles: ['**/*.astro'],\n\t\t\t...tseslint.configs.disableTypeChecked,\n\t\t},\n\t\t{\n\t\t\tfiles: ['**/*.astro/*.ts', '*.astro/*.ts'],\n\t\t\t...tseslint.configs.disableTypeChecked,\n\t\t},\n\t\t{\n\t\t\tfiles: ['**/*.js', '**/*.mjs', '**/*.cjs'],\n\t\t\t...tseslint.configs.disableTypeChecked,\n\t\t},\n\t];\n}\n\nexport function getConfig(\n\tcustomConfig?: ConfigWithExtendsArray,\n\toptions?: {\n\t\tcustomGlobals?: Record<string, 'readonly' | 'writeable'>;\n\t\tparserOptions?: NonNullable<Config['languageOptions']>['parserOptions'];\n\t\trestrictedSyntax?: Array<RestrictedSyntaxOption>;\n\t},\n): ConfigWithExtendsArray {\n\tconst customGlobals = options?.customGlobals ?? {};\n\tconst restrictedSyntax = [...restrictedSyntaxDefaults, ...(options?.restrictedSyntax ?? [])];\n\n\tconst baseConfig = [\n\t\teslint.configs.recommended,\n\t\t...tseslint.configs.strictTypeChecked,\n\t\t...tseslint.configs.stylisticTypeChecked,\n\t\t{\n\t\t\tlanguageOptions: {\n\t\t\t\tglobals: {\n\t\t\t\t\t...globals.builtin,\n\t\t\t\t\t...globals.nodeBuiltin,\n\t\t\t\t\t...customGlobals,\n\t\t\t\t},\n\t\t\t\tparser: tseslint.parser,\n\t\t\t\tparserOptions: options?.parserOptions ?? {\n\t\t\t\t\tprojectService: true,\n\t\t\t\t},\n\t\t\t},\n\t\t\tplugins: {\n\t\t\t\t'@typescript-eslint': tseslint.plugin,\n\t\t\t},\n\t\t\trules: {\n\t\t\t\t'@typescript-eslint/array-type': ['warn', { default: 'generic' }],\n\t\t\t\t'@typescript-eslint/consistent-type-imports': [\n\t\t\t\t\t'error',\n\t\t\t\t\t{ fixStyle: 'separate-type-imports', prefer: 'type-imports' },\n\t\t\t\t],\n\t\t\t\t'@typescript-eslint/no-non-null-assertion': 'off',\n\t\t\t\t'@typescript-eslint/no-unused-vars': [\n\t\t\t\t\t'error',\n\t\t\t\t\t{\n\t\t\t\t\t\targsIgnorePattern: '^_',\n\t\t\t\t\t\tcaughtErrorsIgnorePattern: '^_',\n\t\t\t\t\t\tdestructuredArrayIgnorePattern: '^_',\n\t\t\t\t\t\tignoreRestSiblings: true,\n\t\t\t\t\t\tvarsIgnorePattern: '^_',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'@typescript-eslint/prefer-nullish-coalescing': 'off',\n\t\t\t\t'no-restricted-syntax': ['error', ...restrictedSyntax],\n\t\t\t},\n\t\t},\n\t\tunicornPlugin.configs.recommended,\n\t\t{\n\t\t\trules: {\n\t\t\t\t'unicorn/consistent-class-member-order': 'off', // Hoists private helpers above public lifecycle methods\n\t\t\t\t'unicorn/consistent-conditional-object-spread': ['error', 'ternary'], // Conditional inclusion stays a ternary, never &&, matching our JSX rendering rule\n\t\t\t\t'unicorn/filename-case': 'warn',\n\t\t\t\t'unicorn/max-nested-calls': ['error', { max: 5 }], // Zod schema composition and data pipelines legitimately nest past the default of 3\n\t\t\t\t'unicorn/name-replacements': 'off', // I *like* abbreviations!\n\t\t\t\t'unicorn/no-array-callback-reference': 'off', // I prefer this pattern for filtering/sorting content\n\t\t\t\t'unicorn/no-invalid-argument-count': 'off', // Off for performance (~1s per run); call arity is already enforced by tsc\n\t\t\t\t'unicorn/no-top-level-assignment-in-function': 'off', // Flags the legitimate lazy-singleton (instance ??= load()) cache pattern\n\t\t\t\t'unicorn/number-literal-case': ['error', { hexadecimalValue: 'lowercase' }], // Lowercase hex to match Prettier\n\t\t\t\t'unicorn/prefer-iterator-to-array': 'off', // Pushes Iterator#toArray(), which needs the esnext.iterator lib; spreads stay browser-safe\n\t\t\t\t'unicorn/prefer-uint8array-base64': 'off', // Uint8Array#toBase64() has thin browser support (Safari 18.4+)\n\t\t\t},\n\t\t},\n\t\tperfectionist.configs['recommended-natural'],\n\t\t{\n\t\t\tplugins: { '@eslint-community/eslint-comments': eslintComments },\n\t\t\trules: {\n\t\t\t\t'@eslint-community/eslint-comments/require-description': [\n\t\t\t\t\t'error',\n\t\t\t\t\t{ ignore: ['eslint-enable'] },\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t] satisfies Array<ConfigWithExtends>;\n\n\treturn defineConfig(...baseConfig, ...(customConfig ?? []));\n}\n\n// Opt-in rules for authoring native web components\nexport function getWebComponentConfig(files: Array<string>): ConfigWithExtends {\n\tconst bestPractice = webComponentConfigs['flat/best-practice'];\n\n\treturn {\n\t\t...bestPractice,\n\t\tfiles,\n\t\trules: {\n\t\t\t...bestPractice?.rules,\n\t\t\t'wc/define-tag-after-class-definition': 'error',\n\t\t\t'wc/guard-define-call': 'error',\n\t\t\t'wc/guard-super-call': 'off', // Redundant under strict TS; we avoid custom-element inheritance\n\t\t\t'wc/max-elements-per-file': 'error',\n\t\t\t'wc/no-child-traversal-in-connectedcallback': 'off',\n\t\t\t'wc/no-constructor': 'error',\n\t\t\t'wc/no-exports-with-element': 'error',\n\t\t\t'wc/no-method-prefixed-with-on': 'error',\n\t\t},\n\t};\n}\n"],"mappings":";;;;;;;;;;AAgBA,MAAa,2BAA0D,CACtE;CACC,SAAS;CACT,UAAU;AACX,GACA;CACC,SACC;CACD,UACC;AACF,CACD;AAKA,SAAgB,eAAe,SAEJ;CAC1B,OAAO;EACN,GAAG,YAAY,QAAQ;EACvB,GAAI,SAAS,QAAQ,CAAC;EAEtB;GACC,OAAO,CAAC,YAAY;GACpB,iBAAiB,EAChB,eAAe;IACd,qBAAqB,CAAC,QAAQ;IAC9B,QAAQ,SAAS;GAClB,EACD;EACD;EACA;GACC,OAAO,CAAC,YAAY;GACpB,GAAG,SAAS,QAAQ;EACrB;EACA;GACC,OAAO,CAAC,mBAAmB,cAAc;GACzC,GAAG,SAAS,QAAQ;EACrB;EACA;GACC,OAAO;IAAC;IAAW;IAAY;GAAU;GACzC,GAAG,SAAS,QAAQ;EACrB;CACD;AACD;AAEA,SAAgB,UACf,cACA,SAKyB;CACzB,MAAM,gBAAgB,SAAS,iBAAiB,CAAC;CACjD,MAAM,mBAAmB,CAAC,GAAG,0BAA0B,GAAI,SAAS,oBAAoB,CAAC,CAAE;CAsE3F,OAAO,aAAa,GAAG;EAnEtB,OAAO,QAAQ;EACf,GAAG,SAAS,QAAQ;EACpB,GAAG,SAAS,QAAQ;EACpB;GACC,iBAAiB;IAChB,SAAS;KACR,GAAG,QAAQ;KACX,GAAG,QAAQ;KACX,GAAG;IACJ;IACA,QAAQ,SAAS;IACjB,eAAe,SAAS,iBAAiB,EACxC,gBAAgB,KACjB;GACD;GACA,SAAS,EACR,sBAAsB,SAAS,OAChC;GACA,OAAO;IACN,iCAAiC,CAAC,QAAQ,EAAE,SAAS,UAAU,CAAC;IAChE,8CAA8C,CAC7C,SACA;KAAE,UAAU;KAAyB,QAAQ;IAAe,CAC7D;IACA,4CAA4C;IAC5C,qCAAqC,CACpC,SACA;KACC,mBAAmB;KACnB,2BAA2B;KAC3B,gCAAgC;KAChC,oBAAoB;KACpB,mBAAmB;IACpB,CACD;IACA,gDAAgD;IAChD,wBAAwB,CAAC,SAAS,GAAG,gBAAgB;GACtD;EACD;EACA,cAAc,QAAQ;EACtB,EACC,OAAO;GACN,yCAAyC;GACzC,gDAAgD,CAAC,SAAS,SAAS;GACnE,yBAAyB;GACzB,4BAA4B,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC;GAChD,6BAA6B;GAC7B,uCAAuC;GACvC,qCAAqC;GACrC,+CAA+C;GAC/C,+BAA+B,CAAC,SAAS,EAAE,kBAAkB,YAAY,CAAC;GAC1E,oCAAoC;GACpC,oCAAoC;EACrC,EACD;EACA,cAAc,QAAQ;EACtB;GACC,SAAS,EAAE,qCAAqC,eAAe;GAC/D,OAAO,EACN,yDAAyD,CACxD,SACA,EAAE,QAAQ,CAAC,eAAe,EAAE,CAC7B,EACD;EACD;CAG+B,GAAG,GAAI,gBAAgB,CAAC,CAAE;AAC3D;AAGA,SAAgB,sBAAsB,OAAyC;CAC9E,MAAM,eAAeA,QAAoB;CAEzC,OAAO;EACN,GAAG;EACH;EACA,OAAO;GACN,GAAG,cAAc;GACjB,wCAAwC;GACxC,wBAAwB;GACxB,uBAAuB;GACvB,4BAA4B;GAC5B,8CAA8C;GAC9C,qBAAqB;GACrB,8BAA8B;GAC9B,iCAAiC;EAClC;CACD;AACD"}
1
+ {"version":3,"file":"index.mjs","names":["webComponentConfigs"],"sources":["../src/index.ts"],"sourcesContent":["import type { Config, ConfigWithExtends, ConfigWithExtendsArray } from '@eslint/config-helpers';\n\nimport eslintComments from '@eslint-community/eslint-plugin-eslint-comments';\nimport { defineConfig } from '@eslint/config-helpers';\nimport eslint from '@eslint/js';\nimport astroPlugin from 'eslint-plugin-astro';\nimport perfectionist from 'eslint-plugin-perfectionist';\nimport unicornPlugin from 'eslint-plugin-unicorn';\nimport { configs as webComponentConfigs } from 'eslint-plugin-wc';\nimport globals from 'globals';\nimport tseslint from 'typescript-eslint';\n\ntype RestrictedSyntaxOption = string | { message?: string; selector: string };\n\n// Extend via `getConfig(_, { restrictedSyntax })`\n// Redefining the rule clobbers these, as ESLint replaces rule keys wholesale\nexport const restrictedSyntaxDefaults: Array<RestrictedSyntaxOption> = [\n\t{\n\t\tmessage: 'Separate type imports into their own `import type` statement.',\n\t\tselector: 'ImportDeclaration[importKind=\"value\"] ImportSpecifier[importKind=\"type\"]',\n\t},\n\t{\n\t\tmessage:\n\t\t\t'Use a ternary returning undefined (condition ? <Element /> : undefined) instead of && for conditional rendering.',\n\t\tselector:\n\t\t\t':matches(JSXElement, JSXFragment) > JSXExpressionContainer > LogicalExpression[operator=\"&&\"]',\n\t},\n];\n\n// Astro plugin rules plus the `.astro` parser wiring and disableTypeChecked blocks it needs\n// Types can't resolve through the Astro parser so `astro check` owns type checking\n// For a11y, install eslint-plugin-jsx-a11y and pass a config (e.g. `astroPlugin.configs['flat/jsx-a11y-strict']`)\nexport function getAstroConfig(options?: {\n\ta11y?: ConfigWithExtendsArray;\n}): ConfigWithExtendsArray {\n\treturn [\n\t\t...astroPlugin.configs['flat/recommended'],\n\t\t...(options?.a11y ?? []),\n\t\t// Split from the disableTypeChecked block below so it doesn't clobber these parserOptions\n\t\t{\n\t\t\tfiles: ['**/*.astro'],\n\t\t\tlanguageOptions: {\n\t\t\t\tparserOptions: {\n\t\t\t\t\textraFileExtensions: ['.astro'],\n\t\t\t\t\tparser: tseslint.parser,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tfiles: ['**/*.astro'],\n\t\t\t...tseslint.configs.disableTypeChecked,\n\t\t},\n\t\t{\n\t\t\tfiles: ['**/*.astro/*.ts', '*.astro/*.ts'],\n\t\t\t...tseslint.configs.disableTypeChecked,\n\t\t},\n\t\t{\n\t\t\tfiles: ['**/*.js', '**/*.mjs', '**/*.cjs'],\n\t\t\t...tseslint.configs.disableTypeChecked,\n\t\t},\n\t];\n}\n\nexport function getConfig(\n\tcustomConfig?: ConfigWithExtendsArray,\n\toptions?: {\n\t\tcustomGlobals?: Record<string, 'readonly' | 'writeable'>;\n\t\tparserOptions?: NonNullable<Config['languageOptions']>['parserOptions'];\n\t\trestrictedSyntax?: Array<RestrictedSyntaxOption>;\n\t},\n): ConfigWithExtendsArray {\n\tconst customGlobals = options?.customGlobals ?? {};\n\tconst restrictedSyntax = [...restrictedSyntaxDefaults, ...(options?.restrictedSyntax ?? [])];\n\n\tconst baseConfig = [\n\t\teslint.configs.recommended,\n\t\t...tseslint.configs.strictTypeChecked,\n\t\t...tseslint.configs.stylisticTypeChecked,\n\t\t{\n\t\t\tlanguageOptions: {\n\t\t\t\tglobals: {\n\t\t\t\t\t...globals.builtin,\n\t\t\t\t\t...globals.nodeBuiltin,\n\t\t\t\t\t...customGlobals,\n\t\t\t\t},\n\t\t\t\tparser: tseslint.parser,\n\t\t\t\tparserOptions: options?.parserOptions ?? {\n\t\t\t\t\tprojectService: true,\n\t\t\t\t},\n\t\t\t},\n\t\t\tplugins: {\n\t\t\t\t'@typescript-eslint': tseslint.plugin,\n\t\t\t},\n\t\t\trules: {\n\t\t\t\t'@typescript-eslint/array-type': ['warn', { default: 'generic' }],\n\t\t\t\t'@typescript-eslint/consistent-type-imports': [\n\t\t\t\t\t'error',\n\t\t\t\t\t{ fixStyle: 'separate-type-imports', prefer: 'type-imports' },\n\t\t\t\t],\n\t\t\t\t'@typescript-eslint/no-non-null-assertion': 'off',\n\t\t\t\t'@typescript-eslint/no-unused-vars': [\n\t\t\t\t\t'error',\n\t\t\t\t\t{\n\t\t\t\t\t\targsIgnorePattern: '^_',\n\t\t\t\t\t\tcaughtErrorsIgnorePattern: '^_',\n\t\t\t\t\t\tdestructuredArrayIgnorePattern: '^_',\n\t\t\t\t\t\tignoreRestSiblings: true,\n\t\t\t\t\t\tvarsIgnorePattern: '^_',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'@typescript-eslint/prefer-nullish-coalescing': 'off',\n\t\t\t\t'no-restricted-syntax': ['error', ...restrictedSyntax],\n\t\t\t},\n\t\t},\n\t\tunicornPlugin.configs.recommended,\n\t\t{\n\t\t\trules: {\n\t\t\t\t'unicorn/consistent-class-member-order': 'off', // Hoists private helpers above public lifecycle methods\n\t\t\t\t'unicorn/consistent-conditional-object-spread': ['error', 'ternary'], // Conditional inclusion stays a ternary, never &&, matching our JSX rendering rule\n\t\t\t\t'unicorn/filename-case': 'warn',\n\t\t\t\t'unicorn/max-nested-calls': ['error', { max: 5 }], // Zod schema composition and data pipelines legitimately nest past the default of 3\n\t\t\t\t'unicorn/name-replacements': 'off', // I *like* abbreviations!\n\t\t\t\t'unicorn/no-array-callback-reference': 'off', // I prefer this pattern for filtering/sorting content\n\t\t\t\t'unicorn/no-invalid-argument-count': 'off', // Off for performance (~1s per run); call arity is already enforced by tsc\n\t\t\t\t'unicorn/no-top-level-assignment-in-function': 'off', // Flags the legitimate lazy-singleton (instance ??= load()) cache pattern\n\t\t\t\t'unicorn/number-literal-case': ['error', { hexadecimalValue: 'lowercase' }], // Lowercase hex to match Prettier\n\t\t\t\t'unicorn/prefer-iterator-to-array': 'off', // Pushes Iterator#toArray(), which needs the esnext.iterator lib; spreads stay browser-safe\n\t\t\t},\n\t\t},\n\t\tperfectionist.configs['recommended-natural'],\n\t\t{\n\t\t\tplugins: { '@eslint-community/eslint-comments': eslintComments },\n\t\t\trules: {\n\t\t\t\t'@eslint-community/eslint-comments/require-description': [\n\t\t\t\t\t'error',\n\t\t\t\t\t{ ignore: ['eslint-enable'] },\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t] satisfies Array<ConfigWithExtends>;\n\n\treturn defineConfig(...baseConfig, ...(customConfig ?? []));\n}\n\n// Opt-in rules for authoring native web components\nexport function getWebComponentConfig(files: Array<string>): ConfigWithExtends {\n\tconst bestPractice = webComponentConfigs['flat/best-practice'];\n\n\treturn {\n\t\t...bestPractice,\n\t\tfiles,\n\t\trules: {\n\t\t\t...bestPractice?.rules,\n\t\t\t'wc/define-tag-after-class-definition': 'error',\n\t\t\t'wc/guard-define-call': 'error',\n\t\t\t'wc/guard-super-call': 'off', // Redundant under strict TS; we avoid custom-element inheritance\n\t\t\t'wc/max-elements-per-file': 'error',\n\t\t\t'wc/no-child-traversal-in-connectedcallback': 'off',\n\t\t\t'wc/no-constructor': 'error',\n\t\t\t'wc/no-exports-with-element': 'error',\n\t\t\t'wc/no-method-prefixed-with-on': 'error',\n\t\t},\n\t};\n}\n"],"mappings":";;;;;;;;;;AAgBA,MAAa,2BAA0D,CACtE;CACC,SAAS;CACT,UAAU;AACX,GACA;CACC,SACC;CACD,UACC;AACF,CACD;AAKA,SAAgB,eAAe,SAEJ;CAC1B,OAAO;EACN,GAAG,YAAY,QAAQ;EACvB,GAAI,SAAS,QAAQ,CAAC;EAEtB;GACC,OAAO,CAAC,YAAY;GACpB,iBAAiB,EAChB,eAAe;IACd,qBAAqB,CAAC,QAAQ;IAC9B,QAAQ,SAAS;GAClB,EACD;EACD;EACA;GACC,OAAO,CAAC,YAAY;GACpB,GAAG,SAAS,QAAQ;EACrB;EACA;GACC,OAAO,CAAC,mBAAmB,cAAc;GACzC,GAAG,SAAS,QAAQ;EACrB;EACA;GACC,OAAO;IAAC;IAAW;IAAY;GAAU;GACzC,GAAG,SAAS,QAAQ;EACrB;CACD;AACD;AAEA,SAAgB,UACf,cACA,SAKyB;CACzB,MAAM,gBAAgB,SAAS,iBAAiB,CAAC;CACjD,MAAM,mBAAmB,CAAC,GAAG,0BAA0B,GAAI,SAAS,oBAAoB,CAAC,CAAE;CAqE3F,OAAO,aAAa,GAAG;EAlEtB,OAAO,QAAQ;EACf,GAAG,SAAS,QAAQ;EACpB,GAAG,SAAS,QAAQ;EACpB;GACC,iBAAiB;IAChB,SAAS;KACR,GAAG,QAAQ;KACX,GAAG,QAAQ;KACX,GAAG;IACJ;IACA,QAAQ,SAAS;IACjB,eAAe,SAAS,iBAAiB,EACxC,gBAAgB,KACjB;GACD;GACA,SAAS,EACR,sBAAsB,SAAS,OAChC;GACA,OAAO;IACN,iCAAiC,CAAC,QAAQ,EAAE,SAAS,UAAU,CAAC;IAChE,8CAA8C,CAC7C,SACA;KAAE,UAAU;KAAyB,QAAQ;IAAe,CAC7D;IACA,4CAA4C;IAC5C,qCAAqC,CACpC,SACA;KACC,mBAAmB;KACnB,2BAA2B;KAC3B,gCAAgC;KAChC,oBAAoB;KACpB,mBAAmB;IACpB,CACD;IACA,gDAAgD;IAChD,wBAAwB,CAAC,SAAS,GAAG,gBAAgB;GACtD;EACD;EACA,cAAc,QAAQ;EACtB,EACC,OAAO;GACN,yCAAyC;GACzC,gDAAgD,CAAC,SAAS,SAAS;GACnE,yBAAyB;GACzB,4BAA4B,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC;GAChD,6BAA6B;GAC7B,uCAAuC;GACvC,qCAAqC;GACrC,+CAA+C;GAC/C,+BAA+B,CAAC,SAAS,EAAE,kBAAkB,YAAY,CAAC;GAC1E,oCAAoC;EACrC,EACD;EACA,cAAc,QAAQ;EACtB;GACC,SAAS,EAAE,qCAAqC,eAAe;GAC/D,OAAO,EACN,yDAAyD,CACxD,SACA,EAAE,QAAQ,CAAC,eAAe,EAAE,CAC7B,EACD;EACD;CAG+B,GAAG,GAAI,gBAAgB,CAAC,CAAE;AAC3D;AAGA,SAAgB,sBAAsB,OAAyC;CAC9E,MAAM,eAAeA,QAAoB;CAEzC,OAAO;EACN,GAAG;EACH;EACA,OAAO;GACN,GAAG,cAAc;GACjB,wCAAwC;GACxC,wBAAwB;GACxB,uBAAuB;GACvB,4BAA4B;GAC5B,8CAA8C;GAC9C,qBAAqB;GACrB,8BAA8B;GAC9B,iCAAiC;EAClC;CACD;AACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsynaptic/eslint-config",
3
- "version": "5.0.1",
3
+ "version": "5.2.0",
4
4
  "description": "An ESLint config factory for TypeScript projects",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -35,12 +35,12 @@
35
35
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
36
36
  "@eslint/config-helpers": "^0.6.0",
37
37
  "@eslint/js": "^10.0.1",
38
- "eslint-plugin-astro": "^2.0.0",
39
- "eslint-plugin-perfectionist": "^5.9.1",
40
- "eslint-plugin-unicorn": "^68.0.0",
38
+ "eslint-plugin-astro": "^2.1.1",
39
+ "eslint-plugin-perfectionist": "^5.10.0",
40
+ "eslint-plugin-unicorn": "^71.1.0",
41
41
  "eslint-plugin-wc": "^3.1.0",
42
42
  "globals": "^17.7.0",
43
- "typescript-eslint": "^8.62.0"
43
+ "typescript-eslint": "^8.63.0"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsdown",