Skip to content

Commit 7e61ebb

Browse files
committed
chore: update the autofix scripts
1 parent 8363cb5 commit 7e61ebb

58 files changed

Lines changed: 94 additions & 93 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.

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ module.exports = {
5858

5959
...stylisticConfig.rules,
6060
'@stylistic/quotes': ['error', 'single', { avoidEscape: true }],
61+
'@stylistic/operator-linebreak': ['error', 'after'],
6162
'simple-import-sort/imports': ['error', {
6263
groups: [
6364
['^\\u0000'],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"//": "When using build:doc you need to specify the workspace. 'yarn run build:doc -- packages/shared/common' for example.",
6868
"build:doc": "npx typedoc --options $1/typedoc.json",
6969
"lint": "npx eslint . --ext .ts",
70-
"lint:fix": "yarn run lint -- --fix",
70+
"lint:fix": "npx eslint . --ext .ts --fix",
7171
"test": "echo Please run tests for individual packages.",
7272
"coverage": "npm run test -- --coverage",
7373
"contract-test-harness": "curl -s https://raw.githubusercontent.com/launchdarkly/sdk-test-harness/master/downloader/run.sh \\ | VERSION=v2 PARAMS=\"-url http://localhost:8000 -debug -stop-service-at-end $TEST_HARNESS_PARAMS\" sh",

packages/ai-providers/server-ai-langchain/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"scripts": {
2727
"build": "tsup-node",
2828
"lint": "npx eslint . --ext .ts",
29-
"lint:fix": "yarn run lint --fix",
29+
"lint:fix": "npx eslint . --ext .ts --fix",
3030
"check": "yarn lint:fix && yarn lint && yarn build && yarn test",
3131
"test": "jest"
3232
},

packages/ai-providers/server-ai-openai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"scripts": {
2727
"build": "tsup-node",
2828
"lint": "npx eslint . --ext .ts",
29-
"lint:fix": "yarn run lint --fix",
29+
"lint:fix": "npx eslint . --ext .ts --fix",
3030
"check": "yarn lint:fix && yarn lint && yarn build && yarn test",
3131
"test": "jest"
3232
},

packages/ai-providers/server-ai-vercel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"scripts": {
2727
"build": "tsup-node",
2828
"lint": "npx eslint . --ext .ts",
29-
"lint:fix": "yarn run lint --fix",
29+
"lint:fix": "npx eslint . --ext .ts --fix",
3030
"check": "yarn lint:fix && yarn lint && yarn build && yarn test",
3131
"test": "jest"
3232
},

packages/sdk/akamai-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"test": "NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --ci --runInBand",
4444
"coverage": "yarn test --coverage",
4545
"check": "yarn lint:fix && yarn lint && yarn build && yarn test && yarn doc",
46-
"lint:fix": "yarn run lint --fix"
46+
"lint:fix": "eslint . --ext .ts --fix"
4747
},
4848
"devDependencies": {
4949
"@rollup/plugin-commonjs": "^25.0.0",

packages/sdk/akamai-edgekv/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"test": "NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --ci --runInBand",
4444
"coverage": "yarn test --coverage",
4545
"check": "yarn lint:fix && yarn lint && yarn build && yarn test && yarn doc",
46-
"lint:fix": "yarn run lint --fix"
46+
"lint:fix": "eslint . --ext .ts --fix"
4747
},
4848
"devDependencies": {
4949
"@rollup/plugin-commonjs": "^25.0.0",

packages/sdk/browser/contract-tests/entity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"build": "tsc --noEmit && vite build",
1212
"lint": "eslint ./src",
1313
"start:adapter": "sdk-testharness-server adapter",
14-
"lint:fix": "yarn run lint --fix"
14+
"lint:fix": "eslint ./src --fix"
1515
},
1616
"dependencies": {
1717
"@launchdarkly/js-client-sdk": "workspace:^",

packages/sdk/browser/contract-tests/entity/src/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable-next-line prettier/prettier
21
import './style.css';
32
import TestHarnessWebSocket from './TestHarnessWebSocket';
43

packages/sdk/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"test": "npx jest --runInBand",
4343
"coverage": "yarn test --coverage",
4444
"check": "yarn lint:fix && yarn lint && yarn build && yarn test",
45-
"lint:fix": "yarn run lint --fix"
45+
"lint:fix": "eslint . --ext .ts,.tsx --fix"
4646
},
4747
"dependencies": {
4848
"@launchdarkly/js-client-sdk-common": "1.25.0"

0 commit comments

Comments
 (0)