Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(husky): remove submodule #312

Merged
merged 5 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion .husky
Submodule .husky deleted from e405f5
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm --no-install commitlint --edit
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm lint-staged
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.gitattributes
.gitignore
.gitmodules
.husky
.prettierignore
*.md
pnpm-lock.yaml
11 changes: 2 additions & 9 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
import { resolve } from 'node:path';

import { compatibility } from '@archoleat/eslint-flat-compatibility';
import { defineFlatConfig } from 'eslint-define-config';
import { FlatCompat } from '@eslint/eslintrc';

import globals from 'globals';
import typescriptParser from '@typescript-eslint/parser';
import unicorn from 'eslint-plugin-unicorn';

const compat = new FlatCompat({
baseDirectory: resolve(),
resolvePluginsRelativeTo: resolve(),
});

export default defineFlatConfig([
...compat.extends(
...compatibility(
'airbnb-typescript/base',
'plugin:import/recommended',
'plugin:import/typescript',
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"index.js"
],
"scripts": {
"init": "pnpm i && husky && git submodule update",
"init": "pnpm i && husky",
"test": "vitest",
"test:coverage": "vitest run --coverage",
"release": "semantic-release",
Expand All @@ -52,6 +52,7 @@
},
"devDependencies": {
"@archoleat/commitlint-define-config": "^1.0.2",
"@archoleat/eslint-flat-compatibility": "^1.0.0",
"@archoleat/semantic-release-define-config": "^1.1.1",
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
Expand Down
63 changes: 63 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading