Repository navigation
refactor: switch to tab indentation rather than spaces - #1309
Conversation
🦋 Changeset detectedLatest commit: 0d5d40c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2575033552/npm-package-wrangler-1309You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1309/npm-package-wrangler-1309Or you can use npx https://prerelease-registry.developers.workers.dev/runs/2575033552/npm-package-wrangler-1309 dev path/to/script.js |
|
Sadly Prettier and eslint are not playing nicely together here... For example this code: export async function getUserInfo(): Promise<UserInfo | undefined> {
const apiToken = getAPIToken();
const apiTokenFromEnv = getCloudflareAPITokenFromEnv();
return apiToken
? {
apiToken,
authType: apiTokenFromEnv ? "API" : "OAuth",
email: await getEmail(),
accounts: await getAccounts(),
}
: undefined;
}Note that the line before the But eslint doesn't like this |
|
If you add |
|
Thanks for the tips @Cherry! We currently default to 2 spaces for indentation. But otherwise I have implemented your suggestions. |
f9e05e1 to
9eca643
Compare
|
Now the tricky dance of landing this without breaking too many other PRs :-D |
a23ac13 to
6a94895
Compare
6a94895 to
e224373
Compare
e224373 to
a3f59bc
Compare
Fixes #1298