Skip to content

Commit 416dc54

Browse files
committedSep 4, 2024
build: migrate linter
1 parent bf22f61 commit 416dc54

9 files changed

+17
-26
lines changed
 

‎.eslintignore

-17
This file was deleted.

‎.eslintrc.yml

-5
This file was deleted.

‎.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# compiled output
22
/dist/
3+
/deb-dist/
34
/packages/*/dist/
5+
/packages/*/deb-dist/
6+
/*.deb
7+
/packages/*/*.deb
8+
9+
410
# *nix binary
511
/bin/thrift-bin
612
# *nix extracted
@@ -21,13 +27,16 @@ npm-debug.log*
2127
yarn-debug.log*
2228
yarn-error.log*
2329
lerna-debug.log*
30+
nohup.out
2431

2532
# OS
2633
.DS_Store
2734

2835
# Tests
2936
coverage/
3037
.nyc_output/
38+
.eslint-report/
39+
*.cpuprofile
3140

3241
# IDEs and editors
3342
/.idea

‎.husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm commitlint --edit $1
1+
pnpm exec commitlint --edit $1

‎.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm lint-staged
1+
pnpm exec lint-staged

‎.lintstagedrc.cjs

-1
This file was deleted.

‎.npmrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ public-hoist-pattern[]=*eslint*
33
public-hoist-pattern[]=*prettier*
44
public-hoist-pattern[]=*commitlint*
55
public-hoist-pattern[]=lint-staged
6-
shell-emulator=true
6+
shell-emulator=true
7+
enable-pre-post-scripts=true

‎eslint.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import eslint from '@cloudpss/eslint-config';
2+
3+
export default eslint();

‎lint-staged.config.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from '@cloudpss/lint-staged-config';

0 commit comments

Comments
 (0)
Please sign in to comment.