-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: set up standalone repository ✨
- Loading branch information
1 parent
e3d9657
commit 29b69d7
Showing
47 changed files
with
7,071 additions
and
340 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,10 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
quote_type = single |
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 @@ | ||
node_modules | ||
dist | ||
jest.config.js | ||
fixtures | ||
coverage | ||
__snapshots__ | ||
build |
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,70 @@ | ||
// @ts-check | ||
module.exports = { | ||
root: true, | ||
plugins: [ | ||
'@typescript-eslint', | ||
'deprecation', | ||
'eslint-comments', | ||
'eslint-plugin', | ||
'jest', | ||
'jsdoc', | ||
'simple-import-sort', | ||
'unicorn', | ||
], | ||
env: { | ||
es2020: true, | ||
node: true, | ||
}, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:eslint-comments/recommended', | ||
'plugin:eslint-plugin/recommended', | ||
'plugin:jsdoc/recommended-typescript-error', | ||
'plugin:@typescript-eslint/strict-type-checked', | ||
'plugin:@typescript-eslint/stylistic-type-checked', | ||
], | ||
parserOptions: { | ||
project: 'tsconfig.eslint.json', | ||
tsconfigRootDir: __dirname, | ||
}, | ||
rules: { | ||
'@typescript-eslint/consistent-type-imports': [ | ||
'error', | ||
{ prefer: 'type-imports', disallowTypeAnnotations: true }, | ||
], | ||
'@typescript-eslint/explicit-function-return-type': [ | ||
'error', | ||
{ allowIIFEs: true }, | ||
], | ||
'deprecation/deprecation': 'error', | ||
|
||
// https://github.com/gajus/eslint-plugin-jsdoc/issues/1169 | ||
'jsdoc/check-param-names': 'off', | ||
// https://github.com/gajus/eslint-plugin-jsdoc/issues/1175 | ||
'jsdoc/require-jsdoc': 'off', | ||
'jsdoc/require-param': 'off', | ||
'jsdoc/require-returns': 'off', | ||
'jsdoc/require-yields': 'off', | ||
'jsdoc/tag-lines': 'off', | ||
|
||
'simple-import-sort/imports': 'error', | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.js'], | ||
extends: ['plugin:@typescript-eslint/disable-type-checked'], | ||
rules: { | ||
'deprecation/deprecation': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
}, | ||
}, | ||
// all test files | ||
{ | ||
extends: ['plugin:jest/recommended'], | ||
files: ['./tests/**/*'], | ||
env: { | ||
'jest/globals': true, | ||
}, | ||
}, | ||
], | ||
}; |
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,11 @@ | ||
* text=auto | ||
*.js eol=lf | ||
*.json eol=lf | ||
*.md eol=lf | ||
*.ts eol=lf | ||
*.tsx eol=lf | ||
*.yml eol=lf | ||
|
||
# force github to treat out custom jest snapshot extension as normal jest snapshots | ||
*.shot linguist-language=Jest-Snapshot | ||
*.shot linguist-generated |
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,76 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to making participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, sex characteristics, gender identity and expression, | ||
level of experience, education, socioeconomic status, nationality, personal | ||
appearance, race, religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
- Using welcoming and inclusive language | ||
- Being respectful of differing viewpoints and experiences | ||
- Gracefully accepting constructive criticism | ||
- Focusing on what is best for the community | ||
- Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
- The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
- Trolling, insulting/derogatory comments, and personal or political attacks | ||
- Public or private harassment | ||
- Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
- Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or | ||
reject comments, commits, code, wiki edits, issues, and other contributions | ||
that are not aligned to this Code of Conduct, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. Examples of | ||
representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html | ||
|
||
[homepage]: https://www.contributor-covenant.org | ||
|
||
For answers to common questions about this code of conduct, see | ||
https://www.contributor-covenant.org/faq |
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,4 @@ | ||
# Contributing | ||
|
||
See **https://typescript-eslint.io/contributing** for our contributing guidelines. | ||
Thanks! 💖 |
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,4 @@ | ||
# Development | ||
|
||
See **https://typescript-eslint.io/contributing/local-development** for our development instructions. | ||
Thanks! 💖 |
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 @@ | ||
open_collective: typescript-eslint |
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,9 @@ | ||
<!-- Note: Please must use one of our issue templates to file an issue! 🛑 --> | ||
<!-- 👉 https://github.com/typescript-eslint/eslint-plugin-tslint/issues/new/choose 👈 --> | ||
<!-- **Issues that should have been filed with a template will be closed without action, and we will ask you to use a template.** --> | ||
|
||
<!-- This blank issue template is only for issues that don't fit any of the templates. --> | ||
|
||
## Overview | ||
|
||
... |
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,33 @@ | ||
body: | ||
- attributes: | ||
description: If any of these required steps are not taken, we may not be able to review your issue. Help us to help you! | ||
label: Bug Report Checklist | ||
options: | ||
- label: I have tried restarting my IDE and the issue persists. | ||
required: true | ||
- label: I have pulled the latest `main` branch of the repository. | ||
required: true | ||
- label: I have [searched for related issues](https://github.com/typescript-eslint/eslint-plugin-tslint/issues?q=is%3Aissue) and found none that matched my issue. | ||
required: true | ||
type: checkboxes | ||
- attributes: | ||
description: What did you expect to happen? | ||
label: Expected | ||
type: textarea | ||
validations: | ||
required: true | ||
- attributes: | ||
description: What happened instead? | ||
label: Actual | ||
type: textarea | ||
validations: | ||
required: true | ||
- attributes: | ||
description: Any additional info you'd like to provide. | ||
label: Additional Info | ||
type: textarea | ||
description: Report a bug trying to run the code | ||
labels: | ||
- 'type: bug' | ||
name: 🐛 Bug | ||
title: '🐛 Bug: <short description of the bug>' |
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,25 @@ | ||
body: | ||
- attributes: | ||
description: If any of these required steps are not taken, we may not be able to review your issue. Help us to help you! | ||
label: Bug Report Checklist | ||
options: | ||
- label: I have pulled the latest `main` branch of the repository. | ||
required: true | ||
- label: I have [searched for related issues](https://github.com/typescript-eslint/eslint-plugin-tslint/issues?q=is%3Aissue) and found none that matched my issue. | ||
required: true | ||
type: checkboxes | ||
- attributes: | ||
description: What would you like to report? | ||
label: Overview | ||
type: textarea | ||
validations: | ||
required: true | ||
- attributes: | ||
description: Any additional info you'd like to provide. | ||
label: Additional Info | ||
type: textarea | ||
description: Report a typo or missing area of documentation | ||
labels: | ||
- 'area: documentation' | ||
name: 📝 Documentation | ||
title: '📝 Documentation: <short description of the request>' |
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,25 @@ | ||
body: | ||
- attributes: | ||
description: If any of these required steps are not taken, we may not be able to review your issue. Help us to help you! | ||
label: Bug Report Checklist | ||
options: | ||
- label: I have pulled the latest `main` branch of the repository. | ||
required: true | ||
- label: I have [searched for related issues](https://github.com/typescript-eslint/eslint-plugin-tslint/issues?q=is%3Aissue) and found none that matched my issue. | ||
required: true | ||
type: checkboxes | ||
- attributes: | ||
description: What did you expect to be able to do? | ||
label: Overview | ||
type: textarea | ||
validations: | ||
required: true | ||
- attributes: | ||
description: Any additional info you'd like to provide. | ||
label: Additional Info | ||
type: textarea | ||
description: Request that a new feature be added or an existing feature improved | ||
labels: | ||
- 'type: feature' | ||
name: 🚀 Feature | ||
title: '🚀 Feature: <short description of the feature>' |
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,27 @@ | ||
body: | ||
- attributes: | ||
description: If any of these required steps are not taken, we may not be able to review your issue. Help us to help you! | ||
label: Tooling Request Checklist | ||
options: | ||
- label: I have tried restarting my IDE and the issue persists. | ||
required: true | ||
- label: I have pulled the latest `main` branch of the repository. | ||
required: true | ||
- label: I have [searched for related issues](https://github.com/typescript-eslint/eslint-plugin-tslint/issues?q=is%3Aissue) and found none that matched my issue. | ||
required: true | ||
type: checkboxes | ||
- attributes: | ||
description: What did you expect to be able to do? | ||
label: Overview | ||
type: textarea | ||
validations: | ||
required: true | ||
- attributes: | ||
description: Any additional info you'd like to provide. | ||
label: Additional Info | ||
type: textarea | ||
description: Report a bug or request an enhancement in repository tooling | ||
labels: | ||
- 'area: tooling' | ||
name: 🛠 Tooling | ||
title: '🛠 Tooling: <short description of the change>' |
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,13 @@ | ||
<!-- 👋 Hi, thanks for sending a PR to eslint-plugin-tslint! 💖. | ||
Please fill out all fields below and make sure each item is true and [x] checked. | ||
Otherwise we may not be able to review your PR. --> | ||
|
||
## PR Checklist | ||
|
||
- [ ] Addresses an existing open issue: fixes #000 | ||
- [ ] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslineslint-plugin-tslintt/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) | ||
- [ ] Steps in [CONTRIBUTING.md](https://github.com/typescript-eslineslint-plugin-tslintt/blob/main/.github/CONTRIBUTING.md) were taken | ||
|
||
## Overview | ||
|
||
<!-- Description of what is changed and how the code change does that. --> |
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,12 @@ | ||
# Security Policy | ||
|
||
The typescript-eslint team and community take all security vulnerabilities seriously. | ||
If you have a vulnerability or other security issues to disclose: | ||
|
||
- Thank you very much, please do! | ||
- Please send them to us by emailing `[email protected]` | ||
|
||
We appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions. | ||
|
||
> We also adhere to the [Tidelift security process](https://support.tidelift.com/hc/en-us/articles/4406287910036-Security-process). | ||
> See https://tidelift.com/security. |
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,13 @@ | ||
description: Prepares the repo for a typical CI job | ||
|
||
name: Prepare | ||
|
||
runs: | ||
steps: | ||
- uses: actions/setup-node@v4 | ||
with: | ||
cache: yarn | ||
node-version: '20' | ||
- run: yarn install --frozen-lockfile | ||
shell: bash | ||
using: composite |
Oops, something went wrong.