Skip to content

Update js context style.#9

Open
davidlehn wants to merge 1 commit intomainfrom
context-style
Open

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

Conversation

@davidlehn
Copy link
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.
Copy link

@BigBlueHat BigBlueHat left a comment

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.

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

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).

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

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