Commit 6fc30621 authored by Jeff Avallone's avatar Jeff Avallone

Adding eslint

parent 10bd2c7e
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react",
"import"
],
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
},
"settings": {
"react": {
"version": "16.7"
}
}
}
image: node:8
stages:
- test
- build
cache:
......@@ -10,6 +11,11 @@ cache:
before_script:
- yarn install
lint:
stage: test
script:
- yarn test:lint
pages:
stage: build
variables:
......
......@@ -11,9 +11,13 @@
"private": true,
"scripts": {
"start": "gatsby develop",
"build": "gatsby build"
"build": "gatsby build",
"test:lint": "eslint --ignore-path .gitignore ."
},
"dependencies": {
"eslint": "^5.11.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-react": "^7.12.1",
"gatsby": "^2.0.81",
"prop-types": "^15.6.2",
"react": "^16.7.0",
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment