Compare commits

...

4 Commits

Author SHA1 Message Date
82f177cf9a release: v5.2.0
All checks were successful
Node.js CI / Lint and Test (push) Successful in 1m12s
2025-02-10 20:49:10 -08:00
79a4fede91 feat: include types in build (#3)
Some checks failed
Node.js CI / Lint and Test (push) Has been cancelled
### Explanation

_No response_

### Issue

_No response_

### Attestations

- [x] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/)
- [x] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/).
- [x] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/).

### Dependencies

- [ ] I have pinned the dependencies to a specific patch version.

### Style

- [x] I have run the linter and resolved any errors.
- [x] My pull request uses an appropriate title, matching the conventional commit standards.
- [x] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request.

### Tests

- [ ] My contribution adds new code, and I have added tests to cover it.
- [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes.
- [ ] All new and existing tests pass locally with my changes.
- [ ] Code coverage remains at or above the configured threshold.

### Documentation

_No response_

### Versioning

Minor - My pull request introduces a new non-breaking feature.

Reviewed-on: #3
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
2025-02-10 20:48:52 -08:00
f49a3971d7 docs: update links to new repository (#2)
All checks were successful
Node.js CI / Lint and Test (push) Successful in 1m10s
### Explanation

_No response_

### Issue

_No response_

### Attestations

- [x] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/)
- [x] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/).
- [x] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/).

### Dependencies

- [ ] I have pinned the dependencies to a specific patch version.

### Style

- [x] I have run the linter and resolved any errors.
- [x] My pull request uses an appropriate title, matching the conventional commit standards.
- [x] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request.

### Tests

- [ ] My contribution adds new code, and I have added tests to cover it.
- [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes.
- [x] All new and existing tests pass locally with my changes.
- [x] Code coverage remains at or above the configured threshold.

### Documentation

_No response_

### Versioning

Patch - My pull request introduces bug fixes ONLY.

Reviewed-on: #2
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
2025-02-10 20:46:15 -08:00
3a972f73a5 feat: setup actions (#1)
All checks were successful
Node.js CI / Lint and Test (push) Successful in 1m5s
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
2025-01-23 01:59:43 -08:00
5 changed files with 47 additions and 8 deletions

38
.gitea/workflows/ci.yml Normal file
View File

@ -0,0 +1,38 @@
name: Node.js CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: Lint and Test
steps:
- name: Checkout Source Files
uses: actions/checkout@v4
- name: Use Node.js v22
uses: actions/setup-node@v4
with:
node-version: 22
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Install Dependencies
run: pnpm install
- name: Lint Source Files
run: pnpm run lint
- name: Verify Build
run: pnpm run build
- name: Run Tests
run: pnpm run test

View File

@ -93,7 +93,7 @@ All style changes should be proposed in our [chat server](https://chat.nhcarriga
## Feedback and Bugs ## Feedback and Bugs
If you have feedback or a bug report, please feel free to open a GitHub issue! If you have feedback or a bug report, please feel free to open an issue!
## Contributing ## Contributing

View File

@ -1,12 +1,12 @@
{ {
"name": "@nhcarrigan/eslint-config", "name": "@nhcarrigan/eslint-config",
"version": "5.1.0", "version": "5.2.0",
"description": "Global config for ESLint", "description": "Global config for ESLint",
"main": "prod/index.js", "main": "prod/index.js",
"type": "module", "type": "module",
"scripts": { "scripts": {
"prepublish": "pnpm format && pnpm test", "prepublish": "pnpm format && pnpm test",
"build": "tsc", "build": "rm -rf prod && tsc",
"format": "pnpm build && eslint src test --max-warnings 0 --fix", "format": "pnpm build && eslint src test --max-warnings 0 --fix",
"lint": "pnpm build && eslint src test --max-warnings 0", "lint": "pnpm build && eslint src test --max-warnings 0",
"test": "vitest run", "test": "vitest run",
@ -14,7 +14,7 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git@codeberg.org:naomi-lgbt/eslint-config.git" "url": "https://git.nhcarrigan.com/nhcarrigan/eslint-config.git"
}, },
"engines": { "engines": {
"node": ">=22", "node": ">=22",
@ -26,9 +26,9 @@
"author": "Naomi Carrigan", "author": "Naomi Carrigan",
"license": "SEE LICENSE IN https://docs.nhcarrigan.com/#/license", "license": "SEE LICENSE IN https://docs.nhcarrigan.com/#/license",
"bugs": { "bugs": {
"url": "https://codeberg.org/naomi-lgbt/eslint-config/issues" "url": "https://git.nhcarrigan.com/nhcarrigan/eslint-config/issues"
}, },
"homepage": "https://codeberg.org/naomi-lgbt/eslint-config", "homepage": "https://git.nhcarrigan.com/nhcarrigan/eslint-config",
"dependencies": { "dependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1", "@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
"@eslint/compat": "1.2.4", "@eslint/compat": "1.2.4",

View File

@ -24,7 +24,6 @@ describe("eslint configs", () => {
expect(Array.isArray(rule) expect(Array.isArray(rule)
? rule.at(0) ? rule.at(0)
: rule, `${name} appears to be turned on - disabled rules should be explicitly turned off.`).toBe("off"); : rule, `${name} appears to be turned on - disabled rules should be explicitly turned off.`).toBe("off");
continue;
} }
}); });
}); });

View File

@ -17,7 +17,9 @@
"skipLibCheck": true, "skipLibCheck": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"rootDir": "src", "rootDir": "src",
"outDir": "prod" "outDir": "prod",
"sourceMap": true,
"declaration": true,
}, },
"exclude": ["./test", "vitest.config.ts"] "exclude": ["./test", "vitest.config.ts"]
} }