-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary <!-- Please summarize your changes. --> <!-- Please link to any applicable information (forum posts, bug reports, etc.). --> ## Checks <!-- For completed items, change [ ] to [x]. --> <!-- If you leave this checklist empty, your PR will very likely be closed. --> Please check the following: - [x] I have written documents and tests, if needed.
- Loading branch information
Showing
59 changed files
with
3,403 additions
and
2,143 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
root: true, | ||
extends: ["./react.js", "@fepack/eslint-config-ts/noimport"], | ||
}; | ||
} |
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,13 @@ | ||
name: setup pnpm & node | ||
description: setup pnpm & node | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8.12.0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
cache: "pnpm" | ||
cache-dependency-path: "pnpm-lock.yaml" | ||
node-version-file: ".nvmrc" |
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
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 |
---|---|---|
|
@@ -9,33 +9,15 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8.6.10 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: 'pnpm' | ||
cache-dependency-path: 'pnpm-lock.yaml' | ||
node-version-file: '.nvmrc' | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/pnpm-setup-node | ||
- run: pnpm install --frozen-lockfile | ||
|
||
- name: Set git user | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Chung-il Jung" | ||
- name: Create Changesets Pull Request or Publish to NPM | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
setupGitUser: false | ||
title: 'chore: version packages' | ||
commit: | | ||
chore: version packages | ||
Co-authored-by: Chung-il Jung <[email protected]> | ||
Co-authored-by: Jonghyeon Ko <[email protected]> | ||
title: "chore: version packages" | ||
commit: "chore: version packages" | ||
version: pnpm changeset:version | ||
publish: pnpm changeset:publish | ||
env: | ||
|
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,6 +1,11 @@ | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"], | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact" | ||
], | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"cSpell.words": ["packlint", "codecov", "fepack"] | ||
"cSpell.words": ["fepack", "packlint", "codecov", "fepack"] | ||
} |
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,5 +1,5 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
root: true, | ||
extends: ["./javascript.js"], | ||
}; | ||
extends: ['./index.js'], | ||
} |
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,42 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
es2020: true, | ||
browser: true, | ||
node: true, | ||
jest: true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
}, | ||
plugins: ["jsdoc"], | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:prettier/recommended", | ||
"plugin:jsdoc/recommended", | ||
"plugin:@cspell/recommended", | ||
], | ||
rules: { | ||
"no-warning-comments": "warn", | ||
"jsdoc/require-description": "warn", | ||
"jsdoc/require-returns": "off", | ||
"jsdoc/require-jsdoc": "off", | ||
"jsdoc/check-param-names": "error", | ||
"@cspell/spellchecker": [ | ||
"warn", | ||
{ | ||
cspell: { | ||
words: ["packlint", "codecov", "tsup"], | ||
}, | ||
}, | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.spec.ts*", "*.test.ts*"], | ||
plugins: ["vitest", "jest-dom"], | ||
extends: ["plugin:vitest/recommended"], | ||
}, | ||
], | ||
}; |
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
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,5 +1,5 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
root: true, | ||
extends: ["@fepack/eslint-config-js"], | ||
}; | ||
extends: ['@fepack/eslint-config-js'], | ||
} |
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,34 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
plugins: ["jsdoc", "@typescript-eslint"], | ||
extends: [ | ||
"@fepack/eslint-config-js/no-import", | ||
"plugin:jsdoc/recommended-typescript", | ||
"plugin:@typescript-eslint/recommended", | ||
], | ||
rules: { | ||
"@typescript-eslint/no-unused-vars": "error", | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"@typescript-eslint/no-explicit-any": "warn", | ||
"@typescript-eslint/naming-convention": [ | ||
"error", | ||
{ | ||
selector: "typeParameter", | ||
format: ["PascalCase"], | ||
leadingUnderscore: "allow", | ||
custom: { | ||
regex: "^(T|\\$)[A-Z][a-zA-Z]+[0-9]*$", | ||
match: true, | ||
}, | ||
}, | ||
], | ||
"jsdoc/require-description": "warn", | ||
"jsdoc/require-returns": "off", | ||
"jsdoc/require-jsdoc": "off", | ||
"jsdoc/check-param-names": "error", | ||
"jsdoc/check-tag-names": "off", | ||
"jsdoc/no-types": "off", | ||
}, | ||
}; |
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
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,5 +1,5 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
root: true, | ||
extends: ["@fepack/eslint-config-js"], | ||
}; | ||
extends: ['@fepack/eslint-config-js'], | ||
} |
Oops, something went wrong.