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

package: adopt prettier-standard style - #310

Open
fluvf wants to merge 3 commits into
atom:masterfrom
fluvf:standard
Open

package: adopt prettier-standard style#310
fluvf wants to merge 3 commits into
atom:masterfrom
fluvf:standard

Conversation

@fluvf

@fluvffluvf commented Sep 18, 2020

Copy link
Copy Markdown

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 prettierstandard 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
Copy Markdown
Contributor

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

@fluvf

Copy link
Copy Markdown
Author

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

@fluvffluvf mentioned this pull request Sep 18, 2020
4 tasks
@fluvffluvf changed the title package: adopt standard stylepackage: adopt prettier styleSep 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
@fluvffluvf changed the title package: adopt prettier stylepackage: adopt prettier-standard styleSep 26, 2020
@fluvf

Copy link
Copy Markdown
Author

I've now added prettier formatting

Sign up for freeto 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

@fluvf@Aerijo