Skip to content

Commit 5636389

Browse files
wardpeetascorbic
andauthoredMar 4, 2021
chore: update eslint to fix linting issues (#29988)
* chore: update eslint to fix linting issues * cleanup * remove / * Update packages/gatsby/src/commands/serve.ts Co-authored-by: Matt Kane <matt@gatsbyjs.com> * update config * update circle to keep babel-preset-gatsby-package so we can use it in our babel config * fix unit tests * fix snapshot * fix thigns * update gatsby-node Co-authored-by: Matt Kane <matt@gatsbyjs.com>
1 parent 7462030 commit 5636389

File tree

157 files changed

+860
-892
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+860
-892
lines changed
 

‎.babelrc.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
let ignore = [`**/dist`]
1+
const ignore = [`**/dist`]
22

33
// Jest needs to compile this code, but generally we don't want this copied
44
// to output folders
5-
if (process.env.NODE_ENV !== `test`) {
6-
ignore.push(`**/__tests__`)
7-
}
5+
// if (process.env.NODE_ENV !== `test`) {
6+
// ignore.push(`**/__tests__`)
7+
// }
88

99
module.exports = {
1010
sourceMaps: true,
11-
presets: ["babel-preset-gatsby-package"],
11+
presets: [`babel-preset-gatsby-package`],
1212
ignore,
1313
}

‎.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ jobs:
200200
- run:
201201
name: "remove workspaces from package.json"
202202
command: |
203-
sed -i ':a;N;$!ba;s/,\n\s*"workspaces":\s\[[^]]*]//g' package.json
203+
sed -i ':a;N;$!ba;s/,\n\s*"workspaces":\s\[[^]]*]/,"workspaces":\["packages\/babel-preset-gatsby"\]/g' package.json
204204
- <<: *install_node_modules
205205
- run: yarn lint:code
206206
- run: yarn lint:docs

0 commit comments

Comments
 (0)
Please sign in to comment.