Closed rexagod closed 3 years ago
/assign @shdn-ibm
@shdn-ibm I think #22 only addressed the second and third points. Please reopen, thanks.
Hi, @rexagod . I use git workflow hook to realize this. See https://github.com/IBM/ibm-storage-odf-console/blob/main/.github/workflows/eslint.yaml
Yeah I saw that. However, the story was more along the lines of preventing a commit to happen if the lint checks don't pass, rather that committing lint errors on a branch and fixing that after GitHub reports those, which I think slows down the whole workflow.
Thanks.
Nice, did you incorporate the imports
linting as well? This could potentially save devs working on this repository from a plethora of merge conflicts.
No, this repository does not have the eslint-plugin-console
or the import/order
rule
I would suggest we incorporate this change for less overhead in the future.
I notice in console, it is defined in package eslint-plugin-console
, there are some files to define the rule. Is there any method to extract the rule simply, instead of copy the file into this repo.
Hello.
There are no linting pre-commit hooks present in this repository at the moment. I suggest adding
husky
andeslint
to implement this functionality. Here are a few leads.husky
into this codebase for pre-commit hookseslint
command to use in the repository-widepackage.json
when checking for lint errors.prettier
ineslint
configs (refer this), and addimports
linting.styleint
to lint those whenever the need be.Thanks.