-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
Add gts/gjs configs #1944
Add gts/gjs configs #1944
Conversation
3bca299
to
7c6ffc8
Compare
README.md
Outdated
|:------------------------------------|:--------------------------------------------------|:------------------------------------| | ||
| ✅ | [recommended](./lib/recommended-rules.js) | enables the `recommended` rules | | ||
| ![badge-gjs](docs%2Fsvgs%2Fgjs.svg) | [recommended-gjs](./lib/recommended-rules-gjs.js) | enables the `recommended-gjs` rules | | ||
| ![badge-gjs](docs%2Fsvgs%2Fgts.svg) | [recommended-gts](./lib/recommended-rules-gjs.js) | enables the `recommended-gjs` rules | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the gjs
here in the link and in the text in this line should be gts
.
README.md
Outdated
@@ -238,3 +280,6 @@ Note that new rules should not immediately be added to the [recommended](./lib/r | |||
## 🔓 License | |||
|
|||
See the [LICENSE](LICENSE.md) file for license rights and limitations (MIT). | |||
|
|||
[badge-recommended-gjs]: docs%2Fsvgs%2Fgjs.svg | |||
[badge-recommended-gts]: docs%2Fsvgs%2Fgjs.svg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should point to gts.svg
, not gjs.svg
0edff04
to
da9fe0e
Compare
README.md
Outdated
|:------------------------------------|:--------------------------------------------------|:------------------------------------| | ||
| ✅ | [recommended](./lib/recommended-rules.js) | enables the `recommended` rules | | ||
| ![badge-gjs](docs%2Fsvgs%2Fgjs.svg) | [recommended-gjs](./lib/recommended-rules-gjs.js) | enables the `recommended-gjs` rules | | ||
| ![badge-gjs](docs%2Fsvgs%2Fgts.svg) | [recommended-gts](./lib/recommended-rules-gts.js) | enables the `recommended-gts` rules | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![badge-gjs] -> ![badge-gts]
36cc77b
to
26328a9
Compare
@@ -0,0 +1,37 @@ | |||
module.exports = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, i think it makes sense if want to go this way and provide recommended configs per file type.
btw, eslint-typescipt also has a base config (but I didnt see it documented) https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/base.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, seems fine to add base
.
ae34d4b
to
3370a16
Compare
3370a16
to
c95c7da
Compare
c95c7da
to
d74a07e
Compare
@NullVoxPopuli updated the eslintrc example |
| | Name | | ||
| :- | :------------ | | ||
| ✅ | `recommended` | | ||
| | Name | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you add a description
property to each config, it will show up in this table. Up to you if you think it would be helpful.
depends on