We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unicorn/prefer-flat-map
1 parent 223db40 commit 80c592eCopy full SHA for 80c592e
config/plugins.js
@@ -245,6 +245,9 @@ module.exports = {
245
// 'eslint-comments/no-unlimited-disable': 'error',
246
247
'eslint-comments/no-unused-disable': 'error',
248
- 'eslint-comments/no-unused-enable': 'error'
+ 'eslint-comments/no-unused-enable': 'error',
249
+
250
+ // Disabled by default, enabled only in Node.js >= 11 in option-manager.js
251
+ 'unicorn/prefer-flat-map': 'off'
252
}
253
};
lib/options-manager.js
@@ -107,6 +107,9 @@ const ENGINE_RULES = {
107
},
108
'prefer-named-capture-group': {
109
'10.0.0': 'error'
110
+ },
111
+ 'unicorn/prefer-flat-map': {
112
+ '11.0.0': 'error'
113
114
115
0 commit comments