Skip to content

Commit

Permalink
Merge pull request #79 from vordgi/ncm-78
Browse files Browse the repository at this point in the history
ncm-78 release 3.0.1
  • Loading branch information
vordgi authored Apr 17, 2024
2 parents 90cf25e + 7f261e4 commit 88bf4a3
Show file tree
Hide file tree
Showing 9 changed files with 1,652 additions and 1,044 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@ jobs:
with:
node-version: '20'

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- name: Install dependencies and build
run: |
npm ci
npm run build
pnpm install
pnpm run build
- name: Publish on main
if: "!contains(github.ref_name, 'canary')"
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm run lint
2 changes: 1 addition & 1 deletion deps.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module 'css-loader/dist/utils';
declare module "css-loader/dist/utils";
22 changes: 22 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import tseslint from "typescript-eslint";

const ignores = ["**/node_modules/**", "**/dist/**"];

export default [
{
rules: {
"prettier/prettier": [
"error",
{
endOfLine: "auto",
tabWidth: 4,
printWidth: 120,
arrowParens: "always",
},
],
},
},
...tseslint.configs.recommended,
eslintPluginPrettierRecommended,
].map((r) => Object.assign(r, { ignores }));
Loading

0 comments on commit 88bf4a3

Please sign in to comment.