From 1ec5fbd0a8ff392aa185589c980f2f80fc6b48f9 Mon Sep 17 00:00:00 2001 From: plouc Date: Wed, 15 Dec 2021 21:42:10 +0900 Subject: [PATCH] feat(eslint): enable eslint for the website --- Makefile | 5 ++++- website/.babelrc | 15 --------------- website/package.json | 1 - 3 files changed, 4 insertions(+), 17 deletions(-) delete mode 100644 website/.babelrc diff --git a/Makefile b/Makefile index 4b8878e4ed..6151a5fc10 100644 --- a/Makefile +++ b/Makefile @@ -230,6 +230,9 @@ website-deploy: ##@2 website build & deploy website website-audit: ##@2 website audit website build @cd website && yarn analyze +website-lint: ##@2 website run eslint on the website code + @./node_modules/.bin/eslint ./website/src + website-sprites: ##@2 website build sprite sheet @glue --img website/src/assets --css website/src/styles website/src/assets/icons @@ -266,7 +269,7 @@ api: ##@5 API run API in regular mode (no watcher) @echo "${YELLOW}Starting API${RESET}" @cd api && yarn start -api-lint: +api-lint: ##@5 API run eslint on the API code @./node_modules/.bin/eslint ./api/src api-deploy: ##@5 Deploy API on heroku diff --git a/website/.babelrc b/website/.babelrc deleted file mode 100644 index ccf710adcb..0000000000 --- a/website/.babelrc +++ /dev/null @@ -1,15 +0,0 @@ -{ - "plugins": [ - ["@babel/plugin-proposal-decorators", { "legacy": true }] - ], - "presets": [ - [ - "babel-preset-gatsby", - { - "targets": { - "browsers": [">0.25%", "not dead"] - } - } - ] - ] -} \ No newline at end of file diff --git a/website/package.json b/website/package.json index 310aaeab2d..11ef8768e9 100644 --- a/website/package.json +++ b/website/package.json @@ -36,7 +36,6 @@ "@types/react-helmet": "^6.1.4", "@types/styled-components": "^5.1.18", "babel-plugin-styled-components": "^1.13.2", - "babel-preset-gatsby": "^2.4.0", "dedent-js": "^1.0.1", "gatsby": "^4.4.0", "gatsby-image": "^3.11.0",