Skip to content

Commit b10e3b2

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

Some content is hidden

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

46 files changed

+6201
-339
lines changed

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
quote_type = single

.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+
};

.gitattributes

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* text=auto
2+
*.js eol=lf
3+
*.json eol=lf
4+
*.md eol=lf
5+
*.ts eol=lf
6+
*.tsx eol=lf
7+
*.yml eol=lf
8+
9+
# force github to treat out custom jest snapshot extension as normal jest snapshots
10+
*.shot linguist-language=Jest-Snapshot
11+
*.shot linguist-generated

.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

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

.github/renovate.json5

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
enabledManagers: ['github-actions', 'npm'],
3+
ignoreDeps: [
4+
// AJV is out-of-date, but it's intentionally synced with ESLint - https://github.com/eslint/eslint/blob/ad9dd6a933fd098a0d99c6a9aa059850535c23ee/package.json#L70
5+
'ajv',
6+
// globby is ESM so we can't go any higher right now
7+
'globby',
8+
// this dep is now ESM only
9+
'execa',
10+
],
11+
internalChecksFilter: 'strict',
12+
labels: ['dependencies'],
13+
dependencyDashboard: true,
14+
dependencyDashboardLabels: ['dependencies', 'repo maintenance'],
15+
major: {
16+
// most majors will require some manual effort to upgrade to, so we don't want to create
17+
// PRs automatically or else we'll just spam ourselves.
18+
dependencyDashboardApproval: true,
19+
},
20+
// by default renovate will auto-rebase whenever the dep pranch falls behind main.
21+
// this is annoying as it spams notifications and creates unnecessary action runs.
22+
// instead only auto-rebase when conflicted, and we can trigger a manual rebase if required.
23+
rebaseWhen: 'conflicted',
24+
packageRules: [
25+
// automerge everything but major updates
26+
{
27+
matchUpdateTypes: ['minor', 'patch', 'pin', 'digest'],
28+
automerge: true,
29+
automergeStrategy: 'squash',
30+
},
31+
32+
// label PRs appropriately
33+
{
34+
matchManagers: ['npm'],
35+
addLabels: ['javascript'],
36+
},
37+
{
38+
matchManagers: ['github-actions'],
39+
addLabels: ['github-actions'],
40+
},
41+
42+
// batch package sets together
43+
{
44+
extends: ['packages:react'],
45+
groupName: 'react',
46+
},
47+
{
48+
extends: ['monorepo:docusaurus'],
49+
groupName: 'docusaurus',
50+
},
51+
{
52+
extends: ['monorepo:nrwl'],
53+
groupName: 'nx',
54+
},
55+
{
56+
matchPackagePrefixes: ['@babel', 'babel-'],
57+
groupName: 'babel',
58+
},
59+
{
60+
matchPackageNames: ['ts-jest', 'pretty-format'],
61+
matchPackagePrefixes: ['@types/jest', 'jest', '@jest'],
62+
groupName: 'jest',
63+
},
64+
],
65+
postUpdateOptions: [
66+
// run yarn dedupe to cleanup the lockfile after updates
67+
'yarnDedupeHighest',
68+
],
69+
stabilityDays: 3,
70+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
jobs:
2+
accessibility_alt_text_bot:
3+
runs-on: ubuntu-latest
4+
steps:
5+
- uses: github/[email protected]
6+
7+
name: Accessibility Alt Text Bot
8+
9+
on:
10+
issue_comment:
11+
types:
12+
- created
13+
- edited
14+
issues:
15+
types:
16+
- edited
17+
- opened
18+
pull_request:
19+
types:
20+
- edited
21+
- opened
22+
23+
permissions:
24+
issues: write
25+
pull-requests: write

.github/workflows/build.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
jobs:
2+
build:
3+
runs-on: ubuntu-latest
4+
steps:
5+
- uses: actions/checkout@v4
6+
- uses: ./.github/actions/prepare
7+
- run: yarn build
8+
- run: node ./lib/index.js
9+
10+
name: Build
11+
12+
on:
13+
pull_request: ~
14+
push:
15+
branches:
16+
- main

0 commit comments

Comments
 (0)