Skip to content

Commit 80dd55a

Browse files
chore: set up standalone repository ✨
1 parent e3d9657 commit 80dd55a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+7048
-340
lines changed

.eslintignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
dist
3+
jest.config.js
4+
fixtures
5+
coverage
6+
__snapshots__
7+
build

.eslintrc.js

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// @ts-check
2+
module.exports = {
3+
root: true,
4+
plugins: [
5+
'@typescript-eslint',
6+
'deprecation',
7+
'eslint-comments',
8+
'eslint-plugin',
9+
'jest',
10+
'jsdoc',
11+
'simple-import-sort',
12+
'unicorn',
13+
],
14+
env: {
15+
es2020: true,
16+
node: true,
17+
},
18+
extends: [
19+
'eslint:recommended',
20+
'plugin:eslint-comments/recommended',
21+
'plugin:eslint-plugin/recommended',
22+
'plugin:jsdoc/recommended-typescript-error',
23+
'plugin:@typescript-eslint/strict-type-checked',
24+
'plugin:@typescript-eslint/stylistic-type-checked',
25+
],
26+
parserOptions: {
27+
project: 'tsconfig.eslint.json',
28+
tsconfigRootDir: __dirname,
29+
},
30+
rules: {
31+
'@typescript-eslint/consistent-type-imports': [
32+
'error',
33+
{ prefer: 'type-imports', disallowTypeAnnotations: true },
34+
],
35+
'@typescript-eslint/explicit-function-return-type': [
36+
'error',
37+
{ allowIIFEs: true },
38+
],
39+
'deprecation/deprecation': 'error',
40+
41+
// https://github.com/gajus/eslint-plugin-jsdoc/issues/1169
42+
'jsdoc/check-param-names': 'off',
43+
// https://github.com/gajus/eslint-plugin-jsdoc/issues/1175
44+
'jsdoc/require-jsdoc': 'off',
45+
'jsdoc/require-param': 'off',
46+
'jsdoc/require-returns': 'off',
47+
'jsdoc/require-yields': 'off',
48+
'jsdoc/tag-lines': 'off',
49+
50+
'simple-import-sort/imports': 'error',
51+
},
52+
overrides: [
53+
{
54+
files: ['*.js'],
55+
extends: ['plugin:@typescript-eslint/disable-type-checked'],
56+
rules: {
57+
'deprecation/deprecation': 'off',
58+
'@typescript-eslint/explicit-function-return-type': 'off',
59+
},
60+
},
61+
// all test files
62+
{
63+
extends: ['plugin:jest/recommended'],
64+
files: ['./tests/**/*'],
65+
env: {
66+
'jest/globals': true,
67+
},
68+
},
69+
],
70+
};

.github/CODE_OF_CONDUCT.md

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socioeconomic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

.github/CONTRIBUTING.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Contributing
2+
3+
See **https://typescript-eslint.io/contributing** for our contributing guidelines.
4+
Thanks! 💖

.github/DEVELOPMENT.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Development
2+
3+
See **https://typescript-eslint.io/contributing/local-development** for our development instructions.
4+
Thanks! 💖

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
open_collective: typescript-eslint

.github/ISSUE_TEMPLATE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- Note: Please must use one of our issue templates to file an issue! 🛑 -->
2+
<!-- 👉 https://github.com/typescript-eslint/eslint-plugin-tslint/issues/new/choose 👈 -->
3+
<!-- **Issues that should have been filed with a template will be closed without action, and we will ask you to use a template.** -->
4+
5+
<!-- This blank issue template is only for issues that don't fit any of the templates. -->
6+
7+
## Overview
8+
9+
...

