From fc58dd2c32b8f1c72acd630932248e0fd85d5c4a Mon Sep 17 00:00:00 2001 From: Joseph Phelan Date: Thu, 11 Jul 2024 10:24:49 -0500 Subject: [PATCH] fix lint --- package.json | 1 + packages/eslint-config-widen/src/base.ts | 2 +- packages/eslint-config-widen/src/index.ts | 14 +-- yarn.lock | 146 +++++++++++++++++++++- 4 files changed, 154 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 06041a8..d6e55e8 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "@typescript-eslint/eslint-plugin": "^7.16.0", "@typescript-eslint/parser": "^7.16.0", "eslint": "^9.6.0", + "eslint-plugin-sort": "^3.0.2", "globals": "^15.8.0", "jest": "^29.7.0", "prettier": "^3.3.2", diff --git a/packages/eslint-config-widen/src/base.ts b/packages/eslint-config-widen/src/base.ts index 54771e4..079fc5c 100644 --- a/packages/eslint-config-widen/src/base.ts +++ b/packages/eslint-config-widen/src/base.ts @@ -1,8 +1,8 @@ -import babelParser from '@babel/eslint-parser' import js from '@eslint/js' import sort from 'eslint-plugin-sort' import widen from 'eslint-plugin-widen' import globals from 'globals' +import babelParser from '@babel/eslint-parser' export default [ { diff --git a/packages/eslint-config-widen/src/index.ts b/packages/eslint-config-widen/src/index.ts index 7a487f8..2b1b66b 100644 --- a/packages/eslint-config-widen/src/index.ts +++ b/packages/eslint-config-widen/src/index.ts @@ -1,10 +1,10 @@ // index.js or index.mjs inside eslint-config-widen package +import { Linter } from 'eslint' import baseConfig from './index.js' -import typescriptConfig from './typescript.js' -import reactConfig from './react.js' -import playwrightConfig from './playwright.js' import jestConfig from './jest.js' -import { Linter } from 'eslint' +import playwrightConfig from './playwright.js' +import reactConfig from './react.js' +import typescriptConfig from './typescript.js' export interface EslintConfig { base: Linter.FlatConfig[] @@ -16,10 +16,10 @@ export interface EslintConfig { const configs = { base: baseConfig, - typescript: typescriptConfig, - react: reactConfig, - playwright: playwrightConfig, jest: jestConfig, + playwright: playwrightConfig, + react: reactConfig, + typescript: typescriptConfig, } as unknown as EslintConfig export default configs diff --git a/yarn.lock b/yarn.lock index e7e50c8..a614b60 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2215,6 +2215,13 @@ __metadata: languageName: node linkType: hard +"@types/json-schema@npm:^7.0.9": + version: 7.0.15 + resolution: "@types/json-schema@npm:7.0.15" + checksum: 97ed0cb44d4070aecea772b7b2e2ed971e10c81ec87dd4ecc160322ffa55ff330dace1793489540e3e318d90942064bb697cc0f8989391797792d919737b3b98 + languageName: node + linkType: hard + "@types/node@npm:*": version: 14.14.10 resolution: "@types/node@npm:14.14.10" @@ -2229,6 +2236,13 @@ __metadata: languageName: node linkType: hard +"@types/semver@npm:^7.3.12": + version: 7.5.8 + resolution: "@types/semver@npm:7.5.8" + checksum: ea6f5276f5b84c55921785a3a27a3cd37afee0111dfe2bcb3e03c31819c197c782598f17f0b150a69d453c9584cd14c4c4d7b9a55d2c5e6cacd4d66fdb3b3663 + languageName: node + linkType: hard + "@types/semver@npm:^7.5.0": version: 7.5.0 resolution: "@types/semver@npm:7.5.0" @@ -2282,6 +2296,17 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/experimental-utils@npm:^5.54.1": + version: 5.62.0 + resolution: "@typescript-eslint/experimental-utils@npm:5.62.0" + dependencies: + "@typescript-eslint/utils": 5.62.0 + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + checksum: ce55d9f74eac5cb94d66d5db9ead9a5d734f4301519fb5956a57f4b405a5318a115b0316195a3c039e0111489138680411709cb769085d71e1e1db1376ea0949 + languageName: node + linkType: hard + "@typescript-eslint/parser@npm:7.16.0, @typescript-eslint/parser@npm:^7.16.0": version: 7.16.0 resolution: "@typescript-eslint/parser@npm:7.16.0" @@ -2300,6 +2325,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/scope-manager@npm:5.62.0": + version: 5.62.0 + resolution: "@typescript-eslint/scope-manager@npm:5.62.0" + dependencies: + "@typescript-eslint/types": 5.62.0 + "@typescript-eslint/visitor-keys": 5.62.0 + checksum: 6062d6b797fe1ce4d275bb0d17204c827494af59b5eaf09d8a78cdd39dadddb31074dded4297aaf5d0f839016d601032857698b0e4516c86a41207de606e9573 + languageName: node + linkType: hard + "@typescript-eslint/scope-manager@npm:7.16.0": version: 7.16.0 resolution: "@typescript-eslint/scope-manager@npm:7.16.0" @@ -2327,6 +2362,13 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/types@npm:5.62.0": + version: 5.62.0 + resolution: "@typescript-eslint/types@npm:5.62.0" + checksum: 48c87117383d1864766486f24de34086155532b070f6264e09d0e6139449270f8a9559cfef3c56d16e3bcfb52d83d42105d61b36743626399c7c2b5e0ac3b670 + languageName: node + linkType: hard + "@typescript-eslint/types@npm:7.16.0": version: 7.16.0 resolution: "@typescript-eslint/types@npm:7.16.0" @@ -2334,6 +2376,24 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/typescript-estree@npm:5.62.0": + version: 5.62.0 + resolution: "@typescript-eslint/typescript-estree@npm:5.62.0" + dependencies: + "@typescript-eslint/types": 5.62.0 + "@typescript-eslint/visitor-keys": 5.62.0 + debug: ^4.3.4 + globby: ^11.1.0 + is-glob: ^4.0.3 + semver: ^7.3.7 + tsutils: ^3.21.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 3624520abb5807ed8f57b1197e61c7b1ed770c56dfcaca66372d584ff50175225798bccb701f7ef129d62c5989070e1ee3a0aa2d84e56d9524dcf011a2bb1a52 + languageName: node + linkType: hard + "@typescript-eslint/typescript-estree@npm:7.16.0": version: 7.16.0 resolution: "@typescript-eslint/typescript-estree@npm:7.16.0" @@ -2353,6 +2413,24 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/utils@npm:5.62.0": + version: 5.62.0 + resolution: "@typescript-eslint/utils@npm:5.62.0" + dependencies: + "@eslint-community/eslint-utils": ^4.2.0 + "@types/json-schema": ^7.0.9 + "@types/semver": ^7.3.12 + "@typescript-eslint/scope-manager": 5.62.0 + "@typescript-eslint/types": 5.62.0 + "@typescript-eslint/typescript-estree": 5.62.0 + eslint-scope: ^5.1.1 + semver: ^7.3.7 + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + checksum: ee9398c8c5db6d1da09463ca7bf36ed134361e20131ea354b2da16a5fdb6df9ba70c62a388d19f6eebb421af1786dbbd79ba95ddd6ab287324fc171c3e28d931 + languageName: node + linkType: hard + "@typescript-eslint/utils@npm:7.16.0": version: 7.16.0 resolution: "@typescript-eslint/utils@npm:7.16.0" @@ -2367,6 +2445,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/visitor-keys@npm:5.62.0": + version: 5.62.0 + resolution: "@typescript-eslint/visitor-keys@npm:5.62.0" + dependencies: + "@typescript-eslint/types": 5.62.0 + eslint-visitor-keys: ^3.3.0 + checksum: 976b05d103fe8335bef5c93ad3f76d781e3ce50329c0243ee0f00c0fcfb186c81df50e64bfdd34970148113f8ade90887f53e3c4938183afba830b4ba8e30a35 + languageName: node + linkType: hard + "@typescript-eslint/visitor-keys@npm:7.16.0": version: 7.16.0 resolution: "@typescript-eslint/visitor-keys@npm:7.16.0" @@ -3225,6 +3313,7 @@ __metadata: "@typescript-eslint/eslint-plugin": ^7.16.0 "@typescript-eslint/parser": ^7.16.0 eslint: ^9.6.0 + eslint-plugin-sort: ^3.0.2 globals: ^15.8.0 jest: ^29.7.0 prettier: ^3.3.2 @@ -3233,6 +3322,19 @@ __metadata: languageName: unknown linkType: soft +"eslint-plugin-sort@npm:^3.0.2": + version: 3.0.2 + resolution: "eslint-plugin-sort@npm:3.0.2" + dependencies: + "@typescript-eslint/experimental-utils": ^5.54.1 + isomorphic-resolve: ^1.0.0 + natural-compare: ^1.4.0 + peerDependencies: + eslint: ">=8" + checksum: b150500a2a9ef02774a0a99bb628f6fce744e3a3c31fd09c05442bc10fa68c809e982872ce290f36a974e3a2be55b5f3c3b101d387409456385f8438462425b5 + languageName: node + linkType: hard + "eslint-plugin-widen@workspace:packages/eslint-plugin-widen": version: 0.0.0-use.local resolution: "eslint-plugin-widen@workspace:packages/eslint-plugin-widen" @@ -3246,6 +3348,16 @@ __metadata: languageName: unknown linkType: soft +"eslint-scope@npm:^5.1.1": + version: 5.1.1 + resolution: "eslint-scope@npm:5.1.1" + dependencies: + esrecurse: ^4.3.0 + estraverse: ^4.1.1 + checksum: 47e4b6a3f0cc29c7feedee6c67b225a2da7e155802c6ea13bbef4ac6b9e10c66cd2dcb987867ef176292bf4e64eccc680a49e35e9e9c669f4a02bac17e86abdb + languageName: node + linkType: hard + "eslint-scope@npm:^8.0.1": version: 8.0.1 resolution: "eslint-scope@npm:8.0.1" @@ -3353,6 +3465,13 @@ __metadata: languageName: node linkType: hard +"estraverse@npm:^4.1.1": + version: 4.3.0 + resolution: "estraverse@npm:4.3.0" + checksum: a6299491f9940bb246124a8d44b7b7a413a8336f5436f9837aaa9330209bd9ee8af7e91a654a3545aee9c54b3308e78ee360cef1d777d37cfef77d2fa33b5827 + languageName: node + linkType: hard + "estraverse@npm:^5.1.0, estraverse@npm:^5.2.0": version: 5.2.0 resolution: "estraverse@npm:5.2.0" @@ -4023,6 +4142,13 @@ __metadata: languageName: node linkType: hard +"isomorphic-resolve@npm:^1.0.0": + version: 1.0.0 + resolution: "isomorphic-resolve@npm:1.0.0" + checksum: 9f66d097e52bc891595c37a16472fb4bbb5797d9726fbac4958e360502c402fd0de3cbf5f614fcb235238ca1d650dbfb8b9063d67b9066957410f631a19ad018 + languageName: node + linkType: hard + "isstream@npm:~0.1.2": version: 0.1.2 resolution: "isstream@npm:0.1.2" @@ -5542,7 +5668,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.3.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0": +"semver@npm:^7.3.2, semver@npm:^7.3.7, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0": version: 7.6.2 resolution: "semver@npm:7.6.2" bin: @@ -5902,6 +6028,24 @@ __metadata: languageName: node linkType: hard +"tslib@npm:^1.8.1": + version: 1.14.1 + resolution: "tslib@npm:1.14.1" + checksum: dbe628ef87f66691d5d2959b3e41b9ca0045c3ee3c7c7b906cc1e328b39f199bb1ad9e671c39025bd56122ac57dfbf7385a94843b1cc07c60a4db74795829acd + languageName: node + linkType: hard + +"tsutils@npm:^3.21.0": + version: 3.21.0 + resolution: "tsutils@npm:3.21.0" + dependencies: + tslib: ^1.8.1 + peerDependencies: + typescript: ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + checksum: 1843f4c1b2e0f975e08c4c21caa4af4f7f65a12ac1b81b3b8489366826259323feb3fc7a243123453d2d1a02314205a7634e048d4a8009921da19f99755cdc48 + languageName: node + linkType: hard + "tunnel-agent@npm:^0.6.0": version: 0.6.0 resolution: "tunnel-agent@npm:0.6.0"