Skip to content

Commit

Permalink
Update packages for @arabasta/eslint-config (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
HristoKolev authored Oct 20, 2024
1 parent 0881547 commit efd69db
Show file tree
Hide file tree
Showing 65 changed files with 229 additions and 209 deletions.
6 changes: 3 additions & 3 deletions eslint-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Custom ESLint config to share between my projects. Originally extracted from [vi

<!-- start generated block (required-typescript-version) -->

- The optional TypeScript config requires a `typescript` version that satisfies the following constraint: `>=4.7.4 <5.6.0`
- The optional TypeScript config requires a `typescript` version that satisfies the following constraint: `>=4.7.4 <5.7.0`

<!-- end generated block (required-typescript-version) -->

Expand Down Expand Up @@ -95,8 +95,8 @@ Plugin packages included in this ESLint config:
- [email protected]
- [email protected]
- [email protected]
- [email protected].12
- eslint-plugin-testing-library@6.3.0
- [email protected].13
- eslint-plugin-testing-library@6.4.0
- [email protected]

<!-- end generated block (plugin-packages) -->
Expand Down
170 changes: 87 additions & 83 deletions eslint-config/package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@arabasta/eslint-config",
"version": "1.0.4",
"version": "1.0.5",
"type": "commonjs",
"description": "Custom ESLint config to share between my projects. Originally extracted from vite-workshop (https://github.com/HristoKolev/vite-workshop)",
"author": "Hristo Kolev",
Expand Down Expand Up @@ -38,7 +38,7 @@
"@arabasta/eslint-plugin-require-useeffect-dependency-array": "^1.0.9",
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.12.0",
"@eslint/js": "^9.13.0",
"@vitest/eslint-plugin": "^1.1.7",
"confusing-browser-globals": "^1.0.11",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -52,11 +52,11 @@
"eslint-plugin-new-with-error": "^5.0.0",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.12",
"eslint-plugin-testing-library": "^6.3.0",
"eslint-plugin-react-refresh": "^0.4.13",
"eslint-plugin-testing-library": "^6.4.0",
"eslint-plugin-unused-imports": "^3.2.0",
"globals": "^15.11.0",
"typescript-eslint": "^8.8.1"
"typescript-eslint": "^8.10.0"
},
"devDependencies": {
"eslint": "^8.57.1",
Expand All @@ -65,7 +65,7 @@
},
"peerDependencies": {
"eslint": "^8",
"typescript": ">=4.7.4 <5.6.0"
"typescript": ">=4.7.4 <5.7.0"
},
"peerDependenciesMeta": {
"typescript": {
Expand Down
16 changes: 16 additions & 0 deletions eslint-config/resolved-configs/extract-supported-ts-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ async function updateReadmeTypescriptVersionNotice(
await fs.writeFile(filePath, updatedReadme);
}

async function updatePackageJSON(constraint) {
const filePath = path.join(__dirname, '../', 'package.json');

const packageJSONContent = (await fs.readFile(filePath)).toString();

const packageJSONObject = JSON.parse(packageJSONContent);

packageJSONObject.peerDependencies.typescript = constraint;

const updatePackageJSONContent = JSON.stringify(packageJSONObject, null, 2);

await fs.writeFile(filePath, updatePackageJSONContent);
}

async function extractSupportedTsVersion() {
const fileContents = (
await fs.readFile(
Expand Down Expand Up @@ -46,6 +60,8 @@ async function extractSupportedTsVersion() {
constraint
);

await updatePackageJSON(constraint);

await updateReadmeTypescriptVersionNotice(
'- The optional TypeScript config requires a `typescript` version ' +
`that satisfies the following constraint: \`${constraint}\`\n`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@
"react",
"react-hooks",
"react-refresh",
"testing-library:eslint-plugin-testing-library@6.3.0",
"testing-library:eslint-plugin-testing-library@6.4.0",
"unused-imports"
],
"rules": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@
"react",
"react-hooks",
"react-refresh",
"testing-library:eslint-plugin-testing-library@6.3.0",
"testing-library:eslint-plugin-testing-library@6.4.0",
"unused-imports"
],
"rules": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@
"react",
"react-hooks",
"react-refresh",
"testing-library:eslint-plugin-testing-library@6.3.0",
"testing-library:eslint-plugin-testing-library@6.4.0",
"unused-imports",
"vitest:[email protected]"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@
"react",
"react-hooks",
"react-refresh",
"testing-library:eslint-plugin-testing-library@6.3.0",
"testing-library:eslint-plugin-testing-library@6.4.0",
"unused-imports",
"vitest:[email protected]"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@
"visualViewport": false,
"window": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1208,7 +1208,7 @@
"@arabasta/no-destructuring-arrays-as-objects:@arabasta/[email protected]",
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@
"visualViewport": false,
"window": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1208,7 +1208,7 @@
"@arabasta/no-destructuring-arrays-as-objects:@arabasta/[email protected]",
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@
"visualViewport": false,
"window": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1198,7 +1198,7 @@
"@arabasta/no-destructuring-arrays-as-objects:@arabasta/[email protected]",
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@
"visualViewport": false,
"window": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1198,7 +1198,7 @@
"@arabasta/no-destructuring-arrays-as-objects:@arabasta/[email protected]",
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@
"visualViewport": false,
"window": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1208,7 +1208,7 @@
"@arabasta/no-destructuring-arrays-as-objects:@arabasta/[email protected]",
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@
"visualViewport": false,
"window": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1208,7 +1208,7 @@
"@arabasta/no-destructuring-arrays-as-objects:@arabasta/[email protected]",
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@
"xit": false,
"xtest": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1211,7 +1211,7 @@
"@arabasta/no-destructuring-arrays-as-objects:@arabasta/[email protected]",
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@
"visualViewport": false,
"window": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1198,7 +1198,7 @@
"@arabasta/no-destructuring-arrays-as-objects:@arabasta/[email protected]",
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@
"visualViewport": false,
"window": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1208,7 +1208,7 @@
"@arabasta/no-destructuring-arrays-as-objects:@arabasta/[email protected]",
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@
"visualViewport": false,
"window": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1208,7 +1208,7 @@
"@arabasta/no-destructuring-arrays-as-objects:@arabasta/[email protected]",
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@
"visualViewport": false,
"window": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1201,7 +1201,7 @@
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@arabasta/require-useeffect-dependency-array:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@
"visualViewport": false,
"window": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1201,7 +1201,7 @@
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@arabasta/require-useeffect-dependency-array:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@
"visualViewport": false,
"window": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1208,7 +1208,7 @@
"@arabasta/no-destructuring-arrays-as-objects:@arabasta/[email protected]",
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@
"visualViewport": false,
"window": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1208,7 +1208,7 @@
"@arabasta/no-destructuring-arrays-as-objects:@arabasta/[email protected]",
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@
"xit": false,
"xtest": false
},
"parser": "typescript-eslint/parser@8.8.1",
"parser": "typescript-eslint/parser@8.10.0",
"parserOptions": {
"ecmaFeatures": {
"generators": false,
Expand All @@ -1214,7 +1214,7 @@
"@arabasta/report-caught-error:@arabasta/[email protected]",
"@arabasta/require-useeffect-dependency-array:@arabasta/[email protected]",
"@eslint-community/eslint-comments:@eslint-community/[email protected]",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.8.1",
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.10.0",
"deprecation:[email protected]",
"es",
"import",
Expand Down
Loading

0 comments on commit efd69db

Please sign in to comment.