.github/ISSUE_TEMPLATE/01-bug.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
body:
2+
- attributes:
3+
description: If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!
4+
label: Bug Report Checklist
5+
options:
6+
- label: I have tried restarting my IDE and the issue persists.
7+
required: true
8+
- label: I have pulled the latest `main` branch of the repository.
9+
required: true
10+
- 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.
11+
required: true
12+
type: checkboxes
13+
- attributes:
14+
description: What did you expect to happen?
15+
label: Expected
16+
type: textarea
17+
validations:
18+
required: true
19+
- attributes:
20+
description: What happened instead?
21+
label: Actual
22+
type: textarea
23+
validations:
24+
required: true
25+
- attributes:
26+
description: Any additional info you'd like to provide.
27+
label: Additional Info
28+
type: textarea
29+
description: Report a bug trying to run the code
30+
labels:
31+
- 'type: bug'
32+
name: 🐛 Bug
33+
title: '🐛 Bug: <short description of the bug>'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
body:
2+
- attributes:
3+
description: If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!
4+
label: Bug Report Checklist
5+
options:
6+
- label: I have pulled the latest `main` branch of the repository.
7+
required: true
8+
- 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.
9+
required: true
10+
type: checkboxes
11+
- attributes:
12+
description: What would you like to report?
13+
label: Overview
14+
type: textarea
15+
validations:
16+
required: true
17+
- attributes:
18+
description: Any additional info you'd like to provide.
19+
label: Additional Info
20+
type: textarea
21+
description: Report a typo or missing area of documentation
22+
labels:
23+
- 'area: documentation'
24+
name: 📝 Documentation
25+
title: '📝 Documentation: <short description of the request>'

.github/ISSUE_TEMPLATE/03-feature.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
body:
2+
- attributes:
3+
description: If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!
4+
label: Bug Report Checklist
5+
options:
6+
- label: I have pulled the latest `main` branch of the repository.
7+
required: true
8+
- 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.
9+
required: true
10+
type: checkboxes
11+
- attributes:
12+
description: What did you expect to be able to do?
13+
label: Overview
14+
type: textarea
15+
validations:
16+
required: true
17+
- attributes:
18+
description: Any additional info you'd like to provide.
19+
label: Additional Info
20+
type: textarea
21+
description: Request that a new feature be added or an existing feature improved
22+
labels:
23+
- 'type: feature'
24+
name: 🚀 Feature
25+
title: '🚀 Feature: <short description of the feature>'

.github/ISSUE_TEMPLATE/04-tooling.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
body:
2+
- attributes:
3+
description: If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!
4+
label: Tooling Request Checklist
5+
options:
6+
- label: I have tried restarting my IDE and the issue persists.
7+
required: true
8+
- label: I have pulled the latest `main` branch of the repository.
9+
required: true
10+
- 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.
11+
required: true
12+
type: checkboxes
13+
- attributes:
14+
description: What did you expect to be able to do?
15+
label: Overview
16+
type: textarea
17+
validations:
18+
required: true
19+
- attributes:
20+
description: Any additional info you'd like to provide.
21+
label: Additional Info
22+
type: textarea
23+
description: Report a bug or request an enhancement in repository tooling
24+
labels:
25+
- 'area: tooling'
26+
name: 🛠 Tooling
27+
title: '🛠 Tooling: <short description of the change>'

.github/PULL_REQUEST_TEMPLATE.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- 👋 Hi, thanks for sending a PR to eslint-plugin-tslint! 💖.
2+
Please fill out all fields below and make sure each item is true and [x] checked.
3+
Otherwise we may not be able to review your PR. -->
4+
5+
## PR Checklist
6+
7+
- [ ] Addresses an existing open issue: fixes #000
8+
- [ ] 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)
9+
- [ ] Steps in [CONTRIBUTING.md](https://github.com/typescript-eslineslint-plugin-tslintt/blob/main/.github/CONTRIBUTING.md) were taken
10+
11+
## Overview
12+
13+
<!-- Description of what is changed and how the code change does that. -->

.github/SECURITY.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Security Policy
2+
3+
The typescript-eslint team and community take all security vulnerabilities seriously.
4+
If you have a vulnerability or other security issues to disclose:
5+
6+
- Thank you very much, please do!
7+
- Please send them to us by emailing `[email protected]`
8+
9+
We appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions.
10+
11+
> We also adhere to the [Tidelift security process](https://support.tidelift.com/hc/en-us/articles/4406287910036-Security-process).
12+
> See https://tidelift.com/security.

.github/actions/prepare/action.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
description: Prepares the repo for a typical CI job
2+
3+
name: Prepare
4+
5+
runs:
6+
steps:
7+
- uses: actions/setup-node@v4
8+
with:
9+
cache: yarn
10+
node-version: '20'
11+
- run: yarn install --frozen-lockfile
12+
shell: bash
13+
using: composite

0 commit comments

Comments
 (0)