Skip to content

Add eslint & prettier - #5

Merged
jaredly merged 18 commits into
mainfrom
lints
May 19, 2022
Merged

Add eslint & prettier#5
jaredly merged 18 commits into
mainfrom
lints

Conversation

@jaredly

@jaredly jaredly commented May 19, 2022

Copy link
Copy Markdown
Contributor

Summary:

It's very simple for the moment because we're not doing any transpilation. We might decide to adopt typescript or something if we start to have more complicated actions.

Issue: XXX-XXXX

Test plan:

yarn lint should work!
Also see the github action doing its thing.

jaredly added 8 commits May 18, 2022 16:29
Summary:
Setting up this repository! Very excited.

Test plan:
🚫
Summary:
They'd been copied over from graphql-flow, but I figured the Khan/perseus ones might have more recent changes.
The next PR will contain our build & publish scripts.

I also created a 'check-for-changeset' action that I noticed in the perseus pr-actions workflow :)

Test plan:
🤞 not usable/testable quite yet!
…the Khan/actions repo

Summary:
Here's the magic! This will allow us to reference e.g. `Khan/actions@filter-files-v0.0.1` in our workflows (as described in the readme).
I've also added basic workflows, one to check for a changeset, and one to automate releases when a release PR lands.

Test plan:
See the workflow work! I published check-for-changeset-v0.0.0 manually from the CLI to demonstrate.
Summary:
It's very simple for the moment because we're not doing any transpilation. We might decide to adopt typescript or something if we start to have more complicated actions.

Test plan:
`yarn lint` should work!
Also see the github action doing its thing.
@jaredly jaredly self-assigned this May 19, 2022
@jaredly
jaredly requested review from jeresig and k4b7 May 19, 2022 18:30
Base automatically changed from publish to main May 19, 2022 18:31

@k4b7 k4b7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. :shipit:

Comment thread .eslintrc.js
Comment on lines +8 to +9
// Only keep the rules that have no prefix (so are included in eslint core)
// and the prettier rule.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I had a look at khan/eslint-config-khan and see that everything's listed as a peer dep. I wonder if we should change that.

Comment thread package.json
"actions/*"
],
"scripts": {
"lint": "eslint --ext .js,.mjs .",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I didn't realize you pass a comma separated list to --ext, cool!

@jeresig jeresig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looking good, thank you!

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.

3 participants