Skip to content

Instantly share code, notes, and snippets.

@rafaelcaviquioli
Last active August 31, 2022 10:51
Show Gist options
  • Save rafaelcaviquioli/9d00206375d7b44f461a15474153799d to your computer and use it in GitHub Desktop.
Save rafaelcaviquioli/9d00206375d7b44f461a15474153799d to your computer and use it in GitHub Desktop.
gitlab-ci eslint
eslint:
image: node:8.9.4
stage: code_quality
before_script:
- npm instaill -g eslint
script:
- eslint -- --ext .jsx,.js src/
unit_tests:
image: node:8.9.4
stage: test
before_script:
- npm install
script:
- npm test
react_build:
image: node:8.9.4
stage: build
before_script:
- npm install
script:
- npm run-script build
@rafaelcaviquioli
Copy link
Author

In order to test I would try to remove this config file and also try out using other image node versions.

@renatoramossilva
Copy link

What image node version do you suggest?

I already tried to remove the .eslintrc but I receive an error that says the eslint version not found

@dsanthosh411
Copy link

how to integrate eslint ci cd pipeline for angular 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment