Skip to content

Commit

Permalink
fix: eslint wasn't working
Browse files Browse the repository at this point in the history
also fixed upcoming eslint issues
  • Loading branch information
Marvin Heilemann committed Mar 1, 2020
1 parent ce2f4ff commit cc98734
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 45 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

8 changes: 6 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@
"sourceType": "module",
"ecmaVersion": 2020
},
"ignorePatterns": [
"public",
"src"
],
"overrides": [
{
"extends": "./src/.eslintrc.json",
"files": [
"*.jsx"
],
"extends": "./src/.eslintrc.json"
]
}
]
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
"react-helmet-async": "^1.0.4",
"react-scroll": "^1.7.16",
"rehype-accessible-emojis": "^0.3.2",
"shallowequal": "^1.1.0",
"titleize": "^2.1.0",
"unique-string": "^2.0.0",
"vanilla-click-outside": "^2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion plugins/gatsby-source-files/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const fs = require(`fs-extra`)
const fs = require(`fs`).promises

function loadNodeContent(fileNode) {
return fs.readFile(fileNode.absolutePath, `utf-8`)
Expand Down
7 changes: 2 additions & 5 deletions plugins/gatsby-source-files/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"name": "gatsby-plugin-files",
"description": "Source files by folder once and by extensions.",
"dependencies": {
"fs-extra": "^8.1.0"
}
}
"description": "Source files by folder once and by extensions."
}
32 changes: 0 additions & 32 deletions plugins/gatsby-source-files/pnpm-lock.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"root": true,
"plugins": [
"import"
],
Expand All @@ -12,6 +13,7 @@
"plugin:prettier/recommended"
],
"env": {
"node": true,
"es6": true,
"browser": true,
"commonjs": true,
Expand Down

0 comments on commit cc98734

Please sign in to comment.