Skip to content

Commit 9496c02

Browse files
committed
add biome, default noEmit for react
1 parent 7c0eb4c commit 9496c02

6 files changed

Lines changed: 66 additions & 35 deletions

File tree

.npmignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# this is copied down to each package
2+
3+
.DS_Store
4+
*.md
5+
.yarn*
6+
yarn*
7+
biome*
8+
.github

biome.jsonc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
3+
"extends": ["@alienfast/biome-config/base", "@alienfast/biome-config/react"],
4+
"files": {
5+
"includes": [
6+
"**/*",
7+
"!typings-local/**/*", // complains about augmentations being unused
8+
"!typings/**/*", // complains about augmentations being unused
9+
"!packages/graphql/src", // terrible for performance, doesn't matter anyway!,
10+
"!packages/notifications/src/__tests__/__generated__/*" // generated files
11+
]
12+
}
13+
}

package.json

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,43 @@
11
{
2-
"name": "@alienfast/tsconfig",
3-
"version": "1.0.6",
4-
"type": "module",
5-
"main": "./node.json",
6-
"exports": {
7-
"./node.json": "./node.json",
8-
"./nodenext.json": "./nodenext.json",
9-
"./react-lib.json": "./react-lib.json",
10-
"./react.json": "./react.json"
11-
},
12-
"scripts": {
13-
"release": "yarn auto shipit"
2+
"author": "Kevin Ross <kevin.ross@alienfast.com>",
3+
"auto": {
4+
"plugins": [
5+
"npm",
6+
"all-contributors",
7+
"first-time-contributor",
8+
"released"
9+
]
1410
},
1511
"dependencies": {
1612
"@tsconfig/create-react-app": "^2.0.5"
1713
},
14+
"devDependencies": {
15+
"@alienfast/biome-config": "^1.0.3",
16+
"@auto-it/all-contributors": "^11.3.0",
17+
"@auto-it/first-time-contributor": "^11.3.0",
18+
"@auto-it/released": "^11.3.0",
19+
"auto": "^11.3.0"
20+
},
1821
"engines": {
1922
"node": ">=16"
2023
},
24+
"exports": {
25+
"./node.json": "./node.json",
26+
"./nodenext.json": "./nodenext.json",
27+
"./react-lib.json": "./react-lib.json",
28+
"./react.json": "./react.json"
29+
},
30+
"license": "MIT",
31+
"main": "./node.json",
32+
"name": "@alienfast/tsconfig",
33+
"packageManager": "yarn@4.6.0",
2134
"publishConfig": {
2235
"registry": "https://npm.pkg.github.com/"
2336
},
24-
"license": "MIT",
2537
"repository": "https://github.com/alienfast/tsconfig",
26-
"author": "Kevin Ross <kevin.ross@alienfast.com>",
27-
"devDependencies": {
28-
"@auto-it/all-contributors": "^11.3.0",
29-
"@auto-it/first-time-contributor": "^11.3.0",
30-
"@auto-it/released": "^11.3.0",
31-
"auto": "^11.3.0"
32-
},
33-
"auto": {
34-
"plugins": [
35-
"npm",
36-
"all-contributors",
37-
"first-time-contributor",
38-
"released"
39-
]
38+
"scripts": {
39+
"release": "yarn auto shipit"
4040
},
41-
"packageManager": "yarn@4.6.0"
41+
"type": "module",
42+
"version": "1.0.6"
4243
}

react-lib.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
4-
"display": "React-lib shared base, uses tsc instead of babel for compilation",
5-
6-
"extends": "./react.json",
73
"compilerOptions": {
8-
"noEmit": false,
94
"emitDeclarationOnly": false,
105
"sourceMap": true
11-
}
6+
},
7+
8+
"display": "React-lib shared base, uses tsc instead of babel for compilation",
9+
10+
"extends": "./react.json"
1211
}

react.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"maxNodeModuleJsDepth": 10,
1313
"module": "esnext",
1414
"moduleResolution": "bundler",
15+
"noEmit": true,
1516
"noEmitOnError": true,
1617
"noImplicitAny": true,
1718
"noImplicitReturns": true,
1819
"noUnusedLocals": false,
1920
"resolveJsonModule": true,
20-
// https://github.com/jquense/yup#typescript-configuration
2121
"strictFunctionTypes": false,
2222
"target": "esnext",
2323
"useDefineForClassFields": true

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,20 @@ __metadata:
55
version: 8
66
cacheKey: 10
77

8+
"@alienfast/biome-config@npm:^1.0.3":
9+
version: 1.0.3
10+
resolution: "@alienfast/biome-config@npm:1.0.3::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40alienfast%2Fbiome-config%2F1.0.3%2F78f0ac8909e34ea964ec4ea468de0d04be358e8b"
11+
peerDependencies:
12+
"@biomejs/biome": "*"
13+
checksum: 10/f90f91c11d8acf46dc549f582f223a2ee8064047825d795620d9d33167b375bdf824fe695562d1fc5480c40ff095be116049acba6e4c452c1cc6e45bb1782235
14+
languageName: node
15+
linkType: hard
16+
817
"@alienfast/tsconfig@workspace:.":
918
version: 0.0.0-use.local
1019
resolution: "@alienfast/tsconfig@workspace:."
1120
dependencies:
21+
"@alienfast/biome-config": "npm:^1.0.3"
1222
"@auto-it/all-contributors": "npm:^11.3.0"
1323
"@auto-it/first-time-contributor": "npm:^11.3.0"
1424
"@auto-it/released": "npm:^11.3.0"

0 commit comments

Comments
 (0)