-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eslint): making a couple of our internal custom rules open source (
#871) * feat: pulling across our `no-decorators-on-private-properties` rule * feat: pulling across `prefer-unicode-ellipsis` * feat: new `prefer-typescript` eslint rule * fix: bringing back the bespoke plugin configs * feat: introducing automatic doc generation * fix: resolving some prettier issues * chore: changing test case filenames * Update packages/eslint-plugin/.eslint-doc-generatorrc.js Co-authored-by: Kanad Gupta <[email protected]> * fix: updating the docs --------- Co-authored-by: Kanad Gupta <[email protected]>
- Loading branch information
1 parent
a4b17b4
commit 3d41bb5
Showing
22 changed files
with
802 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "explicit" | ||
}, | ||
"editor.formatOnSave": true | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** @type {import('eslint-doc-generator').GenerateOptions} */ | ||
const config = { | ||
configEmoji: [ | ||
['esm', '📁'], | ||
['typescript', '🧠'], | ||
['react', '⚛️'], | ||
], | ||
urlRuleDoc(name, page) { | ||
if (page === 'README.md') { | ||
return `https://github.com/readmeio/standards/tree/main/packages/eslint-plugin/docs/rules/${name}.md`; | ||
} | ||
}, | ||
}; | ||
|
||
module.exports = config; |
2 changes: 1 addition & 1 deletion
2
packages/eslint-plugin/LICENSE.md → packages/eslint-plugin/LICENSE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.