From 577341b08b691bfa19a785ca22655008ddef2d72 Mon Sep 17 00:00:00 2001 From: Liam Rella Date: Mon, 24 Feb 2025 16:32:08 +1030 Subject: [PATCH] chore(eslint): update rules --- .../eslint-config/src/presets/prettier.ts | 180 ++++++++++++++++++ packages/eslint-config/src/typegen.d.ts | 4 - pnpm-lock.yaml | 80 ++++---- 3 files changed, 220 insertions(+), 44 deletions(-) diff --git a/packages/eslint-config/src/presets/prettier.ts b/packages/eslint-config/src/presets/prettier.ts index 3e97556..b934342 100644 --- a/packages/eslint-config/src/presets/prettier.ts +++ b/packages/eslint-config/src/presets/prettier.ts @@ -5,6 +5,20 @@ export const prettierRules: Record & Rules = { // Begin expansion 'eslint-config-prettier' 'rules' curly: 0, 'no-unexpected-multiline': 0, + // "@stylistic/lines-around-comment":0, + // "@stylistic/max-len":0, + // "@stylistic/no-confusing-arrow":0, + // "@stylistic/no-mixed-operators":0, + // "@stylistic/no-tabs":0, + // "@stylistic/quotes":0, + // "@stylistic/js/lines-around-comment":0, + // "@stylistic/js/max-len":0, + // "@stylistic/js/no-confusing-arrow":0, + // "@stylistic/js/no-mixed-operators":0, + // "@stylistic/js/no-tabs":0, + // "@stylistic/js/quotes":0, + // "@stylistic/ts/lines-around-comment":0, + // "@stylistic/ts/quotes":0, 'ts/lines-around-comment': 0, 'ts/quotes': 0, 'babel/quotes': 0, @@ -13,6 +27,172 @@ export const prettierRules: Record & Rules = { 'vue/max-len': 0, '@babel/object-curly-spacing': 'off', '@babel/semi': 'off', + // "@stylistic/array-bracket-newline":"off", + // "@stylistic/array-bracket-spacing":"off", + // "@stylistic/array-element-newline":"off", + // "@stylistic/arrow-parens":"off", + // "@stylistic/arrow-spacing":"off", + // "@stylistic/block-spacing":"off", + // "@stylistic/brace-style":"off", + // "@stylistic/comma-dangle":"off", + // "@stylistic/comma-spacing":"off", + // "@stylistic/comma-style":"off", + // "@stylistic/computed-property-spacing":"off", + // "@stylistic/dot-location":"off", + // "@stylistic/eol-last":"off", + // "@stylistic/func-call-spacing":"off", + // "@stylistic/function-call-argument-newline":"off", + // "@stylistic/function-call-spacing":"off", + // "@stylistic/function-paren-newline":"off", + // "@stylistic/generator-star-spacing":"off", + // "@stylistic/implicit-arrow-linebreak":"off", + // "@stylistic/indent":"off", + // "@stylistic/jsx-quotes":"off", + // "@stylistic/key-spacing":"off", + // "@stylistic/keyword-spacing":"off", + // "@stylistic/linebreak-style":"off", + // "@stylistic/max-statements-per-line":"off", + // "@stylistic/multiline-ternary":"off", + // "@stylistic/new-parens":"off", + // "@stylistic/newline-per-chained-call":"off", + // "@stylistic/no-extra-parens":"off", + // "@stylistic/no-extra-semi":"off", + // "@stylistic/no-floating-decimal":"off", + // "@stylistic/no-mixed-spaces-and-tabs":"off", + // "@stylistic/no-multi-spaces":"off", + // "@stylistic/no-multiple-empty-lines":"off", + // "@stylistic/no-trailing-spaces":"off", + // "@stylistic/no-whitespace-before-property":"off", + // "@stylistic/nonblock-statement-body-position":"off", + // "@stylistic/object-curly-newline":"off", + // "@stylistic/object-curly-spacing":"off", + // "@stylistic/object-property-newline":"off", + // "@stylistic/one-var-declaration-per-line":"off", + // "@stylistic/operator-linebreak":"off", + // "@stylistic/padded-blocks":"off", + // "@stylistic/quote-props":"off", + // "@stylistic/rest-spread-spacing":"off", + // "@stylistic/semi":"off", + // "@stylistic/semi-spacing":"off", + // "@stylistic/semi-style":"off", + // "@stylistic/space-before-blocks":"off", + // "@stylistic/space-before-function-paren":"off", + // "@stylistic/space-in-parens":"off", + // "@stylistic/space-infix-ops":"off", + // "@stylistic/space-unary-ops":"off", + // "@stylistic/switch-colon-spacing":"off", + // "@stylistic/template-curly-spacing":"off", + // "@stylistic/template-tag-spacing":"off", + // "@stylistic/wrap-iife":"off", + // "@stylistic/wrap-regex":"off", + // "@stylistic/yield-star-spacing":"off", + // "@stylistic/member-delimiter-style":"off", + // "@stylistic/type-annotation-spacing":"off", + // "@stylistic/jsx-child-element-spacing":"off", + // "@stylistic/jsx-closing-bracket-location":"off", + // "@stylistic/jsx-closing-tag-location":"off", + // "@stylistic/jsx-curly-newline":"off", + // "@stylistic/jsx-curly-spacing":"off", + // "@stylistic/jsx-equals-spacing":"off", + // "@stylistic/jsx-first-prop-new-line":"off", + // "@stylistic/jsx-indent":"off", + // "@stylistic/jsx-indent-props":"off", + // "@stylistic/jsx-max-props-per-line":"off", + // "@stylistic/jsx-newline":"off", + // "@stylistic/jsx-one-expression-per-line":"off", + // "@stylistic/jsx-props-no-multi-spaces":"off", + // "@stylistic/jsx-tag-spacing":"off", + // "@stylistic/jsx-wrap-multilines":"off", + // "@stylistic/indent-binary-ops":"off", + // "@stylistic/type-generic-spacing":"off", + // "@stylistic/type-named-tuple-spacing":"off", + // "@stylistic/js/array-bracket-newline":"off", + // "@stylistic/js/array-bracket-spacing":"off", + // "@stylistic/js/array-element-newline":"off", + // "@stylistic/js/arrow-parens":"off", + // "@stylistic/js/arrow-spacing":"off", + // "@stylistic/js/block-spacing":"off", + // "@stylistic/js/brace-style":"off", + // "@stylistic/js/comma-dangle":"off", + // "@stylistic/js/comma-spacing":"off", + // "@stylistic/js/comma-style":"off", + // "@stylistic/js/computed-property-spacing":"off", + // "@stylistic/js/dot-location":"off", + // "@stylistic/js/eol-last":"off", + // "@stylistic/js/func-call-spacing":"off", + // "@stylistic/js/function-call-argument-newline":"off", + // "@stylistic/js/function-call-spacing":"off", + // "@stylistic/js/function-paren-newline":"off", + // "@stylistic/js/generator-star-spacing":"off", + // "@stylistic/js/implicit-arrow-linebreak":"off", + // "@stylistic/js/indent":"off", + // "@stylistic/js/jsx-quotes":"off", + // "@stylistic/js/key-spacing":"off", + // "@stylistic/js/keyword-spacing":"off", + // "@stylistic/js/linebreak-style":"off", + // "@stylistic/js/max-statements-per-line":"off", + // "@stylistic/js/multiline-ternary":"off", + // "@stylistic/js/new-parens":"off", + // "@stylistic/js/newline-per-chained-call":"off", + // "@stylistic/js/no-extra-parens":"off", + // "@stylistic/js/no-extra-semi":"off", + // "@stylistic/js/no-floating-decimal":"off", + // "@stylistic/js/no-mixed-spaces-and-tabs":"off", + // "@stylistic/js/no-multi-spaces":"off", + // "@stylistic/js/no-multiple-empty-lines":"off", + // "@stylistic/js/no-trailing-spaces":"off", + // "@stylistic/js/no-whitespace-before-property":"off", + // "@stylistic/js/nonblock-statement-body-position":"off", + // "@stylistic/js/object-curly-newline":"off", + // "@stylistic/js/object-curly-spacing":"off", + // "@stylistic/js/object-property-newline":"off", + // "@stylistic/js/one-var-declaration-per-line":"off", + // "@stylistic/js/operator-linebreak":"off", + // "@stylistic/js/padded-blocks":"off", + // "@stylistic/js/quote-props":"off", + // "@stylistic/js/rest-spread-spacing":"off", + // "@stylistic/js/semi":"off", + // "@stylistic/js/semi-spacing":"off", + // "@stylistic/js/semi-style":"off", + // "@stylistic/js/space-before-blocks":"off", + // "@stylistic/js/space-before-function-paren":"off", + // "@stylistic/js/space-in-parens":"off", + // "@stylistic/js/space-infix-ops":"off", + // "@stylistic/js/space-unary-ops":"off", + // "@stylistic/js/switch-colon-spacing":"off", + // "@stylistic/js/template-curly-spacing":"off", + // "@stylistic/js/template-tag-spacing":"off", + // "@stylistic/js/wrap-iife":"off", + // "@stylistic/js/wrap-regex":"off", + // "@stylistic/js/yield-star-spacing":"off", + // "@stylistic/ts/block-spacing":"off", + // "@stylistic/ts/brace-style":"off", + // "@stylistic/ts/comma-dangle":"off", + // "@stylistic/ts/comma-spacing":"off", + // "@stylistic/ts/func-call-spacing":"off", + // "@stylistic/ts/function-call-spacing":"off", + // "@stylistic/ts/indent":"off", + // "@stylistic/ts/key-spacing":"off", + // "@stylistic/ts/keyword-spacing":"off", + // "@stylistic/ts/member-delimiter-style":"off", + // "@stylistic/ts/no-extra-parens":"off", + // "@stylistic/ts/no-extra-semi":"off", + // "@stylistic/ts/object-curly-spacing":"off", + // "@stylistic/ts/semi":"off", + // "@stylistic/ts/space-before-blocks":"off", + // "@stylistic/ts/space-before-function-paren":"off", + // "@stylistic/ts/space-infix-ops":"off", + // "@stylistic/ts/type-annotation-spacing":"off", + // "@stylistic/jsx/jsx-child-element-spacing":"off", + // "@stylistic/jsx/jsx-closing-bracket-location":"off", + // "@stylistic/jsx/jsx-closing-tag-location":"off", + // "@stylistic/jsx/jsx-curly-newline":"off", + // "@stylistic/jsx/jsx-curly-spacing":"off", + // "@stylistic/jsx/jsx-equals-spacing":"off", + // "@stylistic/jsx/jsx-first-prop-new-line":"off", + // "@stylistic/jsx/jsx-indent":"off", + // "@stylistic/jsx/jsx-indent-props":"off", + // "@stylistic/jsx/jsx-max-props-per-line":"off", 'ts/block-spacing': 'off', 'ts/brace-style': 'off', 'ts/comma-dangle': 'off', diff --git a/packages/eslint-config/src/typegen.d.ts b/packages/eslint-config/src/typegen.d.ts index a6b7974..d28368d 100644 --- a/packages/eslint-config/src/typegen.d.ts +++ b/packages/eslint-config/src/typegen.d.ts @@ -543,10 +543,6 @@ export interface RuleOptions { * Requires the `author` property to be present. */ 'json-package/require-author'?: Linter.RuleEntry<[]>; - /** - * Requires the `files` property to be present. - */ - 'json-package/require-files'?: Linter.RuleEntry<[]>; /** * Requires the `keywords` property to be present. */ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1769746..92b0954 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -156,22 +156,22 @@ importers: specifier: ^4.4.1 version: 4.4.1(eslint@9.20.1(jiti@2.4.2)) '@html-eslint/eslint-plugin': - specifier: ^0.35.0 - version: 0.35.0 + specifier: ^0.34.0 + version: 0.34.0 '@html-eslint/parser': - specifier: ^0.35.0 - version: 0.35.0 + specifier: ^0.34.0 + version: 0.34.0 '@pinojs/json-colorizer': specifier: ^4.0.0 version: 4.0.0 '@typescript-eslint/eslint-plugin': - specifier: ^8.24.0 + specifier: ^8.23.0 version: 8.24.1(@typescript-eslint/parser@8.24.1(eslint@9.20.1(jiti@2.4.2))(typescript@5.7.3))(eslint@9.20.1(jiti@2.4.2))(typescript@5.7.3) '@typescript-eslint/parser': - specifier: ^8.24.0 + specifier: ^8.23.0 version: 8.24.1(eslint@9.20.1(jiti@2.4.2))(typescript@5.7.3) '@vitest/eslint-plugin': - specifier: ^1.1.31 + specifier: ^1.1.27 version: 1.1.31(@typescript-eslint/utils@8.24.1(eslint@9.20.1(jiti@2.4.2))(typescript@5.7.3))(eslint@9.20.1(jiti@2.4.2))(typescript@5.7.3)(vitest@3.0.6(@types/debug@4.1.12)(@types/node@22.13.4)(jiti@2.4.2)(tsx@4.19.3)(yaml@2.7.0)) cosmiconfig: specifier: ^9.0.0 @@ -207,8 +207,8 @@ importers: specifier: ^3.3.0 version: 3.3.0 eslint-plugin-package-json: - specifier: ^0.26.0 - version: 0.26.0(@types/estree@1.0.6)(eslint@9.20.1(jiti@2.4.2))(jsonc-eslint-parser@2.4.0) + specifier: ^0.25.0 + version: 0.25.0(@types/estree@1.0.6)(eslint@9.20.1(jiti@2.4.2))(jsonc-eslint-parser@2.4.0) eslint-plugin-svelte: specifier: ^2.46.1 version: 2.46.1(eslint@9.20.1(jiti@2.4.2))(svelte@5.20.2) @@ -225,10 +225,10 @@ importers: specifier: ^0.3.1 version: 0.3.1 fs-extra: - specifier: ^11.2.0 + specifier: ^11.3.0 version: 11.3.0 globals: - specifier: ^15.13.0 + specifier: ^15.14.0 version: 15.15.0 jsonc-eslint-parser: specifier: ^2.4.0 @@ -256,8 +256,8 @@ importers: specifier: ^9.0.0 version: 9.0.0 eslint-config-prettier: - specifier: ^9.1.0 - version: 9.1.0(eslint@9.20.1(jiti@2.4.2)) + specifier: ^10.0.1 + version: 10.0.1(eslint@9.20.1(jiti@2.4.2)) eslint-config-xo-typescript: specifier: ^7.0.0 version: 7.0.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.7.3) @@ -265,7 +265,7 @@ importers: specifier: ^1.0.0 version: 1.0.0(eslint@9.20.1(jiti@2.4.2)) svelte: - specifier: ^5.20.1 + specifier: ^5.19.9 version: 5.20.2 tsup: specifier: ^8.3.6 @@ -1281,20 +1281,20 @@ packages: '@fontsource/inter@5.1.1': resolution: {integrity: sha512-weN3E+rq0Xb3Z93VHJ+Rc7WOQX9ETJPTAJ+gDcaMHtjft67L58sfS65rAjC5tZUXQ2FdZ/V1/sSzCwZ6v05kJw==} - '@html-eslint/eslint-plugin@0.35.0': - resolution: {integrity: sha512-49IfQCePw2+WluyHDBderyyaMXiKTMBFA70BvTDndbK2k2bHOmbgI/Nw2vcp8UkQ0t3b3LFGluCXpQsqBtg1BQ==} + '@html-eslint/eslint-plugin@0.34.0': + resolution: {integrity: sha512-ksMbMQXOsfVHfnopKp9oEaKNiOP0kmFv1DOY54mWxynJ5SkQODYFawKj38CvkJo+89cw5J6+x8tn6ZT6Y2lbPA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@html-eslint/parser@0.35.0': - resolution: {integrity: sha512-8VSA1oRWR8qrTDyrM1syykFAhpKNbzSbsr7CfvYir9LhpZfD6TMcHqJSp+6jhzhSprWG24f2GsKqEUOOx9AopA==} + '@html-eslint/parser@0.34.0': + resolution: {integrity: sha512-gWwcb0nPEq/wKQY+hvGQwdEJ9DXMKs1GLCqG51FqLTTOY1mtwTYRkjmviJCKFwAnQUkYhRrzolYj1ZF2XsTG6A==} engines: {node: '>=8.10.0'} - '@html-eslint/template-parser@0.35.0': - resolution: {integrity: sha512-0ztgICyCyR1YOTvi/YJGMJHQja9A/9wGJcAyBC4Ty8fi5kgeLQ+mVxbjyMwYzbSEde49bKscNAO0lOUb4EIVHA==} + '@html-eslint/template-parser@0.34.0': + resolution: {integrity: sha512-hSOEYL5l9vuskklaZj6v5OVYmw6siZYM1g745uexo/YKoHzKSNHkzb/jK5XM6tn6fjYODvCqG04xR8OCn1Dsqw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@html-eslint/template-syntax-parser@0.35.0': - resolution: {integrity: sha512-anUBh/5LhQGpx+E79s2ENCMk20S8SOPTwp1WBMzRm0CvLaN42st68FNwT3BKRhjFVs2RrmRcTJNSlKWulFrvAA==} + '@html-eslint/template-syntax-parser@0.34.0': + resolution: {integrity: sha512-rmIrw3WtYXITA7AI+LgJqUmjLfWMEP2HNyvvdV8YJysdEOFtM0VXOT9hY8b7mV0ZGqPt/g0dWii1j/94omMufQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} '@humanfs/core@0.19.1': @@ -2343,8 +2343,8 @@ packages: resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} engines: {node: '>= 0.4'} - es-html-parser@0.1.0: - resolution: {integrity: sha512-4YUmQ4kGKGQUb87jwr25XeGwuFIfjq7kZ+F5/V23ji+3gVXC9JEtUxngM0KbhgXl2L1jqbWZ138SI/UQ33XINw==} + es-html-parser@1.0.0-alpha.8: + resolution: {integrity: sha512-7zQHIugusEuMWjWafkdSwzDWGZ5EbRjSBp5mzfa8kwZoCS1zeiKLNV2SM7vbtPCo8xztWrukg5xZ7OGkYEoEbQ==} es-module-lexer@1.6.0: resolution: {integrity: sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ==} @@ -2404,8 +2404,8 @@ packages: peerDependencies: eslint: ^9.5.0 - eslint-config-prettier@9.1.0: - resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} + eslint-config-prettier@10.0.1: + resolution: {integrity: sha512-lZBts941cyJyeaooiKxAtzoPHTN+GbQTJFAIdQbRhA4/8whaAraEh47Whw/ZFfrjNSnlAxqfm9i0XVAEkULjCw==} hasBin: true peerDependencies: eslint: '>=7.0.0' @@ -2494,8 +2494,8 @@ packages: resolution: {integrity: sha512-brcKcxGnISN2CcVhXJ/kEQlNa0MEfGRtwKtWA16SkqXHKitaKIMrfemJKLKX1YqDU5C/5JY3PvZXd5jEW04e0Q==} engines: {node: '>=5.0.0'} - eslint-plugin-package-json@0.26.0: - resolution: {integrity: sha512-plYuuP7RyL532yHLPvKtQNzK6ncXRmzWPji5EUlV0tXhhfFc84TDWiwJ+OYvv4pDA9AfV+gKYVUwhojaDameNw==} + eslint-plugin-package-json@0.25.0: + resolution: {integrity: sha512-X1BDDn98xHWfxEylRpYHoiPMUvda83hd+H1if83Ny8gZ5LiLB0FcwXng1Or+gY3GLuYSaiYTy6r78Adeg48unw==} engines: {node: '>=18'} peerDependencies: eslint: '>=8.0.0' @@ -5408,21 +5408,21 @@ snapshots: '@fontsource/inter@5.1.1': {} - '@html-eslint/eslint-plugin@0.35.0': + '@html-eslint/eslint-plugin@0.34.0': dependencies: - '@html-eslint/template-parser': 0.35.0 - '@html-eslint/template-syntax-parser': 0.35.0 + '@html-eslint/template-parser': 0.34.0 + '@html-eslint/template-syntax-parser': 0.34.0 - '@html-eslint/parser@0.35.0': + '@html-eslint/parser@0.34.0': dependencies: - '@html-eslint/template-syntax-parser': 0.35.0 - es-html-parser: 0.1.0 + '@html-eslint/template-syntax-parser': 0.34.0 + es-html-parser: 1.0.0-alpha.8 - '@html-eslint/template-parser@0.35.0': + '@html-eslint/template-parser@0.34.0': dependencies: - es-html-parser: 0.1.0 + es-html-parser: 1.0.0-alpha.8 - '@html-eslint/template-syntax-parser@0.35.0': {} + '@html-eslint/template-syntax-parser@0.34.0': {} '@humanfs/core@0.19.1': {} @@ -6506,7 +6506,7 @@ snapshots: es-errors@1.3.0: {} - es-html-parser@0.1.0: {} + es-html-parser@1.0.0-alpha.8: {} es-module-lexer@1.6.0: {} @@ -6603,7 +6603,7 @@ snapshots: '@eslint/compat': 1.2.6(eslint@9.20.1(jiti@2.4.2)) eslint: 9.20.1(jiti@2.4.2) - eslint-config-prettier@9.1.0(eslint@9.20.1(jiti@2.4.2)): + eslint-config-prettier@10.0.1(eslint@9.20.1(jiti@2.4.2)): dependencies: eslint: 9.20.1(jiti@2.4.2) @@ -6731,7 +6731,7 @@ snapshots: eslint-plugin-no-only-tests@3.3.0: {} - eslint-plugin-package-json@0.26.0(@types/estree@1.0.6)(eslint@9.20.1(jiti@2.4.2))(jsonc-eslint-parser@2.4.0): + eslint-plugin-package-json@0.25.0(@types/estree@1.0.6)(eslint@9.20.1(jiti@2.4.2))(jsonc-eslint-parser@2.4.0): dependencies: '@altano/repository-tools': 0.1.1 detect-indent: 6.1.0