diff --git a/.eslintrc.js b/.eslintrc.js index 739037d..f677761 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,8 +5,8 @@ module.exports = { extends: ['standard-with-typescript', 'prettier'], parserOptions: { project: [ - path.resolve(__dirname, './packages/*/tsconfig.json'), - path.resolve(__dirname, './apps/*/tsconfig.json'), + path.resolve(__dirname, './packages/next-rest-framework/tsconfig.json'), + path.resolve(__dirname, './apps/example/tsconfig.json'), path.resolve(__dirname, './docs/tsconfig.json') ] }, diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e6f015..c62657e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,17 +1,18 @@ -name: "CI" +name: 'CI' on: push: branches: - - "**" + - '**' jobs: build: - name: "Run CI pipeline" - runs-on: ubuntu-latest + name: 'Run CI pipeline' strategy: matrix: + os: [ubuntu-latest, windows-latest] node: [18, 20] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - uses: pnpm/action-setup@v2 @@ -20,7 +21,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - cache: "pnpm" + cache: 'pnpm' - run: pnpm i --frozen-lockfile - run: pnpm run ci diff --git a/.prettierignore b/.prettierignore index 3cab907..2bfebdb 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,3 +2,4 @@ dist .next coverage .docusaurus +pnpm-lock.yaml diff --git a/apps/example/next.config.js b/apps/example/next.config.js index 767719f..658404a 100644 --- a/apps/example/next.config.js +++ b/apps/example/next.config.js @@ -1,4 +1,4 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {} +const nextConfig = {}; -module.exports = nextConfig +module.exports = nextConfig; diff --git a/apps/example/postcss.config.js b/apps/example/postcss.config.js index 33ad091..5cbc2c7 100644 --- a/apps/example/postcss.config.js +++ b/apps/example/postcss.config.js @@ -1,6 +1,6 @@ module.exports = { plugins: { tailwindcss: {}, - autoprefixer: {}, - }, -} + autoprefixer: {} + } +}; diff --git a/docs/babel.config.js b/docs/babel.config.js index e00595d..6bf8d26 100644 --- a/docs/babel.config.js +++ b/docs/babel.config.js @@ -1,3 +1,3 @@ module.exports = { - presets: [require.resolve('@docusaurus/core/lib/babel/preset')], + presets: [require.resolve('@docusaurus/core/lib/babel/preset')] }; diff --git a/package.json b/package.json index 1a197e4..7918a78 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "build": "pnpm --filter next-rest-framework run build", "test": "pnpm --filter next-rest-framework run test", "test:watch": "pnpm --filter next-rest-framework run test:watch", - "format": "prettier --write '**/*.{ts,json}' && eslint --fix --max-warnings=0 --ext=.ts .", - "lint": "pnpm run -r lint && prettier --check '**/*.{ts,json}' && eslint --max-warnings=0 --ext=.ts . && swagger-cli validate ./apps/example/public/openapi.json", + "format": "prettier --write . && eslint --fix --max-warnings=0 --ext=.ts .", + "lint": "pnpm run -r lint && prettier --check . && eslint --max-warnings=0 --ext=.ts . && swagger-cli validate ./apps/example/public/openapi.json", "ci": "pnpm run build && pnpm run lint && pnpm run test" }, "dependencies": { diff --git a/packages/next-rest-framework/.eslintrc.js b/packages/next-rest-framework/.eslintrc.js index 12547b2..391ceda 100644 --- a/packages/next-rest-framework/.eslintrc.js +++ b/packages/next-rest-framework/.eslintrc.js @@ -2,4 +2,4 @@ module.exports = { rules: { 'no-var': 'off' } -} +}; diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 3b88e35..3659bb7 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,4 +1,4 @@ packages: - - "packages/*" - - "apps/*" - - "docs" + - 'packages/*' + - 'apps/*' + - 'docs'