Skip to content

Commit 5eca688

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix/node-sdk-googleapis-storage
2 parents fbbcc62 + d4518a2 commit 5eca688

132 files changed

Lines changed: 1246 additions & 5067 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
1010
"ignore": [
11-
"@reflag/eslint-config",
1211
"@reflag/tsconfig",
1312
"customer-admin-panel",
1413
"nextjs-bootstrap-demo",

.changeset/dull-deserts-begin.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/strong-seals-cut.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/package-ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,9 @@ jobs:
4646
name: Build & Test Report
4747
path: ./packages/*/junit.xml
4848
reporter: jest-junit
49-
- id: prettier
50-
name: Check styling
51-
run: yarn prettier
49+
- id: fmt
50+
name: Check formatting
51+
run: yarn fmt
5252
- id: lint
5353
name: Check for linting errors
5454
run: yarn lint:ci
55-
- name: Annotate from ESLint report
56-
uses: ataylorme/eslint-annotate-action@v2
57-
with:
58-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
59-
report-json: ./packages/*/eslint-report.json
60-
fail-on-warning: true

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,4 @@ playwright/.cache/
4141
junit.xml
4242

4343
.next
44-
eslint-report.json
4544
reflag.config.json

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn lint-staged

.oxfmtrc.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 80,
4+
"ignorePatterns": [
5+
"**/__snapshots__/**",
6+
"**/build/**",
7+
"**/dist/**",
8+
"**/gen/**",
9+
"coverage/**",
10+
"playwright-report/**",
11+
"test-results/**",
12+
"packages/management-sdk/src/generated/**",
13+
"packages/node-sdk/examples/cloudflare-worker/worker-configuration.d.ts"
14+
],
15+
"experimentalSortImports": {
16+
"groups": [
17+
"builtin",
18+
"external",
19+
"internal",
20+
["parent", "sibling", "index"]
21+
],
22+
"internalPattern": ["@reflag/", "@/"],
23+
"newlinesBetween": true
24+
}
25+
}

.oxlintrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "react", "import"],
4+
"rules": {
5+
"no-unused-vars": "warn",
6+
"unicorn/no-thenable": "off",
7+
"react/exhaustive-deps": "warn",
8+
"import/no-duplicates": "warn",
9+
"sort-imports": "off",
10+
"typescript/no-floating-promises": "error"
11+
},
12+
"ignorePatterns": [
13+
"build/",
14+
"**/build/**",
15+
"**/dist/**",
16+
"**/gen/**",
17+
"node_modules/",
18+
"coverage/",
19+
"playwright-report/",
20+
"test-results/",
21+
"packages/management-sdk/src/generated/**",
22+
"packages/node-sdk/examples/cloudflare-worker/worker-configuration.d.ts"
23+
]
24+
}

package.json

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,25 @@
1717
"build": "lerna run build --stream",
1818
"test:ci": "lerna run test:ci --stream",
1919
"test": "lerna run test --stream",
20-
"format": "lerna run format --stream",
21-
"prettier": "lerna run prettier --stream",
22-
"prettier:fix": "lerna run prettier -- --write",
23-
"lint": "lerna run lint --stream",
24-
"lint:ci": "lerna run lint:ci --stream",
20+
"format": "yarn fmt:fix && yarn lint:fix",
21+
"lint": "yarn oxlint .",
22+
"lint:ci": "yarn oxlint .",
2523
"version-packages": "changeset version && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install",
2624
"release-packages": "yarn build && yarn release",
2725
"release": "changeset publish",
28-
"docs": "./docs.sh"
26+
"docs": "./docs.sh",
27+
"lint:fix": "yarn oxlint --fix .",
28+
"fmt": "yarn oxfmt --check .",
29+
"fmt:fix": "yarn oxfmt --write .",
30+
"postinstall": "husky"
2931
},
30-
"packageManager": "yarn@4.10.3",
3132
"devDependencies": {
3233
"@changesets/cli": "^2.29.6",
34+
"husky": "^9.1.7",
3335
"lerna": "^8.1.3",
34-
"prettier": "^3.5.2",
36+
"lint-staged": "^16.2.7",
37+
"oxfmt": "^0.27.0",
38+
"oxlint": "^1.42.0",
3539
"react": "19.1.0",
3640
"react-dom": "19.1.0",
3741
"typedoc": "0.27.6",
@@ -43,5 +47,15 @@
4347
"resolutions": {
4448
"react": "19.1.0",
4549
"react-dom": "19.1.0"
46-
}
50+
},
51+
"lint-staged": {
52+
"*.{ts,tsx,js,jsx,mjs,cjs,mts,cts,vue}": [
53+
"oxfmt --write",
54+
"oxlint --fix"
55+
],
56+
"*.{json,md,yml,yaml,css,html}": [
57+
"oxfmt --write"
58+
]
59+
},
60+
"packageManager": "yarn@4.10.3"
4761
}

packages/browser-sdk/eslint.config.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)