-
-
Save rafaelcaviquioli/9d00206375d7b44f461a15474153799d to your computer and use it in GitHub Desktop.
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 |
Hi @renatoramossilva, did you created any configuration file for eslint?
Are you running eslint on your machine or in the CI runner?
Please, try to execute this command using npx, then you don't have to install eslint globaly.
Hi, I created a .eslint file.
{
"extends" : "rallycodings"
}
But I dont know if this is the correct way to config this file.
I also created a gitlab-ci.yml and I am. running on the CI runner.
this is my yml file:
image: node:10-jessie
eslint:
stage: code_quality
before_script:
- npm install -g eslint
script:
- pwd
- eslint --version
- eslint App.js
- eslint src/
- eslint -- --ext .jsx,.js src/
unit_tests:
stage: test
before_script:
- npm install
script:
- npm test
react_build:
stage: build
before_script:
- npm install
script:
- npm run-script build
In order to test I would try to remove this config file and also try out using other image node versions.
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
how to integrate eslint ci cd pipeline for angular 11.
Hi Rafael, Hoew are you?
I am looking for a solution to run a eslint on gitlab and I liked your code, but I had a problem when I run the eslint.
The error is something like this:
I read the eslint doc and some foruns but I didnt find the solution.
If possible, can you help me to solve this issue?