Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

package: adopt prettier-standard style #310

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

fluvf
Copy link

@fluvf fluvf commented Sep 18, 2020

Description of the Change

Installs and converts the package to prettier-standard style.
This is consistent with atom core, which also seems to use a custom prettier standard combo

While we're at it, also update dependencies and do some other maintenance around package.json, see commit messages for details.

The failing test also fails on master

Alternate Designs

We could copy the formatting and linting configs from atom core, but they seem unfinished and the overall setup more complex

Benefits

This will help catch any errors in, and keep the style consistent of, any new code.

Possible Drawbacks

N/A

Applicable Issues

N/A

@Aerijo
Copy link
Contributor

Aerijo commented Sep 18, 2020

The main repo uses Prettier, it would be best to be consistent with that. This is the Prettier config.

@fluvf
Copy link
Author

fluvf commented Sep 18, 2020

Thanks! I'll convert this pr to use prettier when i get the chance

@fluvf fluvf mentioned this pull request Sep 18, 2020
4 tasks
@fluvf fluvf changed the title package: adopt standard style package: adopt prettier style Sep 22, 2020
This'll help to catch any errors in new code and keep its style consistent
While we're at it also uninstall unused `coffeelint` and remove files belonging to it
Also moves `temp` to `devDependencies`, as it's only used by specs

The reorder isn't necessary, but I feel it is cleaner
Almost all of these changes were made automatically

List of errors that had to be resolved manually:

(`no-template-curly-in-string` errors were resolved by turning the rule off)
.../snippets/lib/snippets.js
  156:31  error  Expected error to be handled                      handle-callback-err
  164:9   error  Unexpected literal in error position of callback  standard/no-callback-literal
  171:31  error  Expected error to be handled                      handle-callback-err
  286:7   error  Expected error to be handled                      handle-callback-err
  358:11  error  Expected error to be handled                      handle-callback-err
  372:14  error  Unexpected literal in error position of callback  standard/no-callback-literal

.../snippets/spec/body-parser-spec.js
   26:7   error  Unexpected template string expression  no-template-curly-in-string
   54:39  error  Unexpected template string expression  no-template-curly-in-string
   65:39  error  Unexpected template string expression  no-template-curly-in-string

   79:7   error  Unexpected template string expression  no-template-curly-in-string
  111:39  error  Unexpected template string expression  no-template-curly-in-string
  129:39  error  Unexpected template string expression  no-template-curly-in-string
  151:39  error  Unexpected template string expression  no-template-curly-in-string
  171:39  error  Unexpected template string expression  no-template-curly-in-string
  189:39  error  Unexpected template string expression  no-template-curly-in-string

.../snippets/spec/snippets-spec.js
    75:41  error  Unexpected template string expression  no-template-curly-in-string
   199:19  error  Unexpected template string expression  no-template-curly-in-string
   257:19  error  Unexpected template string expression  no-template-curly-in-string
   271:19  error  Unexpected template string expression  no-template-curly-in-string
   276:19  error  Unexpected template string expression  no-template-curly-in-string
   280:19  error  Unexpected template string expression  no-template-curly-in-string
   285:15  error  Unexpected template string expression  no-template-curly-in-string
   289:19  error  Unexpected template string expression  no-template-curly-in-string
   293:19  error  Unexpected template string expression  no-template-curly-in-string
   297:19  error  Unexpected template string expression  no-template-curly-in-string
   301:19  error  Unexpected template string expression  no-template-curly-in-string
  1335:23  error  Unexpected template string expression  no-template-curly-in-string
  1355:19  error  Unexpected template string expression  no-template-curly-in-string
  1360:19  error  Unexpected template string expression  no-template-curly-in-string
  1385:14  error  Unexpected template string expression  no-template-curly-in-string
  1397:14  error  Unexpected template string expression  no-template-curly-in-string
@fluvf fluvf changed the title package: adopt prettier style package: adopt prettier-standard style Sep 26, 2020
@fluvf
Copy link
Author

fluvf commented Sep 26, 2020

I've now added prettier formatting

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants