Cloning an old project and get so much error linter
See original GitHub issueHello all,
I have cloning an old project and try to reinstall all, the project works but I have so much problems with the linter, When I save my work always show a pop up red :
https://gyazo.com/2eb0b47b905b21d45c292e30b08b0ca3
And there is the error in the Console :
/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint-config-airbnb/rules/react.js:
Configuration for rule "react/jsx-wrap-multilines" is invalid:
Value "[object Object]" should NOT have additional properties.
Referenced from: /var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint-config-airbnb/index.js
Referenced from: /var/www/html/ProjectMJC/projetMJC/front/.eslintrc Error: /var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint-config-airbnb/rules/react.js:
Configuration for rule "react/jsx-wrap-multilines" is invalid:
Value "[object Object]" should NOT have additional properties.
Referenced from: /var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint-config-airbnb/index.js
Referenced from: /var/www/html/ProjectMJC/projetMJC/front/.eslintrc
at validateRuleOptions (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-validator.js:113:15)
at Object.keys.forEach.id (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-validator.js:153:9)
at Array.forEach (native)
at validateRules (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-validator.js:152:30)
at Object.validate (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-validator.js:230:5)
at loadFromDisk (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:549:19)
at load (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:592:20)
at configExtends.reduceRight (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:421:36)
at Array.reduceRight (native)
at applyExtends (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:403:28)
at loadFromDisk (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:556:22)
at load (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:592:20)
at configExtends.reduceRight (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:421:36)
at Array.reduceRight (native)
at applyExtends (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:403:28)
at loadFromDisk (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:556:22)
at Object.load (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:592:20)
at Config.getLocalConfigHierarchy (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config.js:228:44)
at Config.getConfigHierarchy (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config.js:182:43)
at Config.getConfigVector (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config.js:287:21)
at Config.getConfig (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config.js:330:29)
at processText (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/cli-engine.js:162:33)
at CLIEngine.executeOnText (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/cli-engine.js:668:26)
at lintJob (/home/corke/.atom/packages/linter-eslint/src/worker.js:14:20)
at process.<anonymous> (/home/corke/.atom/packages/linter-eslint/src/worker.js:52:22)
at emitTwo (events.js:111:20)
at process.emit (events.js:191:7)
at process.nextTick (internal/child_process.js:752:12)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
(anonymous) @ <embedded>:71141
(anonymous) @ <embedded>:71215
module.exports.Emitter.simpleDispatch @ <embedded>:63445
module.exports.Emitter.emit @ <embedded>:63561
(anonymous) @ <embedded>:71167
emitTwo @ events.js:106
emit @ events.js:191
process.nextTick @ internal/child_process.js:752
_combinedTickCallback @ internal/process/next_tick.js:67
_tickCallback @ internal/process/next_tick.js:98
linter-registry.js [sm]:137 [Linter] Error running ESLint Error: /var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint-config-airbnb/rules/react.js:
Configuration for rule "react/jsx-wrap-multilines" is invalid:
Value "[object Object]" should NOT have additional properties.
Referenced from: /var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint-config-airbnb/index.js
Referenced from: /var/www/html/ProjectMJC/projetMJC/front/.eslintrc
at validateRuleOptions (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-validator.js:113:15)
at Object.keys.forEach.id (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-validator.js:153:9)
at Array.forEach (native)
at validateRules (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-validator.js:152:30)
at Object.validate (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-validator.js:230:5)
at loadFromDisk (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:549:19)
at load (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:592:20)
at configExtends.reduceRight (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:421:36)
at Array.reduceRight (native)
at applyExtends (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:403:28)
at loadFromDisk (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:556:22)
at load (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:592:20)
at configExtends.reduceRight (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:421:36)
at Array.reduceRight (native)
at applyExtends (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:403:28)
at loadFromDisk (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:556:22)
at Object.load (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config/config-file.js:592:20)
at Config.getLocalConfigHierarchy (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config.js:228:44)
at Config.getConfigHierarchy (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config.js:182:43)
at Config.getConfigVector (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config.js:287:21)
at Config.getConfig (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/config.js:330:29)
at processText (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/cli-engine.js:162:33)
at CLIEngine.executeOnText (/var/www/html/ProjectMJC/projetMJC/front/node_modules/eslint/lib/cli-engine.js:668:26)
at lintJob (/home/corke/.atom/packages/linter-eslint/src/worker.js:14:20)
at process.<anonymous> (/home/corke/.atom/packages/linter-eslint/src/worker.js:52:22)
at emitTwo (events.js:111:20)
at process.emit (events.js:191:7)
at process.nextTick (internal/child_process.js:752:12)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
Hope some one will understand 😃 Thank you !
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top Results From Across the Web
Troubleshooting cloning errors - GitHub Docs
HTTPS cloning errors. There are a few common errors when using HTTPS with Git. These errors usually indicate you have an old version...
Read more >How to complete a git clone for a big project on an unstable ...
Two solutions (or rather workarounds) that come to mind are: Use shallow clone i.e. git clone --depth=1 , then deepen this clone using...
Read more >Command Line Interface - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >After Successful Cloning, my projects comes up with ...
Hello, so I was looking into a friends .NET project and when I cloned his repository, several errors came up, and I mean...
Read more >Troubleshooting Git - GitLab Docs
The value is specified in bytes, so in the above case the buffer size has been ... Sometimes, when cloning old or large...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You should uninstall all global (
-g
) linters, and configure atom to use the locally-installed one (in your project, from itspackage.json
).Hello thank you for the help I think all is good now 😃
What I have did :
linter works and no more error Big thanks !