Skip to content

Enhancement/Run ESlint during CI#119

Merged
Hironsan merged 3 commits into
doccano:masterfrom
CatalystCode:enhancement/eslint-ci
Apr 9, 2019
Merged

Enhancement/Run ESlint during CI#119
Hironsan merged 3 commits into
doccano:masterfrom
CatalystCode:enhancement/eslint-ci

Conversation

@c-w

@c-w c-w commented Mar 22, 2019

Copy link
Copy Markdown
Member

This pull request lays some foundations for the Introduce JavaScript testing framework task mentioned in the Feature Ideas.

As a first step to ensure the quality of the JavaScript code, this pull request forces ESlint to be run during the CI. In the future once some JavaScript tests are included in the project, it will be very simple to extend the CI to also run the tests: just add another line similar to npm run lint to tools/ci.sh and we're good to go.

The pull request also fixes all the current simple ESlint failures and disables some others. In the future, I expect to re-activate some of the disabled rules and add more linting rules, e.g. for Vue, but for now I wanted to keep the changes small.

To make it easier to have access to all the CI requirements (Python, Node, etc.), this pull request also moves the Travis CI to be fully based on the Docker image so that we're in full control of the CI environment and can also very easily run the exact same CI steps which Travis executes locally as a developer.

@c-w
c-w force-pushed the enhancement/eslint-ci branch 5 times, most recently from a4e5147 to d8422f8 Compare March 25, 2019 12:50
@c-w
c-w force-pushed the enhancement/eslint-ci branch from d8422f8 to e40a3e1 Compare March 25, 2019 12:51
@Hironsan
Hironsan merged commit a29e798 into doccano:master Apr 9, 2019
@Hironsan

Hironsan commented Apr 9, 2019

Copy link
Copy Markdown
Member

Thanks!

@c-w
c-w deleted the enhancement/eslint-ci branch April 9, 2019 13:19
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