@santi020k/eslint-config-basic 0.1.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +21 -0
- package/dist/index.js +129 -0
- package/package.json +47 -50
- package/.agent/rules/context.md +0 -78
- package/.agent/rules/guidelines.md +0 -124
- package/.editorconfig +0 -13
- package/.env.example +0 -8
- package/.github/CODEOWNERS +0 -2
- package/.github/DISCUSSION_TEMPLATE/rfcs.yml +0 -21
- package/.github/DISCUSSION_TEMPLATE/technical-discussions.yml +0 -21
- package/.github/FUNDING.yml +0 -2
- package/.github/ISSUE_TEMPLATE/README.md +0 -13
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -69
- package/.github/ISSUE_TEMPLATE/config.yml +0 -8
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -43
- package/.github/ISSUE_TEMPLATE/question.yml +0 -22
- package/.github/SECURITY.md +0 -12
- package/.github/SPONSORSHIPS.md +0 -27
- package/.github/dependabot.yml +0 -45
- package/.github/labeler.yml +0 -46
- package/.github/pull_request_template.md +0 -56
- package/.github/workflows/assign-issues.yml +0 -18
- package/.github/workflows/audit.yml +0 -22
- package/.github/workflows/build.yml +0 -29
- package/.github/workflows/codeql.yml +0 -40
- package/.github/workflows/docs.yml +0 -49
- package/.github/workflows/labeler.yml +0 -18
- package/.github/workflows/publish.yml +0 -24
- package/.github/workflows/release.yml +0 -35
- package/.github/workflows/size-check.yml +0 -23
- package/.github/workflows/stale.yml +0 -31
- package/.nvmrc +0 -1
- package/.vscode/extensions.json +0 -10
- package/.vscode/settings.json +0 -55
- package/CHANGELOG.md +0 -16
- package/CONTRIBUTING.md +0 -194
- package/DEVELOPMENT.md +0 -4
- package/LICENSE +0 -21
- package/README.md +0 -275
- package/config/.husky/commit-msg +0 -9
- package/config/.husky/pre-commit +0 -1
- package/config/.husky/pre-push +0 -1
- package/config/.husky/prepare-commit-msg +0 -1
- package/cspell.config.yaml +0 -2
- package/eslint.config.js +0 -21
- package/llms.txt +0 -72
- package/packages/astro/README.md +0 -13
- package/packages/astro/package.json +0 -45
- package/packages/astro/src/ambient.d.ts +0 -10
- package/packages/astro/src/index.ts +0 -18
- package/packages/astro/src/rules.ts +0 -29
- package/packages/astro/tsconfig.json +0 -9
- package/packages/astro/tsup.config.ts +0 -11
- package/packages/basic/README.md +0 -33
- package/packages/basic/package.json +0 -55
- package/packages/basic/src/index.ts +0 -110
- package/packages/basic/tsconfig.json +0 -9
- package/packages/basic/tsup.config.ts +0 -18
- package/packages/core/README.md +0 -14
- package/packages/core/index.ts +0 -14
- package/packages/core/package.json +0 -61
- package/packages/core/src/ambient.d.ts +0 -61
- package/packages/core/src/index.ts +0 -75
- package/packages/core/src/rules.ts +0 -157
- package/packages/core/src/settings/gitignore.ts +0 -10
- package/packages/core/src/settings/index.ts +0 -1
- package/packages/core/src/types.ts +0 -57
- package/packages/core/src/utils/index.ts +0 -28
- package/packages/core/tsconfig.json +0 -9
- package/packages/core/tsup.config.ts +0 -10
- package/packages/expo/README.md +0 -13
- package/packages/expo/package.json +0 -48
- package/packages/expo/src/ambient.d.ts +0 -3
- package/packages/expo/src/index.ts +0 -39
- package/packages/expo/tsconfig.json +0 -9
- package/packages/expo/tsup.config.ts +0 -11
- package/packages/nest/package.json +0 -45
- package/packages/nest/src/ambient.d.ts +0 -14
- package/packages/nest/src/index.ts +0 -20
- package/packages/nest/src/rules.ts +0 -15
- package/packages/nest/tsconfig.json +0 -9
- package/packages/nest/tsup.config.ts +0 -11
- package/packages/next/README.md +0 -13
- package/packages/next/package.json +0 -47
- package/packages/next/src/index.ts +0 -31
- package/packages/next/src/rules.ts +0 -16
- package/packages/next/tsconfig.json +0 -9
- package/packages/next/tsup.config.ts +0 -10
- package/packages/optionals/README.md +0 -18
- package/packages/optionals/package.json +0 -55
- package/packages/optionals/src/ambient.d.ts +0 -25
- package/packages/optionals/src/cspell.ts +0 -14
- package/packages/optionals/src/i18next.ts +0 -19
- package/packages/optionals/src/index.ts +0 -8
- package/packages/optionals/src/markdown.ts +0 -66
- package/packages/optionals/src/mdx.ts +0 -40
- package/packages/optionals/src/stencil.ts +0 -48
- package/packages/optionals/src/tailwind.ts +0 -11
- package/packages/optionals/src/vitest.ts +0 -61
- package/packages/optionals/tsconfig.json +0 -9
- package/packages/optionals/tsup.config.ts +0 -11
- package/packages/playground/README.md +0 -14
- package/packages/playground/package.json +0 -17
- package/packages/playground/src/astro/eslint.config.js +0 -4
- package/packages/playground/src/js/eslint.config.js +0 -4
- package/packages/playground/src/js/index.test.js +0 -63
- package/packages/playground/src/mdx/eslint.config.js +0 -4
- package/packages/playground/src/mdx/index.mdx +0 -115
- package/packages/playground/src/react/eslint.config.js +0 -4
- package/packages/playground/src/react/index.test.jsx +0 -130
- package/packages/playground/src/ts/eslint.config.js +0 -4
- package/packages/playground/src/ts/index.test.ts +0 -61
- package/packages/playground/src/ts/tsconfig.json +0 -3
- package/packages/playground/tsconfig.json +0 -9
- package/packages/react/README.md +0 -14
- package/packages/react/index.ts +0 -26
- package/packages/react/package.json +0 -49
- package/packages/react/src/ambient.d.ts +0 -23
- package/packages/react/src/index.ts +0 -52
- package/packages/react/src/rules.ts +0 -47
- package/packages/react/tsconfig.json +0 -9
- package/packages/react/tsup.config.ts +0 -10
- package/packages/tests/README.md +0 -17
- package/packages/tests/package.json +0 -21
- package/packages/tests/src/__snapshots__/snapshots.test.ts.snap +0 -654
- package/packages/tests/src/composition.test.ts +0 -171
- package/packages/tests/src/configs.test.ts +0 -118
- package/packages/tests/src/rules.test.ts +0 -60
- package/packages/tests/src/snapshots.test.ts +0 -126
- package/packages/tests/tsconfig.json +0 -10
- package/packages/tests/vitest.config.ts +0 -8
- package/packages/typescript/README.md +0 -14
- package/packages/typescript/package.json +0 -47
- package/packages/typescript/src/index.ts +0 -32
- package/packages/typescript/src/rules.ts +0 -36
- package/packages/typescript/tsconfig.json +0 -9
- package/packages/typescript/tsup.config.ts +0 -10
- package/tsconfig.base.json +0 -20
- package/tsconfig.docs.json +0 -18
- package/turbo.json +0 -19
- package/typedoc.config.mjs +0 -25
- package/typedoc.markdown.mjs +0 -26
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
name: ❓ Question / Support
|
|
2
|
-
description: Ask a question about using this configuration
|
|
3
|
-
title: "[Question]: "
|
|
4
|
-
labels: ["question"]
|
|
5
|
-
body:
|
|
6
|
-
- type: textarea
|
|
7
|
-
id: question
|
|
8
|
-
attributes:
|
|
9
|
-
label: Question
|
|
10
|
-
description: What would you like to know?
|
|
11
|
-
placeholder: How do I configure...
|
|
12
|
-
validations:
|
|
13
|
-
required: true
|
|
14
|
-
|
|
15
|
-
- type: textarea
|
|
16
|
-
id: context
|
|
17
|
-
attributes:
|
|
18
|
-
label: Relevant Code / Context
|
|
19
|
-
description: Please provide any relevant code snippets or configuration details.
|
|
20
|
-
render: typescript
|
|
21
|
-
validations:
|
|
22
|
-
required: false
|
package/.github/SECURITY.md
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Security Policy
|
|
2
|
-
|
|
3
|
-
I 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 `info@santi020k.me`
|
|
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](https://tidelift.com/security).
|
package/.github/SPONSORSHIPS.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Sponsorship
|
|
2
|
-
|
|
3
|
-
`@santi020k/eslint-config-basic` is an entirely volunteer-run project.
|
|
4
|
-
I am not associated with any company or organization; development is funded solely from community donations.
|
|
5
|
-
|
|
6
|
-
## Why Sponsor `@santi020k/eslint-config-basic`?
|
|
7
|
-
|
|
8
|
-
This ESLint configuration is designed to help developers maintain clean and consistent codebases. Sponsoring this project helps ensure continued development and support for the broader JavaScript and TypeScript ecosystems. By supporting `@santi020k/eslint-config-basic`, you help:
|
|
9
|
-
|
|
10
|
-
- Support updates and improvements to the ESLint configuration
|
|
11
|
-
- Continue enhancing documentation and user experience
|
|
12
|
-
- Fix bugs and add new features to the ESLint rules and configurations
|
|
13
|
-
- Develop more advanced rules to ensure code correctness and maintainability
|
|
14
|
-
|
|
15
|
-
### Sponsorship Benefits
|
|
16
|
-
|
|
17
|
-
In addition to supporting the development of this library, sponsoring on Open Collective helps promote your company and development brand.
|
|
18
|
-
Top sponsors may have their link, logo, and/or name featured on the project's GitHub page.
|
|
19
|
-
|
|
20
|
-
> Got an idea for how to make sponsorship work for you?
|
|
21
|
-
> Let me know at `info@santi020k.me`!
|
|
22
|
-
|
|
23
|
-
## Sponsorship Limitations
|
|
24
|
-
|
|
25
|
-
### Project Direction
|
|
26
|
-
|
|
27
|
-
While sponsorship is greatly appreciated, it does not influence issue prioritization or pull request reviews. If you need to push forward specific work in `@santi020k/eslint-config-basic` more urgently than a general donation can provide, consider contributing engineering time as well.
|
package/.github/dependabot.yml
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
|
|
3
|
-
updates:
|
|
4
|
-
# npm dependencies
|
|
5
|
-
- package-ecosystem: npm
|
|
6
|
-
directory: /
|
|
7
|
-
schedule:
|
|
8
|
-
interval: weekly
|
|
9
|
-
day: monday
|
|
10
|
-
open-pull-requests-limit: 10
|
|
11
|
-
groups:
|
|
12
|
-
eslint-plugins:
|
|
13
|
-
patterns:
|
|
14
|
-
- 'eslint-*'
|
|
15
|
-
- '@eslint/*'
|
|
16
|
-
- '@typescript-eslint/*'
|
|
17
|
-
- 'typescript-eslint'
|
|
18
|
-
- '@stylistic/*'
|
|
19
|
-
- '@cspell/*'
|
|
20
|
-
build-tools:
|
|
21
|
-
patterns:
|
|
22
|
-
- 'tsup'
|
|
23
|
-
- 'typescript'
|
|
24
|
-
- 'turbo'
|
|
25
|
-
testing:
|
|
26
|
-
patterns:
|
|
27
|
-
- 'vitest'
|
|
28
|
-
linting-tools:
|
|
29
|
-
patterns:
|
|
30
|
-
- 'husky'
|
|
31
|
-
- 'lint-staged'
|
|
32
|
-
- 'commitizen'
|
|
33
|
-
- 'cz-*'
|
|
34
|
-
|
|
35
|
-
# GitHub Actions
|
|
36
|
-
- package-ecosystem: github-actions
|
|
37
|
-
directory: /
|
|
38
|
-
schedule:
|
|
39
|
-
interval: weekly
|
|
40
|
-
day: monday
|
|
41
|
-
open-pull-requests-limit: 5
|
|
42
|
-
groups:
|
|
43
|
-
actions:
|
|
44
|
-
patterns:
|
|
45
|
-
- '*'
|
package/.github/labeler.yml
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
core:
|
|
2
|
-
- changed-files:
|
|
3
|
-
- any-glob-to-any-file: 'packages/core/**'
|
|
4
|
-
|
|
5
|
-
typescript:
|
|
6
|
-
- changed-files:
|
|
7
|
-
- any-glob-to-any-file: 'packages/typescript/**'
|
|
8
|
-
|
|
9
|
-
react:
|
|
10
|
-
- changed-files:
|
|
11
|
-
- any-glob-to-any-file: 'packages/react/**'
|
|
12
|
-
|
|
13
|
-
next:
|
|
14
|
-
- changed-files:
|
|
15
|
-
- any-glob-to-any-file: 'packages/next/**'
|
|
16
|
-
|
|
17
|
-
astro:
|
|
18
|
-
- changed-files:
|
|
19
|
-
- any-glob-to-any-file: 'packages/astro/**'
|
|
20
|
-
|
|
21
|
-
expo:
|
|
22
|
-
- changed-files:
|
|
23
|
-
- any-glob-to-any-file: 'packages/expo/**'
|
|
24
|
-
|
|
25
|
-
optionals:
|
|
26
|
-
- changed-files:
|
|
27
|
-
- any-glob-to-any-file: 'packages/optionals/**'
|
|
28
|
-
|
|
29
|
-
basic:
|
|
30
|
-
- changed-files:
|
|
31
|
-
- any-glob-to-any-file: 'packages/basic/**'
|
|
32
|
-
|
|
33
|
-
tests:
|
|
34
|
-
- changed-files:
|
|
35
|
-
- any-glob-to-any-file: 'packages/tests/**'
|
|
36
|
-
|
|
37
|
-
ci:
|
|
38
|
-
- changed-files:
|
|
39
|
-
- any-glob-to-any-file: '.github/**'
|
|
40
|
-
|
|
41
|
-
docs:
|
|
42
|
-
- changed-files:
|
|
43
|
-
- any-glob-to-any-file:
|
|
44
|
-
- '*.md'
|
|
45
|
-
- 'packages/*/README.md'
|
|
46
|
-
- 'llms.txt'
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# � Pull Request
|
|
3
|
-
|
|
4
|
-
## Description
|
|
5
|
-
|
|
6
|
-
<!--
|
|
7
|
-
Please include a summary of the change and which issue is fixed.
|
|
8
|
-
Please also include relevant motivation and context.
|
|
9
|
-
-->
|
|
10
|
-
|
|
11
|
-
## Related Issue
|
|
12
|
-
|
|
13
|
-
<!--
|
|
14
|
-
Link to the issue this PR resolves, e.g. "Resolves #123"
|
|
15
|
-
-->
|
|
16
|
-
|
|
17
|
-
## Type of Change
|
|
18
|
-
|
|
19
|
-
<!-- Please delete options that are not relevant. -->
|
|
20
|
-
|
|
21
|
-
- [ ] ✨ New feature (non-breaking change which adds functionality)
|
|
22
|
-
- [ ] 🛠️ Bug fix (non-breaking change which fixes an issue)
|
|
23
|
-
- [ ] 💥 Breaking change (fix or feature that would cause existing functionality to change)
|
|
24
|
-
- [ ] 🧹 Refactor (no functional changes, no api changes)
|
|
25
|
-
- [ ] 🧪 Tests (adding missing tests or correcting existing tests)
|
|
26
|
-
- [ ] 📚 Documentation (updating documentation)
|
|
27
|
-
- [ ] ⚙️ CI/CD (updates to workflows or build scripts)
|
|
28
|
-
|
|
29
|
-
## Packages Affected
|
|
30
|
-
|
|
31
|
-
<!-- Check all that apply -->
|
|
32
|
-
|
|
33
|
-
- [ ] `basic` (@santi020k/eslint-config-basic)
|
|
34
|
-
- [ ] `core` (@santi020k/eslint-config-core)
|
|
35
|
-
- [ ] `typescript` (@santi020k/eslint-config-typescript)
|
|
36
|
-
- [ ] `react` (@santi020k/eslint-config-react)
|
|
37
|
-
- [ ] `next` (@santi020k/eslint-config-next)
|
|
38
|
-
- [ ] `astro` (@santi020k/eslint-config-astro)
|
|
39
|
-
- [ ] `expo` (@santi020k/eslint-config-expo)
|
|
40
|
-
- [ ] `optionals` (@santi020k/eslint-config-optionals)
|
|
41
|
-
- [ ] `tests` (internal tests)
|
|
42
|
-
|
|
43
|
-
## Checklist
|
|
44
|
-
|
|
45
|
-
- [ ] I have read the [CONTRIBUTING](../CONTRIBUTING.md) guide
|
|
46
|
-
- [ ] My code follows the style guidelines of this project
|
|
47
|
-
- [ ] I have performed a self-review of my own code
|
|
48
|
-
- [ ] I have commented my code, particularly in hard-to-understand areas
|
|
49
|
-
- [ ] I have made corresponding changes to the documentation
|
|
50
|
-
- [ ] I have added tests that prove my fix is effective or that my feature works
|
|
51
|
-
- [ ] New and existing unit tests pass locally with my changes (`npm test`)
|
|
52
|
-
- [ ] I have run the build script and it passes (`npm run build`)
|
|
53
|
-
|
|
54
|
-
## Screenshots (if applicable)
|
|
55
|
-
|
|
56
|
-
<!-- Add screenshots here if your changes affect the UI or documentation output. -->
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
name: Issue assignment
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
issues:
|
|
5
|
-
types: [opened]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
auto-assign:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
permissions:
|
|
11
|
-
issues: write
|
|
12
|
-
steps:
|
|
13
|
-
- name: 'Auto-assign issue'
|
|
14
|
-
uses: pozil/auto-assign-issue@v2
|
|
15
|
-
with:
|
|
16
|
-
assignees: santi020k
|
|
17
|
-
numOfAssignee: 1
|
|
18
|
-
allowSelfAssign: true
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
name: Security Audit
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches: [main]
|
|
6
|
-
schedule:
|
|
7
|
-
- cron: '0 9 * * 1' # Every Monday at 9am UTC
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
audit:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v6
|
|
15
|
-
- name: Setup Node
|
|
16
|
-
uses: actions/setup-node@v6
|
|
17
|
-
with:
|
|
18
|
-
node-version: '22'
|
|
19
|
-
cache: 'npm'
|
|
20
|
-
- run: npm ci
|
|
21
|
-
- name: Run npm audit
|
|
22
|
-
run: npm audit --audit-level=moderate
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [main]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [main]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
build:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
|
|
13
|
-
strategy:
|
|
14
|
-
matrix:
|
|
15
|
-
node-version: [20.x, 22.x]
|
|
16
|
-
|
|
17
|
-
steps:
|
|
18
|
-
- uses: actions/checkout@v6
|
|
19
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
20
|
-
uses: actions/setup-node@v6
|
|
21
|
-
with:
|
|
22
|
-
node-version: ${{ matrix.node-version }}
|
|
23
|
-
cache: 'npm'
|
|
24
|
-
- run: npm ci
|
|
25
|
-
- run: npm run build
|
|
26
|
-
- run: npm run lint
|
|
27
|
-
- run: npm run test
|
|
28
|
-
- name: Dry-run publish check
|
|
29
|
-
run: npm publish --dry-run -w packages/basic
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
name: "CodeQL"
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ "main" ]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [ "main" ]
|
|
8
|
-
schedule:
|
|
9
|
-
- cron: '21 7 * * 0'
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
analyze:
|
|
13
|
-
name: Analyze
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
permissions:
|
|
16
|
-
actions: read
|
|
17
|
-
contents: read
|
|
18
|
-
security-events: write
|
|
19
|
-
|
|
20
|
-
strategy:
|
|
21
|
-
fail-fast: false
|
|
22
|
-
matrix:
|
|
23
|
-
language: [ 'javascript', 'typescript' ]
|
|
24
|
-
|
|
25
|
-
steps:
|
|
26
|
-
- name: Checkout repository
|
|
27
|
-
uses: actions/checkout@v4
|
|
28
|
-
|
|
29
|
-
- name: Initialize CodeQL
|
|
30
|
-
uses: github/codeql-action/init@v3
|
|
31
|
-
with:
|
|
32
|
-
languages: ${{ matrix.language }}
|
|
33
|
-
|
|
34
|
-
- name: Autobuild
|
|
35
|
-
uses: github/codeql-action/autobuild@v3
|
|
36
|
-
|
|
37
|
-
- name: Perform CodeQL Analysis
|
|
38
|
-
uses: github/codeql-action/analyze@v3
|
|
39
|
-
with:
|
|
40
|
-
category: "/language:${{matrix.language}}"
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
name: Deploy Docs
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [main]
|
|
6
|
-
workflow_dispatch:
|
|
7
|
-
|
|
8
|
-
permissions:
|
|
9
|
-
contents: read
|
|
10
|
-
pages: write
|
|
11
|
-
id-token: write
|
|
12
|
-
|
|
13
|
-
concurrency:
|
|
14
|
-
group: pages
|
|
15
|
-
cancel-in-progress: true
|
|
16
|
-
|
|
17
|
-
jobs:
|
|
18
|
-
build:
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
|
|
21
|
-
steps:
|
|
22
|
-
- uses: actions/checkout@v6
|
|
23
|
-
- name: Setup Node
|
|
24
|
-
uses: actions/setup-node@v6
|
|
25
|
-
with:
|
|
26
|
-
node-version: '22'
|
|
27
|
-
cache: 'npm'
|
|
28
|
-
- run: npm ci
|
|
29
|
-
- run: npm run build
|
|
30
|
-
- name: Generate docs
|
|
31
|
-
run: npm run docs
|
|
32
|
-
- name: Create .nojekyll
|
|
33
|
-
run: touch docs/.nojekyll
|
|
34
|
-
- name: Upload Pages artifact
|
|
35
|
-
uses: actions/upload-pages-artifact@v4
|
|
36
|
-
with:
|
|
37
|
-
path: docs
|
|
38
|
-
|
|
39
|
-
deploy:
|
|
40
|
-
needs: build
|
|
41
|
-
runs-on: ubuntu-latest
|
|
42
|
-
environment:
|
|
43
|
-
name: github-pages
|
|
44
|
-
url: ${{ steps.deployment.outputs.page_url }}
|
|
45
|
-
|
|
46
|
-
steps:
|
|
47
|
-
- name: Deploy to GitHub Pages
|
|
48
|
-
id: deployment
|
|
49
|
-
uses: actions/deploy-pages@v4
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
name: PR Labeler
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request_target:
|
|
5
|
-
types: [opened, synchronize, reopened]
|
|
6
|
-
|
|
7
|
-
permissions:
|
|
8
|
-
contents: read
|
|
9
|
-
pull-requests: write
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
label:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/labeler@v6
|
|
17
|
-
with:
|
|
18
|
-
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
name: Publish to NPM
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [created]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
publish:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
|
|
11
|
-
steps:
|
|
12
|
-
- name: Checkout
|
|
13
|
-
uses: actions/checkout@v6
|
|
14
|
-
- name: Setup Node
|
|
15
|
-
uses: actions/setup-node@v6
|
|
16
|
-
with:
|
|
17
|
-
node-version: '22'
|
|
18
|
-
registry-url: 'https://registry.npmjs.org'
|
|
19
|
-
- name: Install dependencies and build
|
|
20
|
-
run: npm ci && npm run build
|
|
21
|
-
- name: Publish package on NPM
|
|
22
|
-
run: npm publish -w packages/basic
|
|
23
|
-
env:
|
|
24
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
name: Releases
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
changelog:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
permissions:
|
|
12
|
-
contents: write
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- name: Check out repository
|
|
16
|
-
uses: actions/checkout@v6
|
|
17
|
-
|
|
18
|
-
- name: Generate Conventional Changelog
|
|
19
|
-
id: changelog
|
|
20
|
-
uses: TriPSs/conventional-changelog-action@v6
|
|
21
|
-
with:
|
|
22
|
-
github-token: ${{ secrets.PA_TOKEN }}
|
|
23
|
-
version-file: './package.json,./package-lock.json'
|
|
24
|
-
|
|
25
|
-
- name: Create GitHub Release
|
|
26
|
-
if: ${{ steps.changelog.outputs.skipped == 'false' }}
|
|
27
|
-
uses: softprops/action-gh-release@v2
|
|
28
|
-
with:
|
|
29
|
-
tag_name: ${{ steps.changelog.outputs.tag }}
|
|
30
|
-
name: ${{ steps.changelog.outputs.tag }}
|
|
31
|
-
body: ${{ steps.changelog.outputs.clean_changelog }}
|
|
32
|
-
draft: false
|
|
33
|
-
prerelease: false
|
|
34
|
-
env:
|
|
35
|
-
GITHUB_TOKEN: ${{ secrets.PA_TOKEN }}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
name: Package Size
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches: [main]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
size:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
permissions:
|
|
11
|
-
contents: read
|
|
12
|
-
pull-requests: write
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v6
|
|
16
|
-
- uses: pkg-size/action@v1
|
|
17
|
-
with:
|
|
18
|
-
build-command: npm run build
|
|
19
|
-
display-size: uncompressed,gzip
|
|
20
|
-
comment-report: true
|
|
21
|
-
unchanged-files: collapse
|
|
22
|
-
env:
|
|
23
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
name: Stale Issues & PRs
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
schedule:
|
|
5
|
-
- cron: '0 0 * * *' # Daily at midnight UTC
|
|
6
|
-
|
|
7
|
-
permissions:
|
|
8
|
-
issues: write
|
|
9
|
-
pull-requests: write
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
stale:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/stale@v10
|
|
17
|
-
with:
|
|
18
|
-
stale-issue-message: >
|
|
19
|
-
This issue has been automatically marked as stale because it has not had
|
|
20
|
-
recent activity. It will be closed in 7 days if no further activity occurs.
|
|
21
|
-
stale-pr-message: >
|
|
22
|
-
This PR has been automatically marked as stale because it has not had
|
|
23
|
-
recent activity. It will be closed in 7 days if no further activity occurs.
|
|
24
|
-
days-before-issue-stale: 30
|
|
25
|
-
days-before-issue-close: 7
|
|
26
|
-
days-before-pr-stale: 14
|
|
27
|
-
days-before-pr-close: 7
|
|
28
|
-
stale-issue-label: stale
|
|
29
|
-
stale-pr-label: stale
|
|
30
|
-
exempt-issue-labels: pinned,security
|
|
31
|
-
exempt-pr-labels: pinned,security
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
v22.9.0
|
package/.vscode/extensions.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"recommendations": [
|
|
3
|
-
"davidanson.vscode-markdownlint",
|
|
4
|
-
"dbaeumer.vscode-eslint",
|
|
5
|
-
"editorconfig.editorconfig",
|
|
6
|
-
"streetsidesoftware.code-spell-checker",
|
|
7
|
-
"mrmlnc.vscode-json5"
|
|
8
|
-
],
|
|
9
|
-
"unwantedRecommendations": ["hookyqr.beautify", "dbaeumer.jshint"]
|
|
10
|
-
}
|
package/.vscode/settings.json
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// This matches the value configured on the autoformatter
|
|
3
|
-
"editor.rulers": [80],
|
|
4
|
-
|
|
5
|
-
// An array of language ids which should be validated by ESLint
|
|
6
|
-
"eslint.validate": [
|
|
7
|
-
"javascript",
|
|
8
|
-
"javascriptreact",
|
|
9
|
-
"typescript",
|
|
10
|
-
"typescriptreact",
|
|
11
|
-
"markdown",
|
|
12
|
-
"md",
|
|
13
|
-
"mdx"
|
|
14
|
-
],
|
|
15
|
-
// required to make the extension pickup the flat config
|
|
16
|
-
"eslint.useFlatConfig": true,
|
|
17
|
-
|
|
18
|
-
// When enabled, will trim trailing whitespace when saving a file.
|
|
19
|
-
"files.trimTrailingWhitespace": true,
|
|
20
|
-
|
|
21
|
-
// typescript auto-format settings
|
|
22
|
-
"typescript.tsdk": "node_modules/typescript/lib",
|
|
23
|
-
"javascript.preferences.importModuleSpecifier": "project-relative",
|
|
24
|
-
"typescript.preferences.importModuleSpecifier": "project-relative",
|
|
25
|
-
"javascript.preferences.quoteStyle": "single",
|
|
26
|
-
"typescript.preferences.quoteStyle": "single",
|
|
27
|
-
|
|
28
|
-
// make the .shot files from jest-specific-snapshot act like normal snapshots
|
|
29
|
-
"files.associations": {
|
|
30
|
-
"*.shot": "jest-snapshot"
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
"editor.formatOnSave": true,
|
|
34
|
-
"editor.formatOnPaste": true,
|
|
35
|
-
"[typescriptreact]": {
|
|
36
|
-
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
37
|
-
},
|
|
38
|
-
"[scss]": {
|
|
39
|
-
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
40
|
-
},
|
|
41
|
-
"files.exclude": {
|
|
42
|
-
"**/.git": true,
|
|
43
|
-
"**/.svn": true,
|
|
44
|
-
"**/.hg": true,
|
|
45
|
-
"**/CVS": true,
|
|
46
|
-
"**/.DS_Store": true,
|
|
47
|
-
"**/Thumbs.db": true,
|
|
48
|
-
"**/node_modules": false
|
|
49
|
-
},
|
|
50
|
-
"[typescript]": {
|
|
51
|
-
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
52
|
-
},
|
|
53
|
-
"eslint.runtime": "/Users/san/.nvm/versions/node/v22.9.0/bin/node",
|
|
54
|
-
"json.trace.server": "verbose",
|
|
55
|
-
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# 0.1.0 (2026-02-10)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Features
|
|
5
|
-
|
|
6
|
-
* Add and scripts to . ([9438293](https://github.com/santi020k/eslint-config-basic/commit/94382934292682ac82a24a4bf433b621687a23cb))
|
|
7
|
-
* Add Vitest ESLint configuration and include test files in linting and TypeScript compilation. ([db249e0](https://github.com/santi020k/eslint-config-basic/commit/db249e06d0c3270a5b61d7a77706cdd5f1773e0f))
|
|
8
|
-
* Add Vitest for comprehensive testing of ESLint configurations and rules. ([452d988](https://github.com/santi020k/eslint-config-basic/commit/452d988eb265fdd3abe0af0f690d86b77b4031d6))
|
|
9
|
-
* Implement GitHub Actions for repository automation, including stale issue management, dependency updates, PR labeling, security audits, package size checks, and an updated build workflow ([d5e77b7](https://github.com/santi020k/eslint-config-basic/commit/d5e77b7f8b12c7854892606172495c03f1db6052))
|
|
10
|
-
* Initial commit ([e527968](https://github.com/santi020k/eslint-config-basic/commit/e527968e975a9a0b5451eaee4462c315fe3c525b))
|
|
11
|
-
* Introduce AI agent guidelines, instructions, and project context, alongside minor code formatting and updated ESLint ignore patterns. ([c2e0d74](https://github.com/santi020k/eslint-config-basic/commit/c2e0d749ae92666e529517c02356ab385755cb0d))
|
|
12
|
-
* **nest:** Add NestJS ESLint Configuration Package ([#7](https://github.com/santi020k/eslint-config-basic/issues/7)) ([73d11df](https://github.com/santi020k/eslint-config-basic/commit/73d11df268e1f9fa524f66459274d3e4310c7db5))
|
|
13
|
-
* restructure ESLint configuration into a monorepo with core, TypeScript, React, and Next.js packages, and implement a new build system using tsup and TurboRepo. ([f5516c6](https://github.com/santi020k/eslint-config-basic/commit/f5516c6ebb9a5a06bd86420b62c98bd125aff03c))
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|