- πΊπΈUnited States smustgrave
With the release of D10 I have to agree with #16.
If anyone agrees please reopen with the reason why.
I was attempting to use the core .eslintrc.json to lint the JS of a project I'm on and ran into what I believe is a bug or at least a conflict with the documented coding standards.
It seems the closure/wrapper required in the JS coding standards handbook page β (and found in every core es6.js file I've seen) causes this eslint warning:
warning Unexpected unnamed function func-names
In a local project file I was able to do the following to get around it:
Old:
(function (Drupal, bar) {
...
}(Drupal, window.foo));
New:
((Drupal, bar) => {
...
})(Drupal, window.foo);
I'm not certain that approach would work throughout core, but I wanted to at least present the idea as a potential way forward here.
Closed: won't fix
10.1 β¨
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
With the release of D10 I have to agree with #16.
If anyone agrees please reopen with the reason why.