JSLint: Expected '{' and instead saw '=>' for anonymous function?

https://jslint.com/

export default ({
title
description
 imageUrl: imageUrl = 'static/favico/android-chrome-512x512.png',
 lang: lang = LANG
 }) => {
 return facebook({title, description, imageUrl, lang});
};
April 4th 20 at 00:40
1 answer
April 4th 20 at 00:42
JSLint wants you to exported functions are not in the style of arrow (() => {}), and good old function() {}
It is clear in the text, the question is how to configure it. - Myrna_Ho commented on April 4th 20 at 00:45
@Myrna_Ho, then for vscode, by analogy make for phpstorm - harry95 commented on April 4th 20 at 00:48
@harry95, added in the global configs in the IDE, an error local to the project, the error
{
 jshint: {
 options: {
 esversion: 6,
},
},

}


export default ({
title
description
 }) => facebook({title, description, imageUrl, lang});
};


}) => (facebook({title, description, imageUrl, lang}));


jshintrc
{
 "esversion": 6
}


eslintrc
,

 parserOptions: {
 sourceType: 'module', // 'script',
 ecmaVersion: 6,
 esversion: 6,
},
 env: {
 es6: true,
,

All the same error. Taken from the replies, tried the docks and examples from the Gita, like this.
Docs

If you rename a file the other https://github.com/eslint/eslint/issues/5294

As for me, to spend half a year on the project setup is stupid, will connect when pofiksit all this or update docks. T .to. on the project I am single, it can wait.

In General, the most correct solution is to disable js linty.

I once tried to set them up, and faced the same difficulties, the old docks, the old ISOs, infa 100500 working methods are great, and works 0 of them.

Alas to know how much your answer is correct and did not work, as will a couple of years free to allocate them to configure Linton and return to the answer. - Myrna_Ho commented on April 4th 20 at 00:51

Find more questions by tags JavaScriptLinter