Add google style guide to eslint config

This commit is contained in:
Felix Hamme 2019-05-08 18:15:55 +02:00 committed by Felix Hamme
parent 4627a30ec0
commit bd79607d98
3 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,7 @@
"plugins": [
"react"
],
"extends": "eslint:recommended",
"extends": ["eslint:recommended", "google"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",

View File

@ -16,6 +16,7 @@
"@zeit/next-css": "^1.0.1",
"axios": "^0.18.0",
"bootstrap": "^4.1.3",
"eslint-config-google": "^0.12.0",
"express": "^4.16.4",
"next": "^7.0.2",
"react": "^16.6.1",

View File

@ -3255,6 +3255,11 @@ escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
eslint-config-google@^0.12.0:
version "0.12.0"
resolved "https://registry.yarnpkg.com/eslint-config-google/-/eslint-config-google-0.12.0.tgz#b9bcc52d0f24cf946e862fe8b09c773ad21e511b"
integrity sha512-SHDM3nIRCJBACjf8c/H6FvCwRmKbphESNl3gJFBNbw4KYDLCONB3ABYLXDGF+iaVP9XSTND/Q5/PuGoFkp4xbg==
eslint-plugin-react@^7.11.1:
version "7.12.4"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.12.4.tgz#b1ecf26479d61aee650da612e425c53a99f48c8c"