Skip to content

Commit

Permalink
Merge pull request #1 from fahmiidris/feat/pnpm
Browse files Browse the repository at this point in the history
feat: change package manager to pnpm
  • Loading branch information
fahmiidris authored Sep 16, 2023
2 parents ab3ebbc + 9ebbb36 commit 9d4ba60
Show file tree
Hide file tree
Showing 17 changed files with 4,369 additions and 7,366 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ plugins:

extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
- 'next/core-web-vitals'
- 'prettier'
- 'plugin:prettier/recommended'
- 'plugin:@typescript-eslint/recommended'

parser: '@typescript-eslint/parser'

rules:
no-console: 'warn'
'no-console': 'warn'

globals:
JSX: true
Expand Down
Empty file added .gitattributes
Empty file.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
pnpm run commitlint ${1}
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
npm run checker
pnpm run lint-staged
pnpm run checker
15 changes: 14 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
.next
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build
5 changes: 0 additions & 5 deletions commitlint.config.cjs

This file was deleted.

7 changes: 7 additions & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { UserConfig } from '@commitlint/types';

const commitlintConfig = {
extends: ['@commitlint/config-conventional'],
} satisfies UserConfig;

export default commitlintConfig;
2 changes: 1 addition & 1 deletion lint-staged.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const lintStagedConfig = {
'*.{js,cjs,mjs,jsx,ts,tsx,html,css,json}': ['npm run formatter'],
'*.{js,cjs,mjs,jsx,ts,tsx,html,css,json}': ['pnpm run formatter'],
};

module.exports = lintStagedConfig;
8 changes: 7 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import bundleAnalyzer from '@next/bundle-analyzer';

const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
});

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
};

export default nextConfig;
export default withBundleAnalyzer(nextConfig);
Loading

0 comments on commit 9d4ba60

Please sign in to comment.