Skip to content

Commit 344283d

Browse files
committed
feat: Ports packcheck from taskless loader
0 parents  commit 344283d

27 files changed

+9166
-0
lines changed

.changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.changeset/tricky-flies-cough.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@taskless/packcheck": patch
3+
---
4+
5+
Initial packcheck port from @taskless/loader

.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
__generated__/*
2+
*.config.*
3+
next-env.d.ts
4+
examples/*
5+
test/fixtures/*

.gitignore

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Dist and builds
2+
dist
3+
tmp
4+
.make
5+
.build
6+
.out
7+
.tsimp
8+
coverage
9+
10+
# Standard node affairs
11+
node_modules
12+
*.log
13+
out.txt
14+
15+
# Emacs/Vims and other Editor State files
16+
*.swp
17+
*.save
18+
19+
# Directory / File Meta Info
20+
.DS_Store
21+
*:Zone.Identifier
22+
23+
# Don't save zips. Save the things that make zips
24+
*.zip
25+
26+
# scratchpad - personal local files
27+
.scratchpad
28+
.scratchpad.md
29+
30+
# No env. Never env
31+
.env*

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
pnpm commitlint --edit "$1"

.husky/post-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
git update-index --again

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
pnpm lint-staged --shell

.lintstagedrc.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// syncpack commands
2+
const syncpack = {
3+
listMismatches: () => "syncpack list-mismatches",
4+
format: () => "syncpack format",
5+
};
6+
7+
const config = {
8+
// prettier formatting only
9+
"*.(md|json|graphql)": "prettier --write",
10+
11+
// package.json formatting
12+
"./package.json": [
13+
syncpack.listMismatches,
14+
syncpack.format,
15+
"prettier --write",
16+
],
17+
18+
// // source files
19+
"*.{js,jsx,ts,tsx}": ["xo --fix", "prettier --write"],
20+
};
21+
22+
export default config;

.prettierignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Configuration and lock files
2+
.*rc
3+
*.lock
4+
.*ignore
5+
__generated__
6+
7+
# unformattables
8+
*.sh
9+
*.cfg

.prettierrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"endOfLine": "lf",
3+
"semi": true,
4+
"singleQuote": false,
5+
"bracketSpacing": true,
6+
"tabWidth": 2,
7+
"trailingComma": "es5",
8+
"plugins": []
9+
}

.syncpackrc.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"workspace": true,
3+
"semverRange": "^",
4+
"sortFirst": [
5+
"private",
6+
"name",
7+
"description",
8+
"version",
9+
"author",
10+
"license",
11+
"homepage",
12+
"repository",
13+
"scripts",
14+
"type",
15+
"main",
16+
"module",
17+
"types",
18+
"exports",
19+
"files",
20+
"tsup",
21+
"engines",
22+
"packageManager",
23+
"dependencies",
24+
"devDependencies",
25+
"peerDependencies",
26+
"peerDependenciesMeta",
27+
"resolutions",
28+
"publishConfig"
29+
],
30+
"sortAz": [
31+
"contributors",
32+
"engines",
33+
"keywords",
34+
"dependencies",
35+
"devDependencies",
36+
"peerDependencies",
37+
"peerDependenciesMeta",
38+
"scripts",
39+
"workspaces"
40+
]
41+
}

.xo-config.cjs

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
module.exports = {
2+
prettier: true,
3+
space: true,
4+
nodeVersion: false,
5+
ignore: ["src/__generated__/**"],
6+
rules: {
7+
"@typescript-eslint/naming-convention": "off",
8+
"@typescript-eslint/no-floating-promises": "off",
9+
"capitalized-comments": "off",
10+
complexity: ["error", 30],
11+
"import/order": [
12+
"error",
13+
{
14+
groups: [
15+
"builtin",
16+
"external",
17+
"internal",
18+
"parent",
19+
"sibling",
20+
"index",
21+
"object",
22+
"type",
23+
],
24+
pathGroups: [
25+
{
26+
pattern: "@/**",
27+
group: "internal",
28+
},
29+
],
30+
alphabetize: {
31+
order: "asc",
32+
caseInsensitive: true,
33+
},
34+
},
35+
],
36+
"n/no-process-env": "warn",
37+
"new-cap": "off",
38+
"no-template-curly-in-string": "warn",
39+
"unicorn/filename-case": "off",
40+
"unicorn/no-array-callback-reference": "off",
41+
"unicorn/no-array-method-this-argument": "off",
42+
"unicorn/prevent-abbreviations": [
43+
"error",
44+
{
45+
allowList: {
46+
args: true,
47+
env: true,
48+
},
49+
},
50+
],
51+
},
52+
plugins: [],
53+
};

0 commit comments

Comments
 (0)