Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

eslint not working until I restart atom #1222

Open
3 tasks done
WuChanGG opened this issue Jan 12, 2019 · 0 comments
Open
3 tasks done

eslint not working until I restart atom #1222

WuChanGG opened this issue Jan 12, 2019 · 0 comments
Labels

Comments

@WuChanGG
Copy link

Issue Type

Question/Bug

Issue Description

After I run the command npx eslint --init successfully to get a eslintrc file, I have to close Atom and open it again in order to see eslint errors in the editor.
I thought that the only requirement for eslint to work was to re-open js files. But that's not the case.
Also when I try to run Linter Eslint: Debug from the Command Palette inside Atom before closing and opening Atom, I will get "Type error Path must be a string. Received undefined"

Bug Checklist

  • Restart Atom
  • Verify the eslint CLI gives the proper result, while linter-eslint does not
  • Paste the output of the Linter Eslint: Debug command from the Command Palette below
Linter Eslint: Debug output here

Atom version: 1.33.1
linter-eslint version: 8.5.0
ESLint version: 5.12.0
Hours since last Atom restart: 0
Platform: linux
Using local project ESLint from: /home/wu/Html-CSS-JS/odin-javascript/test/node_modules/eslint
Current file's scopes: [
"source.js"
]
linter-eslint configuration: {
"scopes": [
"source.js",
"source.jsx",
"source.js.jsx",
"source.flow",
"source.babel",
"source.js-semantic"
],
"lintHtmlFiles": false,
"autofix": {
"fixOnSave": false,
"ignoreFixableRulesWhileTyping": false,
"rulesToDisableWhileFixing": []
},
"global": {
"useGlobalEslint": false,
"eslintrcPath": "",
"globalNodePath": ""
},
"disabling": {
"disableWhenNoEslintConfig": true,
"rulesToSilenceWhileTyping": []
},
"advanced": {
"disableEslintIgnore": false,
"disableFSCache": false,
"showRuleIdInMessage": true,
"eslintRulesDirs": [],
"localNodeModules": ""
}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants