This repository was archived by the owner on Aug 7, 2023. It is now read-only.
This repository was archived by the owner on Aug 7, 2023. It is now read-only.
Next babel-eslint support #1301
Open
Description
Issue Type
Feature Request, Question
Issue Description
When using the next version of babel-eslint
, namely 11.0.0-beta.0
, it seems really hard to make it find the babel config file with atom-eslint
.
While the ESLint cli alone is working fine.
See https://github.com/babel/babel-eslint#additional-parser-configuration
Parsing error: No Babel config file detected for /home/[...]/libs/ui/src/Foo/Foo.js. Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files. (Fatal)
Project structure
.
├── .babelrc
├── .eslintrc
├── node_modules
├── package.json
├── src
└── yarn.lock
Tried the new config options but no result:
babelOptions: {
configFile: "./.babelrc",
},
Parsing error: Cannot find module './.babelrc' from '/home/[...]/libs' (Fatal)
Where '/home/[...]/libs'
is one level higher than the actual project root...
Bug Checklist
- Restart Atom
- Verify the
eslint
CLI gives the proper result, whilelinter-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.41.0-beta1
linter-eslint version: 8.5.5
ESLint version: 6.2.0
Hours since last Atom restart: 0
Platform: linux
Using local project ESLint from: /home/[...]/libs/ui/node_modules/eslint
Current file's scopes: [
"source.js.jsx",
"meta.object.flowtype",
"kewyword.operator.only.flowtype"
]
linter-eslint configuration: {
"advanced": {
"disableEslintIgnore": false,
"disableFSCache": false,
"showRuleIdInMessage": true,
"eslintRulesDirs": [],
"localNodeModules": ""
},
"global": {
"useGlobalEslint": false,
"eslintrcPath": "",
"globalNodePath": ""
},
"scopes": [
"source.js",
"source.jsx",
"source.js.jsx",
"source.flow",
"source.babel",
"source.js-semantic"
],
"lintHtmlFiles": false,
"autofix": {
"fixOnSave": false,
"ignoreFixableRulesWhileTyping": false,
"rulesToDisableWhileFixing": []
},
"disabling": {
"disableWhenNoEslintConfig": true,
"rulesToSilenceWhileTyping": []
}
}