Skip to content

Commit 9b7001c

Browse files
committed
tests: add eclint
1 parent 0245643 commit 9b7001c

File tree

4 files changed

+1748
-45
lines changed

4 files changed

+1748
-45
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ block_comment_start = /*
1414
block_comment = *
1515
block_comment_end = */
1616

17-
[{package.json,.travis.yml,package-lock.json,codecov.yml,.all-contributorsrc}]
17+
[{package.json,.travis.yml,package-lock.json,codecov.yml,.all-contributorsrc,README.md}]
1818
indent_style = space
1919
indent_size = 2

README.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@
55
Rules for Array functions and methods.
66

77
## Contents
8-
- [Installation](#installation)
9-
- [Rules](#rules)
10-
- [`from-map`](#from-map)
11-
- [Examples](#examples)
12-
- [`no-unnecessary-this-arg`](#no-unnecessary-this-arg)
13-
- [Checked Functions](#checked-functions)
14-
- [Checked Methods](#checked-methods)
15-
- [Examples](#examples-1)
16-
- [`prefer-array-from`](#prefer-array-from)
17-
- [Examples](#examples-2)
18-
- [`avoid-reverse`](#avoid-reverse)
19-
- [Examples](#examples-3)
20-
- [`prefer-flat-map`](#prefer-flat-map)
21-
- [Examples](#examples-4)
22-
- [`prefer-flat`](#prefer-flat)
23-
- [Examples](#examples-55)
24-
- [Configurations](#configurations)
25-
- [`array-func/recommended` Configuration](#array-funcrecommended-configuration)
26-
- [Using the Configuration](#using-the-configuration)
27-
- [`array-func/all` Configuration](#array-funcall-configuration)
28-
- [License](#license)
8+
- [Installation](#installation)
9+
- [Rules](#rules)
10+
- [`from-map`](#from-map)
11+
- [Examples](#examples)
12+
- [`no-unnecessary-this-arg`](#no-unnecessary-this-arg)
13+
- [Checked Functions](#checked-functions)
14+
- [Checked Methods](#checked-methods)
15+
- [Examples](#examples-1)
16+
- [`prefer-array-from`](#prefer-array-from)
17+
- [Examples](#examples-2)
18+
- [`avoid-reverse`](#avoid-reverse)
19+
- [Examples](#examples-3)
20+
- [`prefer-flat-map`](#prefer-flat-map)
21+
- [Examples](#examples-4)
22+
- [`prefer-flat`](#prefer-flat)
23+
- [Examples](#examples-55)
24+
- [Configurations](#configurations)
25+
- [`array-func/recommended` Configuration](#array-funcrecommended-configuration)
26+
- [Using the Configuration](#using-the-configuration)
27+
- [`array-func/all` Configuration](#array-funcall-configuration)
28+
- [License](#license)
2929

3030
## Installation
3131

@@ -76,16 +76,16 @@ The `this` parameter is useless when providing arrow functions, since the `this`
7676
The fix is usually to omit the parameter. The Array methods can't be auto-fixed, since the detection of array methods is not confident enough to know that the method is being called on an array.
7777

7878
#### Checked Functions
79-
- `from` (fixable)
79+
- `from` (fixable)
8080

8181
#### Checked Methods
82-
- `every`
83-
- `filter`
84-
- `find`
85-
- `findIndex`
86-
- `forEach`
87-
- `map`
88-
- `some`
82+
- `every`
83+
- `filter`
84+
- `find`
85+
- `findIndex`
86+
- `forEach`
87+
- `map`
88+
- `some`
8989

9090
#### Examples
9191
Code that triggers this rule:
@@ -262,9 +262,9 @@ Rule | Error level | Fixable
262262
To enable this configuration use the `extends` property in your `.eslintrc.json` config file (may look different for other config file styles):
263263
```json
264264
{
265-
"extends": [
266-
"array-func/recommended"
267-
]
265+
"extends": [
266+
"array-func/recommended"
267+
]
268268
}
269269
```
270270

0 commit comments

Comments
 (0)