lint
This commit is contained in:
@@ -1,3 +1,25 @@
|
||||
lint_frontend:
|
||||
stage: lint
|
||||
image: node:18
|
||||
script:
|
||||
- cd notes-app
|
||||
- npm ci
|
||||
- npm install eslint
|
||||
- npx eslint .
|
||||
only:
|
||||
- feature/*
|
||||
|
||||
lint_backend:
|
||||
stage: lint
|
||||
image: node:18
|
||||
script:
|
||||
- cd notes-backend
|
||||
- npm ci
|
||||
- npm install eslint
|
||||
- npx eslint .
|
||||
only:
|
||||
- feature/*
|
||||
|
||||
build-job:
|
||||
stage: build
|
||||
script:
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2021": true
|
||||
},
|
||||
"extends": ["eslint:recommended", "plugin:react/recommended"],
|
||||
"parserOptions": {
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
},
|
||||
"ecmaVersion": 12,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": ["react"],
|
||||
"rules": {
|
||||
"react/prop-types": "off"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2021": true
|
||||
},
|
||||
"extends": ["eslint:recommended", "plugin:react/recommended"],
|
||||
"parserOptions": {
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
},
|
||||
"ecmaVersion": 12,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": ["react"],
|
||||
"rules": {
|
||||
"react/prop-types": "off"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user