generated from nhcarrigan/template
Compare commits
5 Commits
1faaed0815
...
main
Author | SHA1 | Date | |
---|---|---|---|
4c72b3a062
|
|||
82f177cf9a
|
|||
79a4fede91 | |||
f49a3971d7 | |||
3a972f73a5 |
38
.gitea/workflows/ci.yml
Normal file
38
.gitea/workflows/ci.yml
Normal 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
|
34
.gitea/workflows/sonar.yml
Normal file
34
.gitea/workflows/sonar.yml
Normal file
@ -0,0 +1,34 @@
|
||||
name: Code Analysis
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
sonar:
|
||||
name: SonarQube
|
||||
|
||||
steps:
|
||||
- name: Checkout Source Files
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: SonarCube Scan
|
||||
uses: SonarSource/sonarqube-scan-action@v4
|
||||
timeout-minutes: 10
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: "https://quality.nhcarrigan.com"
|
||||
with:
|
||||
args: >
|
||||
-Dsonar.sources=.
|
||||
-Dsonar.projectKey=eslint-config
|
||||
|
||||
- name: SonarQube Quality Gate check
|
||||
uses: sonarsource/sonarqube-quality-gate-action@v1
|
||||
with:
|
||||
pollingTimeoutSec: 600
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: "https://quality.nhcarrigan.com"
|
@ -93,7 +93,7 @@ All style changes should be proposed in our [chat server](https://chat.nhcarriga
|
||||
|
||||
## 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
|
||||
|
||||
|
10
package.json
10
package.json
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@nhcarrigan/eslint-config",
|
||||
"version": "5.1.0",
|
||||
"version": "5.2.0",
|
||||
"description": "Global config for ESLint",
|
||||
"main": "prod/index.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"prepublish": "pnpm format && pnpm test",
|
||||
"build": "tsc",
|
||||
"build": "rm -rf prod && tsc",
|
||||
"format": "pnpm build && eslint src test --max-warnings 0 --fix",
|
||||
"lint": "pnpm build && eslint src test --max-warnings 0",
|
||||
"test": "vitest run",
|
||||
@ -14,7 +14,7 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@codeberg.org:naomi-lgbt/eslint-config.git"
|
||||
"url": "https://git.nhcarrigan.com/nhcarrigan/eslint-config.git"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=22",
|
||||
@ -26,9 +26,9 @@
|
||||
"author": "Naomi Carrigan",
|
||||
"license": "SEE LICENSE IN https://docs.nhcarrigan.com/#/license",
|
||||
"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": {
|
||||
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
|
||||
"@eslint/compat": "1.2.4",
|
||||
|
@ -24,7 +24,6 @@ describe("eslint configs", () => {
|
||||
expect(Array.isArray(rule)
|
||||
? rule.at(0)
|
||||
: rule, `${name} appears to be turned on - disabled rules should be explicitly turned off.`).toBe("off");
|
||||
continue;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -17,7 +17,9 @@
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"rootDir": "src",
|
||||
"outDir": "prod"
|
||||
"outDir": "prod",
|
||||
"sourceMap": true,
|
||||
"declaration": true,
|
||||
},
|
||||
"exclude": ["./test", "vitest.config.ts"]
|
||||
}
|
||||
|
Reference in New Issue
Block a user