Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: examples for flat configs and type information #4

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

JoshuaKGoldberg
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg commented Feb 10, 2024

Fixes #3.

Also cleans up the repository field in package.json files.

Note that until v7 is released in two days, the typescript-eslint package needs to be symlinked locally.

npm run lint
```

```plaintext
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a snapshot or tested or something to validate it does what we expect?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#6 👍 agreed


## Setup

```shell
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably use npm2yarn here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#7 👍 agreed

import eslint from "@eslint/js";
import tseslint from "typescript-eslint";

export async function unecessarilyAsync() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be mixing config and test case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh, it was the shortest path to getting a .js file linted.

@@ -3,7 +3,7 @@
"version": "0.0.0",
"description": "Various examples of working with typescript-eslint. 📝",
"main": "index.js",
"repository": "https://github.com/typescript-eslint/typescript-eslint-examples",
"repository": "typescript-eslint/typescript-eslint-examples",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove the URL base?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh I only recently learned this was a thing. JoshuaKGoldberg/eslint-plugin-package-json#71

@JoshuaKGoldberg JoshuaKGoldberg merged commit 24c123e into main Feb 12, 2024
@JamesHenry JamesHenry deleted the flat-configs branch February 13, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 Feature: Add examples around flat config
2 participants