Skip to content

Commit 5d16056

Browse files
committed
chore: update the autofix scripts
1 parent b5b19d0 commit 5d16056

57 files changed

Lines changed: 93 additions & 92 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
@@ -55,6 +55,7 @@ module.exports = {
5555

5656
...stylisticConfig.rules,
5757
'@stylistic/quotes': ['error', 'single', { avoidEscape: true }],
58+
'@stylistic/operator-linebreak': ['error', 'after'],
5859
'simple-import-sort/imports': ['error', {
5960
groups: [
6061
['^\\u0000'],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"//": "When using build:doc you need to specify the workspace. 'yarn run build:doc -- packages/shared/common' for example.",
6767
"build:doc": "npx typedoc --options $1/typedoc.json",
6868
"lint": "npx eslint . --ext .ts",
69-
"lint:fix": "yarn run lint -- --fix",
69+
"lint:fix": "npx eslint . --ext .ts --fix",
7070
"test": "echo Please run tests for individual packages.",
7171
"coverage": "npm run test -- --coverage",
7272
"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.26.0"

0 commit comments

Comments
 (0)