1 | # eslint-plugin-unicorn [![Coverage Status](https://codecov.io/gh/sindresorhus/eslint-plugin-unicorn/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/eslint-plugin-unicorn/branch/main) [![npm version](https://img.shields.io/npm/v/eslint-plugin-unicorn.svg?style=flat)](https://npmjs.com/package/eslint-plugin-unicorn)
|
2 |
|
3 | <img src="https://cloud.githubusercontent.com/assets/170270/18659176/1cc373d0-7f33-11e6-890f-0ba35362ee7e.jpg" width="180" align="right">
|
4 |
|
5 | > Various awesome ESLint rules
|
6 |
|
7 | You might want to check out [XO](https://github.com/xojs/xo), which includes this plugin.
|
8 |
|
9 | [**Propose or contribute a new rule β‘**](.github/contributing.md)
|
10 |
|
11 | ## Install
|
12 |
|
13 | ```console
|
14 | $ npm install --save-dev eslint eslint-plugin-unicorn
|
15 | ```
|
16 |
|
17 | ## Usage
|
18 |
|
19 | Configure it in `package.json`.
|
20 |
|
21 |
|
22 |
|
23 | ```json
|
24 | {
|
25 | "name": "my-awesome-project",
|
26 | "eslintConfig": {
|
27 | "env": {
|
28 | "es6": true
|
29 | },
|
30 | "parserOptions": {
|
31 | "ecmaVersion": "latest",
|
32 | "sourceType": "module"
|
33 | },
|
34 | "plugins": [
|
35 | "unicorn"
|
36 | ],
|
37 | "rules": {
|
38 | "unicorn/better-regex": "error",
|
39 | "unicorn/catch-error-name": "error",
|
40 | "unicorn/consistent-destructuring": "error",
|
41 | "unicorn/consistent-function-scoping": "error",
|
42 | "unicorn/custom-error-definition": "off",
|
43 | "unicorn/empty-brace-spaces": "error",
|
44 | "unicorn/error-message": "error",
|
45 | "unicorn/escape-case": "error",
|
46 | "unicorn/expiring-todo-comments": "error",
|
47 | "unicorn/explicit-length-check": "error",
|
48 | "unicorn/filename-case": "error",
|
49 | "unicorn/import-index": "off",
|
50 | "unicorn/import-style": "error",
|
51 | "unicorn/new-for-builtins": "error",
|
52 | "unicorn/no-abusive-eslint-disable": "error",
|
53 | "unicorn/no-array-callback-reference": "error",
|
54 | "unicorn/no-array-for-each": "error",
|
55 | "unicorn/no-array-method-this-argument": "error",
|
56 | "unicorn/no-array-push-push": "error",
|
57 | "unicorn/no-array-reduce": "error",
|
58 | "unicorn/no-console-spaces": "error",
|
59 | "unicorn/no-document-cookie": "error",
|
60 | "unicorn/no-empty-file": "error",
|
61 | "unicorn/no-for-loop": "error",
|
62 | "unicorn/no-hex-escape": "error",
|
63 | "unicorn/no-instanceof-array": "error",
|
64 | "unicorn/no-invalid-remove-event-listener": "error",
|
65 | "unicorn/no-keyword-prefix": "off",
|
66 | "unicorn/no-lonely-if": "error",
|
67 | "no-nested-ternary": "off",
|
68 | "unicorn/no-nested-ternary": "error",
|
69 | "unicorn/no-new-array": "error",
|
70 | "unicorn/no-new-buffer": "error",
|
71 | "unicorn/no-null": "error",
|
72 | "unicorn/no-object-as-default-parameter": "error",
|
73 | "unicorn/no-process-exit": "error",
|
74 | "unicorn/no-static-only-class": "error",
|
75 | "unicorn/no-this-assignment": "error",
|
76 | "unicorn/no-unreadable-array-destructuring": "error",
|
77 | "unicorn/no-unsafe-regex": "off",
|
78 | "unicorn/no-unused-properties": "off",
|
79 | "unicorn/no-useless-fallback-in-spread": "error",
|
80 | "unicorn/no-useless-length-check": "error",
|
81 | "unicorn/no-useless-spread": "error",
|
82 | "unicorn/no-useless-undefined": "error",
|
83 | "unicorn/no-zero-fractions": "error",
|
84 | "unicorn/number-literal-case": "error",
|
85 | "unicorn/numeric-separators-style": "error",
|
86 | "unicorn/prefer-add-event-listener": "error",
|
87 | "unicorn/prefer-array-find": "error",
|
88 | "unicorn/prefer-array-flat": "error",
|
89 | "unicorn/prefer-array-flat-map": "error",
|
90 | "unicorn/prefer-array-index-of": "error",
|
91 | "unicorn/prefer-array-some": "error",
|
92 | "unicorn/prefer-at": "off",
|
93 | "unicorn/prefer-date-now": "error",
|
94 | "unicorn/prefer-default-parameters": "error",
|
95 | "unicorn/prefer-dom-node-append": "error",
|
96 | "unicorn/prefer-dom-node-dataset": "error",
|
97 | "unicorn/prefer-dom-node-remove": "error",
|
98 | "unicorn/prefer-dom-node-text-content": "error",
|
99 | "unicorn/prefer-export-from": "error",
|
100 | "unicorn/prefer-includes": "error",
|
101 | "unicorn/prefer-keyboard-event-key": "error",
|
102 | "unicorn/prefer-math-trunc": "error",
|
103 | "unicorn/prefer-modern-dom-apis": "error",
|
104 | "unicorn/prefer-module": "error",
|
105 | "unicorn/prefer-negative-index": "error",
|
106 | "unicorn/prefer-node-protocol": "error",
|
107 | "unicorn/prefer-number-properties": "error",
|
108 | "unicorn/prefer-object-from-entries": "error",
|
109 | "unicorn/prefer-object-has-own": "off",
|
110 | "unicorn/prefer-optional-catch-binding": "error",
|
111 | "unicorn/prefer-prototype-methods": "error",
|
112 | "unicorn/prefer-query-selector": "error",
|
113 | "unicorn/prefer-reflect-apply": "error",
|
114 | "unicorn/prefer-regexp-test": "error",
|
115 | "unicorn/prefer-set-has": "error",
|
116 | "unicorn/prefer-spread": "error",
|
117 | "unicorn/prefer-string-replace-all": "off",
|
118 | "unicorn/prefer-string-slice": "error",
|
119 | "unicorn/prefer-string-starts-ends-with": "error",
|
120 | "unicorn/prefer-string-trim-start-end": "error",
|
121 | "unicorn/prefer-switch": "error",
|
122 | "unicorn/prefer-ternary": "error",
|
123 | "unicorn/prefer-top-level-await": "off",
|
124 | "unicorn/prefer-type-error": "error",
|
125 | "unicorn/prevent-abbreviations": "error",
|
126 | "unicorn/require-array-join-separator": "error",
|
127 | "unicorn/require-number-to-fixed-digits-argument": "error",
|
128 | "unicorn/require-post-message-target-origin": "error",
|
129 | "unicorn/string-content": "off",
|
130 | "unicorn/template-indent": "warn",
|
131 | "unicorn/throw-new-error": "error"
|
132 | },
|
133 | "overrides": [
|
134 | {
|
135 | "files": [
|
136 | "*.ts",
|
137 | "*.tsx"
|
138 | ],
|
139 | "rules": {
|
140 | "unicorn/require-post-message-target-origin": "off"
|
141 | }
|
142 | }
|
143 | ]
|
144 | }
|
145 | }
|
146 | ```
|
147 |
|
148 |
|
149 | ## Rules
|
150 |
|
151 | Each rule has emojis denoting:
|
152 |
|
153 | * β
if it belongs to the `recommended` configuration
|
154 | * π§ if some problems reported by the rule are automatically fixable by the `--fix` [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) option
|
155 | * π‘ if some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions)
|
156 |
|
157 |
|
158 |
|
159 |
|
160 | | Name | Description | β
| π§ | π‘ |
|
161 | | :-- | :-- | :-- | :-- | :-- |
|
162 | | [better-regex](docs/rules/better-regex.md) | Improve regexes by making them shorter, consistent, and safer. | β
| π§ | |
|
163 | | [catch-error-name](docs/rules/catch-error-name.md) | Enforce a specific parameter name in catch clauses. | β
| π§ | |
|
164 | | [consistent-destructuring](docs/rules/consistent-destructuring.md) | Use destructured variables over properties. | β
| π§ | π‘ |
|
165 | | [consistent-function-scoping](docs/rules/consistent-function-scoping.md) | Move function definitions to the highest possible scope. | β
| | |
|
166 | | [custom-error-definition](docs/rules/custom-error-definition.md) | Enforce correct `Error` subclassing. | | π§ | |
|
167 | | [empty-brace-spaces](docs/rules/empty-brace-spaces.md) | Enforce no spaces between braces. | β
| π§ | |
|
168 | | [error-message](docs/rules/error-message.md) | Enforce passing a `message` value when creating a built-in error. | β
| | |
|
169 | | [escape-case](docs/rules/escape-case.md) | Require escape sequences to use uppercase values. | β
| π§ | |
|
170 | | [expiring-todo-comments](docs/rules/expiring-todo-comments.md) | Add expiration conditions to TODO comments. | β
| | |
|
171 | | [explicit-length-check](docs/rules/explicit-length-check.md) | Enforce explicitly comparing the `length` or `size` property of a value. | β
| π§ | π‘ |
|
172 | | [filename-case](docs/rules/filename-case.md) | Enforce a case style for filenames. | β
| | |
|
173 | | [import-index](docs/rules/import-index.md) | Enforce importing index files with `.`. | | π§ | |
|
174 | | [import-style](docs/rules/import-style.md) | Enforce specific import styles per module. | β
| | |
|
175 | | [new-for-builtins](docs/rules/new-for-builtins.md) | Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`. | β
| π§ | |
|
176 | | [no-abusive-eslint-disable](docs/rules/no-abusive-eslint-disable.md) | Enforce specifying rules to disable in `eslint-disable` comments. | β
| | |
|
177 | | [no-array-callback-reference](docs/rules/no-array-callback-reference.md) | Prevent passing a function reference directly to iterator methods. | β
| | π‘ |
|
178 | | [no-array-for-each](docs/rules/no-array-for-each.md) | Prefer `forβ¦of` over `Array#forEach(β¦)`. | β
| π§ | |
|
179 | | [no-array-method-this-argument](docs/rules/no-array-method-this-argument.md) | Disallow using the `this` argument in array methods. | β
| π§ | π‘ |
|
180 | | [no-array-push-push](docs/rules/no-array-push-push.md) | Enforce combining multiple `Array#push()` into one call. | β
| π§ | π‘ |
|
181 | | [no-array-reduce](docs/rules/no-array-reduce.md) | Disallow `Array#reduce()` and `Array#reduceRight()`. | β
| | |
|
182 | | [no-console-spaces](docs/rules/no-console-spaces.md) | Do not use leading/trailing space between `console.log` parameters. | β
| π§ | |
|
183 | | [no-document-cookie](docs/rules/no-document-cookie.md) | Do not use `document.cookie` directly. | β
| | |
|
184 | | [no-empty-file](docs/rules/no-empty-file.md) | Disallow empty files. | β
| | |
|
185 | | [no-for-loop](docs/rules/no-for-loop.md) | Do not use a `for` loop that can be replaced with a `for-of` loop. | β
| π§ | |
|
186 | | [no-hex-escape](docs/rules/no-hex-escape.md) | Enforce the use of Unicode escapes instead of hexadecimal escapes. | β
| π§ | |
|
187 | | [no-instanceof-array](docs/rules/no-instanceof-array.md) | Require `Array.isArray()` instead of `instanceof Array`. | β
| π§ | |
|
188 | | [no-invalid-remove-event-listener](docs/rules/no-invalid-remove-event-listener.md) | Prevent calling `EventTarget#removeEventListener()` with the result of an expression. | β
| | |
|
189 | | [no-keyword-prefix](docs/rules/no-keyword-prefix.md) | Disallow identifiers starting with `new` or `class`. | | | |
|
190 | | [no-lonely-if](docs/rules/no-lonely-if.md) | Disallow `if` statements as the only statement in `if` blocks without `else`. | β
| π§ | |
|
191 | | [no-nested-ternary](docs/rules/no-nested-ternary.md) | Disallow nested ternary expressions. | β
| π§ | |
|
192 | | [no-new-array](docs/rules/no-new-array.md) | Disallow `new Array()`. | β
| π§ | π‘ |
|
193 | | [no-new-buffer](docs/rules/no-new-buffer.md) | Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`. | β
| π§ | π‘ |
|
194 | | [no-null](docs/rules/no-null.md) | Disallow the use of the `null` literal. | β
| π§ | π‘ |
|
195 | | [no-object-as-default-parameter](docs/rules/no-object-as-default-parameter.md) | Disallow the use of objects as default parameters. | β
| | |
|
196 | | [no-process-exit](docs/rules/no-process-exit.md) | Disallow `process.exit()`. | β
| | |
|
197 | | [no-static-only-class](docs/rules/no-static-only-class.md) | Forbid classes that only have static members. | β
| π§ | |
|
198 | | [no-this-assignment](docs/rules/no-this-assignment.md) | Disallow assigning `this` to a variable. | β
| | |
|
199 | | [no-unreadable-array-destructuring](docs/rules/no-unreadable-array-destructuring.md) | Disallow unreadable array destructuring. | β
| π§ | |
|
200 | | [no-unsafe-regex](docs/rules/no-unsafe-regex.md) | Disallow unsafe regular expressions. | | | |
|
201 | | [no-unused-properties](docs/rules/no-unused-properties.md) | Disallow unused object properties. | | | |
|
202 | | [no-useless-fallback-in-spread](docs/rules/no-useless-fallback-in-spread.md) | Forbid useless fallback when spreading in object literals. | β
| π§ | |
|
203 | | [no-useless-length-check](docs/rules/no-useless-length-check.md) | Disallow useless array length check. | β
| π§ | |
|
204 | | [no-useless-spread](docs/rules/no-useless-spread.md) | Disallow unnecessary spread. | β
| π§ | |
|
205 | | [no-useless-undefined](docs/rules/no-useless-undefined.md) | Disallow useless `undefined`. | β
| π§ | |
|
206 | | [no-zero-fractions](docs/rules/no-zero-fractions.md) | Disallow number literals with zero fractions or dangling dots. | β
| π§ | |
|
207 | | [number-literal-case](docs/rules/number-literal-case.md) | Enforce proper case for numeric literals. | β
| π§ | |
|
208 | | [numeric-separators-style](docs/rules/numeric-separators-style.md) | Enforce the style of numeric separators by correctly grouping digits. | β
| π§ | |
|
209 | | [prefer-add-event-listener](docs/rules/prefer-add-event-listener.md) | Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions. | β
| π§ | |
|
210 | | [prefer-array-find](docs/rules/prefer-array-find.md) | Prefer `.find(β¦)` over the first element from `.filter(β¦)`. | β
| π§ | π‘ |
|
211 | | [prefer-array-flat](docs/rules/prefer-array-flat.md) | Prefer `Array#flat()` over legacy techniques to flatten arrays. | β
| π§ | |
|
212 | | [prefer-array-flat-map](docs/rules/prefer-array-flat-map.md) | Prefer `.flatMap(β¦)` over `.map(β¦).flat()`. | β
| π§ | |
|
213 | | [prefer-array-index-of](docs/rules/prefer-array-index-of.md) | Prefer `Array#indexOf()` over `Array#findIndex()` when looking for the index of an item. | β
| π§ | π‘ |
|
214 | | [prefer-array-some](docs/rules/prefer-array-some.md) | Prefer `.some(β¦)` over `.filter(β¦).length` check and `.find(β¦)`. | β
| π§ | π‘ |
|
215 | | [prefer-at](docs/rules/prefer-at.md) | Prefer `.at()` method for index access and `String#charAt()`. | | π§ | π‘ |
|
216 | | [prefer-date-now](docs/rules/prefer-date-now.md) | Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch. | β
| π§ | |
|
217 | | [prefer-default-parameters](docs/rules/prefer-default-parameters.md) | Prefer default parameters over reassignment. | β
| π§ | π‘ |
|
218 | | [prefer-dom-node-append](docs/rules/prefer-dom-node-append.md) | Prefer `Node#append()` over `Node#appendChild()`. | β
| π§ | |
|
219 | | [prefer-dom-node-dataset](docs/rules/prefer-dom-node-dataset.md) | Prefer using `.dataset` on DOM elements over `.setAttribute(β¦)`. | β
| π§ | |
|
220 | | [prefer-dom-node-remove](docs/rules/prefer-dom-node-remove.md) | Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`. | β
| π§ | π‘ |
|
221 | | [prefer-dom-node-text-content](docs/rules/prefer-dom-node-text-content.md) | Prefer `.textContent` over `.innerText`. | β
| | π‘ |
|
222 | | [prefer-export-from](docs/rules/prefer-export-from.md) | Prefer `exportβ¦from` when re-exporting. | β
| π§ | |
|
223 | | [prefer-includes](docs/rules/prefer-includes.md) | Prefer `.includes()` over `.indexOf()` and `Array#some()` when checking for existence or non-existence. | β
| π§ | π‘ |
|
224 | | [prefer-keyboard-event-key](docs/rules/prefer-keyboard-event-key.md) | Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`. | β
| π§ | |
|
225 | | [prefer-math-trunc](docs/rules/prefer-math-trunc.md) | Enforce the use of `Math.trunc` instead of bitwise operators. | β
| π§ | π‘ |
|
226 | | [prefer-modern-dom-apis](docs/rules/prefer-modern-dom-apis.md) | Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`. | β
| π§ | |
|
227 | | [prefer-module](docs/rules/prefer-module.md) | Prefer JavaScript modules (ESM) over CommonJS. | β
| π§ | π‘ |
|
228 | | [prefer-negative-index](docs/rules/prefer-negative-index.md) | Prefer negative index over `.length - index` for `{String,Array,TypedArray}#slice()`, `Array#splice()` and `Array#at()`. | β
| π§ | |
|
229 | | [prefer-node-protocol](docs/rules/prefer-node-protocol.md) | Prefer using the `node:` protocol when importing Node.js builtin modules. | β
| π§ | |
|
230 | | [prefer-number-properties](docs/rules/prefer-number-properties.md) | Prefer `Number` static properties over global ones. | β
| π§ | π‘ |
|
231 | | [prefer-object-from-entries](docs/rules/prefer-object-from-entries.md) | Prefer using `Object.fromEntries(β¦)` to transform a list of key-value pairs into an object. | β
| π§ | |
|
232 | | [prefer-object-has-own](docs/rules/prefer-object-has-own.md) | Prefer `Object.hasOwn(β¦)` over `Object.prototype.hasOwnProperty.call(β¦)`. | | π§ | |
|
233 | | [prefer-optional-catch-binding](docs/rules/prefer-optional-catch-binding.md) | Prefer omitting the `catch` binding parameter. | β
| π§ | |
|
234 | | [prefer-prototype-methods](docs/rules/prefer-prototype-methods.md) | Prefer borrowing methods from the prototype instead of the instance. | β
| π§ | |
|
235 | | [prefer-query-selector](docs/rules/prefer-query-selector.md) | Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`. | β
| π§ | |
|
236 | | [prefer-reflect-apply](docs/rules/prefer-reflect-apply.md) | Prefer `Reflect.apply()` over `Function#apply()`. | β
| π§ | |
|
237 | | [prefer-regexp-test](docs/rules/prefer-regexp-test.md) | Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`. | β
| π§ | |
|
238 | | [prefer-set-has](docs/rules/prefer-set-has.md) | Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence. | β
| π§ | π‘ |
|
239 | | [prefer-spread](docs/rules/prefer-spread.md) | Prefer the spread operator over `Array.from(β¦)`, `Array#concat(β¦)`, `Array#slice()` and `String#split('')`. | β
| π§ | π‘ |
|
240 | | [prefer-string-replace-all](docs/rules/prefer-string-replace-all.md) | Prefer `String#replaceAll()` over regex searches with the global flag. | | π§ | |
|
241 | | [prefer-string-slice](docs/rules/prefer-string-slice.md) | Prefer `String#slice()` over `String#substr()` and `String#substring()`. | β
| π§ | |
|
242 | | [prefer-string-starts-ends-with](docs/rules/prefer-string-starts-ends-with.md) | Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`. | β
| π§ | π‘ |
|
243 | | [prefer-string-trim-start-end](docs/rules/prefer-string-trim-start-end.md) | Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`. | β
| π§ | |
|
244 | | [prefer-switch](docs/rules/prefer-switch.md) | Prefer `switch` over multiple `else-if`. | β
| π§ | |
|
245 | | [prefer-ternary](docs/rules/prefer-ternary.md) | Prefer ternary expressions over simple `if-else` statements. | β
| π§ | |
|
246 | | [prefer-top-level-await](docs/rules/prefer-top-level-await.md) | Prefer top-level await over top-level promises and async function calls. | | | π‘ |
|
247 | | [prefer-type-error](docs/rules/prefer-type-error.md) | Enforce throwing `TypeError` in type checking conditions. | β
| π§ | |
|
248 | | [prevent-abbreviations](docs/rules/prevent-abbreviations.md) | Prevent abbreviations. | β
| π§ | |
|
249 | | [require-array-join-separator](docs/rules/require-array-join-separator.md) | Enforce using the separator argument with `Array#join()`. | β
| π§ | |
|
250 | | [require-number-to-fixed-digits-argument](docs/rules/require-number-to-fixed-digits-argument.md) | Enforce using the digits argument with `Number#toFixed()`. | β
| π§ | |
|
251 | | [require-post-message-target-origin](docs/rules/require-post-message-target-origin.md) | Enforce using the `targetOrigin` argument with `window.postMessage()`. | β
| | π‘ |
|
252 | | [string-content](docs/rules/string-content.md) | Enforce better string content. | | π§ | π‘ |
|
253 | | [template-indent](docs/rules/template-indent.md) | Fix whitespace-insensitive template indentation. | | π§ | |
|
254 | | [throw-new-error](docs/rules/throw-new-error.md) | Require `new` when throwing an error. | β
| π§ | |
|
255 |
|
256 |
|
257 |
|
258 | ## Deprecated Rules
|
259 |
|
260 | See [docs/deprecated-rules.md](docs/deprecated-rules.md)
|
261 |
|
262 | ## Recommended config
|
263 |
|
264 | This plugin exports a [`recommended` config](configs/recommended.js) that enforces good practices.
|
265 |
|
266 | Enable it in your `package.json` with the `extends` option:
|
267 |
|
268 | ```json
|
269 | {
|
270 | "name": "my-awesome-project",
|
271 | "eslintConfig": {
|
272 | "extends": "plugin:unicorn/recommended"
|
273 | }
|
274 | }
|
275 | ```
|
276 |
|
277 | See the [ESLint docs](https://eslint.org/docs/user-guide/configuring/configuration-files#extending-configuration-files) for more information about extending config files.
|
278 |
|
279 | **Note**: This config will also enable the correct [parser options](https://eslint.org/docs/user-guide/configuring/language-options#specifying-parser-options) and [environment](https://eslint.org/docs/user-guide/configuring/language-options#specifying-environments).
|
280 |
|
281 | ## All config
|
282 |
|
283 | This plugin exports an [`all` config](configs/all.js) that makes use of all rules (except for deprecated ones).
|
284 |
|
285 | Enable it in your `package.json` with the `extends` option:
|
286 |
|
287 | ```json
|
288 | {
|
289 | "name": "my-awesome-project",
|
290 | "eslintConfig": {
|
291 | "extends": "plugin:unicorn/all"
|
292 | }
|
293 | }
|
294 | ```
|
295 |
|
296 | See the [ESLint docs](https://eslint.org/docs/user-guide/configuring/configuration-files#extending-configuration-files) for more information about extending config files.
|
297 |
|
298 | ## Maintainers
|
299 |
|
300 | - [Sindre Sorhus](https://github.com/sindresorhus)
|
301 | - [Adam Babcock](https://github.com/MrHen)
|
302 | - [futpib](https://github.com/futpib)
|
303 | - [Fisker Cheung](https://github.com/fisker)
|
304 |
|
305 | ###### Former
|
306 |
|
307 | - [Jeroen Engels](https://github.com/jfmengels)
|
308 | - [Sam Verschueren](https://github.com/SamVerschueren)
|