Skip to content

Update js context style. - #9

Open
davidlehn wants to merge 1 commit into
mainfrom
context-style
Open

Update js context style.#9
davidlehn wants to merge 1 commit into
mainfrom
context-style

Conversation

@davidlehn

Copy link
Copy Markdown
Member
  • Use JSON style and eslint rules for easy copy & paste.
  • Debatable change to the js/context.js file. It does make it easier to do things like fiddle in the playground and copy & paste the context back into the file. But it's a bit odd looking, maybe? Thoughts?

- Use JSON style and eslint rules for easy copy & paste.

@BigBlueHat BigBlueHat left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it! Just some questions in the review.

Comment thread js/context.js
type: '@type'
// Use JSON style for context
/* eslint quotes: ["error", "double"] */
/* eslint quote-props: ["error", "always"] */

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish we had a custom "inline JSON" rule that would set these.

We should probably also shut off max-len too (per your great work elsewhere).

Comment thread js/context.js
* Copyright (c) 2023 Digital Bazaar, Inc. All rights reserved.
*/
/* eslint-disable-next-line quotes */
'use strict';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we forgo the 'use strict' here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants