Skip to content

Unexpected syntax error  #340

Closed
Closed
@abbyarmada

Description

@abbyarmada

User is experiencing this error with eslint after switching repo to new features.

throw e; 
^

SyntaxError: Cannot read config file: /code/package.json 
Error: Cannot read config file: /code/package.json 
Error: Unexpected string in JSON at position 243 
at Object.parse (native) 
at loadJSONConfigFile (/usr/local/node_modules/eslint/lib/config/config-file.js:120:21) 
at loadPackageJSONConfigFile (/usr/local/node_modules/eslint/lib/config/config-file.js:178:16) 
at loadConfigFile (/usr/local/node_modules/eslint/lib/config/config-file.js:226:26) 
at Object.load (/usr/local/node_modules/eslint/lib/config/config-file.js:535:18) 
at loadConfig (/usr/local/node_modules/eslint/lib/config.js:63:33) 
at getLocalConfig (/usr/local/node_modules/eslint/lib/config.js:130:29) 
at Config.getConfig (/usr/local/node_modules/eslint/lib/config.js:260:26) 
at Config.getConfig (/usr/src/app/lib/eslint-patch.js:45:46) 
at CLIEngine.getConfigForFile (/usr/local/node_modules/eslint/lib/cli-engine.js:776:29)```

They do not have their own eslint config. Ping me directly if you need more info (repo, etc) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions