From ceede1d4a26d667a2c56b1fc433c92a2f08d01ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=90=89=E6=98=93?= Date: Thu, 20 Jul 2023 17:05:05 +0800 Subject: [PATCH] Feat 6.0.x lint config (#149) * feat: update eslint rules * docs(changeset): update eslint rules * RELEASING: Releasing 2 package(s) Releases: ko-lint-config@2.2.4 ko-lints@4.0.4 [skip ci] * chore: update eslint rules * docs(changeset): update eslint rules * rELEASING: Releasing 2 package(s) Releases: ko-lint-config@2.2.5 ko-lints@4.0.5 [skip ci] * chore: update stylelint rules * rELEASING: Releasing 2 package(s) Releases: ko-lint-config@2.2.6 ko-lints@4.0.6 [skip ci] * chore: change prettier config * docs(changeset): change prettier config * releasing: Releasing 2 package(s) Releases: ko-lint-config@2.2.7 ko-lints@4.0.7 [skip ci] * feat: lint config * docs(changeset): lint config * releasing: Releasing 2 package(s) Releases: ko-lint-config@2.2.8 ko-lints@4.0.8 [skip ci] * feat: lint config * docs(changeset): lint config * releasing: Releasing 2 package(s) Releases: ko-lint-config@2.2.9 ko-lints@4.0.9 [skip ci] * feat: stylelint version * docs(changeset): stylelint version * RELEASING: Releasing 2 package(s) Releases: ko-lint-config@2.2.10 ko-lints@4.0.10 [skip ci] * docs(changeset): ko lint tsc * RELEASING: Releasing 2 package(s) Releases: ko-lint-config@2.2.11 ko-lints@4.0.11 [skip ci] * test: stylelint formatters need two params * feat: eslint ts-ignore warning * docs(changeset): eslint ts-ignore warning * RELEASING: Releasing 2 package(s) Releases: ko-lint-config@2.2.21 ko-lints@4.0.21 [skip ci] --------- Co-authored-by: liuyi --- packages/ko-lint-config/.eslintrc.js | 1 + packages/ko-lint-config/CHANGELOG.md | 6 ++ packages/ko-lint-config/package.json | 2 +- packages/ko-lints/CHANGELOG.md | 7 ++ packages/ko-lints/package.json | 2 +- pnpm-lock.yaml | 107 +++++++++++++-------------- 6 files changed, 67 insertions(+), 58 deletions(-) diff --git a/packages/ko-lint-config/.eslintrc.js b/packages/ko-lint-config/.eslintrc.js index 53d90394..15aafb29 100644 --- a/packages/ko-lint-config/.eslintrc.js +++ b/packages/ko-lint-config/.eslintrc.js @@ -202,6 +202,7 @@ module.exports = { '@typescript-eslint/interface-name-prefix': 0, '@typescript-eslint/no-empty-interface': 0, '@typescript-eslint/ban-types': 0, + '@typescript-eslint/ban-ts-comment': 1, '@typescript-eslint/no-empty-function': 0, // 允许函数内容为空 '@typescript-eslint/no-this-alias': [ // 允许 this 别名 diff --git a/packages/ko-lint-config/CHANGELOG.md b/packages/ko-lint-config/CHANGELOG.md index 4afbb208..d447b8ba 100644 --- a/packages/ko-lint-config/CHANGELOG.md +++ b/packages/ko-lint-config/CHANGELOG.md @@ -1,5 +1,11 @@ # ko-lint-config +## 2.2.21 + +### Patch Changes + +- 7f809f46: eslint ts-ignore warning + ## 2.2.20 ### Patch Changes diff --git a/packages/ko-lint-config/package.json b/packages/ko-lint-config/package.json index e2450950..7df5e0f0 100644 --- a/packages/ko-lint-config/package.json +++ b/packages/ko-lint-config/package.json @@ -1,6 +1,6 @@ { "name": "ko-lint-config", - "version": "2.2.20", + "version": "2.2.21", "description": "lint configs about eslint stylelint and prettier", "main": "index.js", "files": [ diff --git a/packages/ko-lints/CHANGELOG.md b/packages/ko-lints/CHANGELOG.md index c07bdaf9..33c51109 100644 --- a/packages/ko-lints/CHANGELOG.md +++ b/packages/ko-lints/CHANGELOG.md @@ -1,5 +1,12 @@ # ko-lints +## 4.0.21 + +### Patch Changes + +- Updated dependencies [7f809f46] + - ko-lint-config@2.2.21 + ## 4.0.20 ### Patch Changes diff --git a/packages/ko-lints/package.json b/packages/ko-lints/package.json index e02dd264..3c94cd30 100644 --- a/packages/ko-lints/package.json +++ b/packages/ko-lints/package.json @@ -1,6 +1,6 @@ { "name": "ko-lints", - "version": "4.0.20", + "version": "4.0.21", "description": "lint tools used by ko", "keywords": [ "ko", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b031a0d8..86b64274 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -234,7 +234,7 @@ importers: eslint-config-prettier: 8.5.0_eslint@8.22.0 eslint-config-standard: 17.0.0_7ac7ba0c849a16475149cf009583350b eslint-plugin-dt-react: link:../eslint-plugin-dt-react - eslint-plugin-import: 2.26.0_eslint@8.22.0 + eslint-plugin-import: 2.26.0_53a80fa66eac2a32b769435a79ca645c eslint-plugin-jest: 26.5.3_b0c730430a4c96918685ef89cef11803 eslint-plugin-jsx-a11y: 6.6.0_eslint@8.22.0 eslint-plugin-n: 15.2.3_eslint@8.22.0 @@ -4355,7 +4355,6 @@ packages: '@types/prop-types': 15.7.5 '@types/scheduler': 0.16.2 csstype: 3.1.0 - dev: true /@types/react/18.0.9: resolution: {integrity: sha512-9bjbg1hJHUm4De19L1cHiW0Jvx3geel6Qczhjd0qY5VKVE2X5+x77YxAepuCwVh4vrgZJdgEJw48zrhRIeF4Nw==} @@ -7054,6 +7053,11 @@ packages: /debug/2.6.9: resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true dependencies: ms: 2.0.0 dev: false @@ -7148,6 +7152,7 @@ packages: /deepmerge/4.3.0: resolution: {integrity: sha512-z2wJZXrmeHdvYJp/Ux55wIjqo81G5Bp4c+oELTW+7ar6SogWHajt5a9gO3s3IDaGSAXjDk0vlQKN3rms8ab3og==} engines: {node: '>=0.10.0'} + dev: true /default-gateway/6.0.3: resolution: {integrity: sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==} @@ -7297,6 +7302,8 @@ packages: dependencies: address: 1.2.2 debug: 2.6.9 + transitivePeerDependencies: + - supports-color dev: false /detect-port/1.3.0: @@ -7306,6 +7313,8 @@ packages: dependencies: address: 1.2.0 debug: 2.6.9 + transitivePeerDependencies: + - supports-color dev: false /detect-port/1.5.1: @@ -7629,6 +7638,7 @@ packages: webpack: 5.76.2 transitivePeerDependencies: - eslint + - supports-color - typescript - vue-template-compiler dev: false @@ -7832,7 +7842,7 @@ packages: eslint-plugin-promise: ^6.0.0 dependencies: eslint: 8.22.0 - eslint-plugin-import: 2.26.0_eslint@8.22.0 + eslint-plugin-import: 2.26.0_53a80fa66eac2a32b769435a79ca645c eslint-plugin-n: 15.2.3_eslint@8.22.0 eslint-plugin-promise: 6.0.0_eslint@8.22.0 dev: false @@ -7844,12 +7854,26 @@ packages: resolve: 1.22.0 dev: false - /eslint-module-utils/2.7.3: + /eslint-module-utils/2.7.3_96b89962d8fe952f1f62e174300ae390: resolution: {integrity: sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==} engines: {node: '>=4'} + peerDependencies: + '@typescript-eslint/parser': '*' + eslint-import-resolver-node: '*' + eslint-import-resolver-typescript: '*' + eslint-import-resolver-webpack: '*' + peerDependenciesMeta: + '@typescript-eslint/parser': + optional: true + eslint-import-resolver-node: + optional: true + eslint-import-resolver-typescript: + optional: true + eslint-import-resolver-webpack: + optional: true dependencies: - debug: 3.2.7 - find-up: 2.1.0 + '@typescript-eslint/parser': 5.30.0_eslint@8.22.0+typescript@4.7.4 + eslint-import-resolver-node: 0.3.6 dev: false /eslint-plugin-es/4.1.0_eslint@8.22.0: @@ -7863,19 +7887,24 @@ packages: regexpp: 3.2.0 dev: false - /eslint-plugin-import/2.26.0_eslint@8.22.0: + /eslint-plugin-import/2.26.0_53a80fa66eac2a32b769435a79ca645c: resolution: {integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==} engines: {node: '>=4'} peerDependencies: + '@typescript-eslint/parser': '*' eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 + peerDependenciesMeta: + '@typescript-eslint/parser': + optional: true dependencies: + '@typescript-eslint/parser': 5.30.0_eslint@8.22.0+typescript@4.7.4 array-includes: 3.1.5 array.prototype.flat: 1.3.0 debug: 2.6.9 doctrine: 2.1.0 eslint: 8.22.0 eslint-import-resolver-node: 0.3.6 - eslint-module-utils: 2.7.3 + eslint-module-utils: 2.7.3_96b89962d8fe952f1f62e174300ae390 has: 1.0.3 is-core-module: 2.9.0 is-glob: 4.0.3 @@ -7883,6 +7912,10 @@ packages: object.values: 1.1.5 resolve: 1.22.0 tsconfig-paths: 3.14.1 + transitivePeerDependencies: + - eslint-import-resolver-typescript + - eslint-import-resolver-webpack + - supports-color dev: false /eslint-plugin-jest/26.5.3_b0c730430a4c96918685ef89cef11803: @@ -8584,13 +8617,6 @@ packages: resolution: {integrity: sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==} dev: true - /find-up/2.1.0: - resolution: {integrity: sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==} - engines: {node: '>=4'} - dependencies: - locate-path: 2.0.0 - dev: false - /find-up/3.0.0: resolution: {integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==} engines: {node: '>=6'} @@ -8735,18 +8761,18 @@ packages: vue-template-compiler: optional: true dependencies: - '@babel/code-frame': 7.18.6 + '@babel/code-frame': 7.16.7 '@types/json-schema': 7.0.11 chalk: 4.1.2 chokidar: 3.5.3 cosmiconfig: 6.0.0 - deepmerge: 4.3.0 + deepmerge: 4.2.2 fs-extra: 9.1.0 glob: 7.2.3 - memfs: 3.4.13 + memfs: 3.4.3 minimatch: 3.1.2 schema-utils: 2.7.0 - semver: 7.3.8 + semver: 7.3.7 tapable: 1.1.3 typescript: 4.9.5 webpack: 5.76.2 @@ -11136,14 +11162,6 @@ packages: engines: {node: '>= 12.13.0'} dev: false - /locate-path/2.0.0: - resolution: {integrity: sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==} - engines: {node: '>=4'} - dependencies: - p-locate: 2.0.0 - path-exists: 3.0.0 - dev: false - /locate-path/3.0.0: resolution: {integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==} engines: {node: '>=6'} @@ -12131,13 +12149,6 @@ packages: p-map: 2.1.0 dev: true - /p-limit/1.3.0: - resolution: {integrity: sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==} - engines: {node: '>=4'} - dependencies: - p-try: 1.0.0 - dev: false - /p-limit/2.3.0: resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} engines: {node: '>=6'} @@ -12150,13 +12161,6 @@ packages: dependencies: yocto-queue: 0.1.0 - /p-locate/2.0.0: - resolution: {integrity: sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==} - engines: {node: '>=4'} - dependencies: - p-limit: 1.3.0 - dev: false - /p-locate/3.0.0: resolution: {integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==} engines: {node: '>=6'} @@ -12195,11 +12199,6 @@ packages: retry: 0.13.1 dev: false - /p-try/1.0.0: - resolution: {integrity: sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==} - engines: {node: '>=4'} - dev: false - /p-try/2.2.0: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} @@ -13580,6 +13579,7 @@ packages: text-table: 0.2.0 transitivePeerDependencies: - eslint + - supports-color - typescript - vue-template-compiler - webpack @@ -13589,9 +13589,9 @@ packages: resolution: {integrity: sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==} engines: {node: '>=14'} dependencies: - '@babel/code-frame': 7.18.6 - address: 1.2.2 - browserslist: 4.21.5 + '@babel/code-frame': 7.16.7 + address: 1.2.0 + browserslist: 4.20.3 chalk: 4.1.2 cross-spawn: 7.0.3 detect-port-alt: 1.1.6 @@ -13605,7 +13605,7 @@ packages: immer: 9.0.14 is-root: 2.1.0 loader-utils: 3.2.0 - open: 8.4.2 + open: 8.4.0 pkg-up: 3.1.0 prompts: 2.4.2 react-error-overlay: 6.0.11 @@ -13615,6 +13615,7 @@ packages: text-table: 0.2.0 transitivePeerDependencies: - eslint + - supports-color - typescript - vue-template-compiler - webpack @@ -13629,7 +13630,6 @@ packages: object-assign: 4.1.1 react: 17.0.2 scheduler: 0.20.2 - dev: false /react-error-overlay/6.0.11: resolution: {integrity: sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==} @@ -13769,7 +13769,6 @@ packages: dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - dev: false /read-pkg-up/7.0.1: resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==} @@ -14308,7 +14307,6 @@ packages: dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - dev: false /schema-utils/1.0.0: resolution: {integrity: sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==} @@ -15716,19 +15714,16 @@ packages: resolution: {integrity: sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==} engines: {node: '>=4.2.0'} hasBin: true - dev: true /typescript/4.7.4: resolution: {integrity: sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==} engines: {node: '>=4.2.0'} hasBin: true - dev: true /typescript/4.9.5: resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} engines: {node: '>=4.2.0'} hasBin: true - dev: true /ua-parser-js/0.7.31: resolution: {integrity: sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ==}