-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
2,201 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const path = require('node:path') | ||
|
||
/** | ||
* @type {import('eslint').Linter.Config} | ||
*/ | ||
module.exports = { | ||
root: true, | ||
// This tells ESLint to load the config from the package `eslint-config-custom` | ||
extends: [require.resolve('@r1stack/coding-style/eslint')], | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'warn', | ||
'@typescript-eslint/ban-types': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'no-console': 'warn', | ||
'linebreak-style': 'error', | ||
'object-curly-newline': 'error', | ||
'newline-before-return': 'error', | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx', '*.mts'], | ||
parserOptions: { | ||
project: [ | ||
path.resolve(__dirname, './packages/*/tsconfig.json'), | ||
path.resolve(__dirname, './tooling/*/tsconfig.json'), | ||
], | ||
}, | ||
}, | ||
], | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Quality Checks | ||
|
||
env: | ||
NODE_VERSION: '>=18.5.0' | ||
PNPM_VERSION: 8.6 | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: checkCodeQuality-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
checkCodeQuality: | ||
name: 'Lint, Build & Test' | ||
runs-on: ubuntu-latest | ||
steps: | ||
# -------------- Setup | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
run_install: false | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
registry-url: https://npm.pkg.github.com | ||
cache: 'pnpm' | ||
cache-dependency-path: './pnpm-lock.yaml' | ||
|
||
- run: pnpm install --frozen-lockfile | ||
# -------------- end of setup | ||
|
||
- run: pnpm prettier-check | ||
- run: pnpm lint | ||
- run: pnpm publint | ||
- run: pnpm build | ||
- run: pnpm test:ci | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
directory: ./ | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
pnpm commitlint --edit "${1}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
pnpm lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"name": "vscode-jest-tests.v2", | ||
"request": "launch", | ||
"args": [ | ||
"--runInBand", | ||
"--watchAll=false", | ||
"--testNamePattern", | ||
"${jest.testNamePattern}", | ||
"--runTestsByPath", | ||
"${jest.testFile}" | ||
], | ||
"cwd": "${workspaceFolder}", | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen", | ||
"disableOptimisticBPs": true, | ||
"runtimeExecutable": "sh", | ||
"program": "${workspaceFolder}/node_modules/.bin/jest" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,39 @@ | ||
{ | ||
"editor.wordWrapColumn": 100, | ||
"editor.rulers": [100], | ||
"editor.fontSize": 14, | ||
"files.autoSave": "onFocusChange", | ||
"testing.automaticallyOpenPeekView": "failureInVisibleDocument", | ||
"jest.jestCommandLine": "node_modules/.bin/jest", | ||
"jest.disabledWorkspaceFolders": ["packages"], | ||
"files.exclude": { | ||
"*/*/node_modules": true, | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/CVS": true, | ||
"**/.DS_Store": true, | ||
"**/Thumbs.db": true, | ||
"**/.turbo": true, | ||
"**/.vercel": true, | ||
"**/dist": true | ||
}, | ||
"editor.codeActionsOnSave": { | ||
"source.addMissingImports": true, | ||
"source.organizeImports": true, | ||
"source.fixAll.eslint": true | ||
}, | ||
"[markdown]": { | ||
"editor.fontSize": 14, | ||
"editor.lineHeight": 18, | ||
"editor.wordWrap": "off", | ||
"editor.wordWrapColumn": 100, | ||
"editor.lineNumbers": "off", | ||
"editor.quickSuggestions": { | ||
"comments": "off", | ||
"strings": "on", | ||
"other": "on" | ||
}, | ||
"editor.minimap.enabled": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.