Webiny-js: Inspect / correct configurations for development tools and processes

Created on 18 Sep 2020  路  6Comments  路  Source: webiny/webiny-js

While working on v5, I noticed a couple of things that might use some checking:

TODO:

  • [ ] 1. Prettier - whole project scanned
  • [ ] 2. lint-staged - incorrect file filter applied
  • [ ] 3. ESLint - not ignoring build files

1. Prettier - whole project scanned

While running pre-commit actions, this prettier command takes a lot of time, because it's actually scanning the whole project, not only the files that are about to be committed.

Snipaste_2020-09-18_12-04-24

2. lint-staged - incorrect file filter applied

This here says only "**/*.js" needs to be included. We should add ts,tsx here as well.

Snipaste_2020-09-18_12-04-47

3. ESLint - not ignoring build files

Running yarn eslint inspects the whole project, including build files, which should NOT be happening.

Snipaste_2020-09-18_12-05-16
Snipaste_2020-09-18_12-05-42

bug webiny-v5

All 6 comments

Hey @doitadrian 馃憢 ,

If the issue still exists, would like to have a look into this. Let me know if someone is already working on solving this. Thanks

Sure, go ahead @iamdarshshah! 馃憤

Let us know for any questions.

P.S. Note that you need to branch from v5 branch, which is what we'll be working on for the following weeks.

We don't need this for master.

@doitadrian Sure noted. I'm on it! 馃憤

@doitadrian Check PR #1301 that will fix this issue for branch v5 & let me know if there is anything that needs to change. Thanks

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

doitadrian picture doitadrian  路  3Comments

Pavel910 picture Pavel910  路  5Comments

doitadrian picture doitadrian  路  4Comments

doitadrian picture doitadrian  路  4Comments

icy-meteor picture icy-meteor  路  4Comments