'eslint How to force an array to wrap
He has something to do with array-element-newline, But what I need is:
const a = [
// The first attribute must be below `[`
1,
2,
3,
// The last attribute must be above `]`
];
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
