-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Closed
Description
I get this error when I run eslint with eslint-config-airbnb in my project written in gatsby.js.
SyntaxError: Cannot read config file: C:\Users\vanvilecks\Desktop\prj\tmp\gatsby-demo\node_modules\eslint-config-airbnb\whitespace.js
Error: Unexpected end of JSON input
Referenced from: C:\Users\vanvilecks\Desktop\prj\tmp\gatsby-demo\.eslintrc.js
at JSON.parse (<anonymous>)
at Object.<anonymous> (C:\Users\vanvilecks\Desktop\prj\tmp\gatsby-demo\node_modules\eslint-config-airbnb\whitespace.js:54:25)
at Module._compile (C:\Users\vanvilecks\Desktop\prj\tmp\gatsby-demo\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at Object.module.exports [as default] (C:\Users\vanvilecks\Desktop\prj\tmp\gatsby-demo\node_modules\import-fresh\index.js:32:59)
at loadJSConfigFile (C:\Users\vanvilecks\Desktop\prj\tmp\gatsby-demo\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:2531:47)
at loadConfigFile (C:\Users\vanvilecks\Desktop\prj\tmp\gatsby-demo\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:2615:20)
How do I fix it?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels