You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 29, 2020. It is now read-only.
@@ -34,31 +36,30 @@ This config also exposes a few other configs that we use often and pull in as ne
34
36
You can use them standalone:
35
37
36
38
```js
37
-
{
38
-
"extends":"anvilabs/<config-name>"
39
-
}
39
+
module.exports={
40
+
extends:'anvilabs/<config-name>',
41
+
};
40
42
```
41
43
42
44
Or in combination with the base config (recommended):
43
45
44
46
```js
45
-
{
46
-
"extends": ["anvilabs", "anvilabs/<config-name>"]
47
-
}
47
+
module.exports={
48
+
extends: ['anvilabs', 'anvilabs/<config-name>'],
49
+
};
48
50
```
49
51
50
52
Available configs include:
51
53
52
-
-`"anvilabs/babel"` for usage with [babel transformations](https://github.com/babel/babel-eslint)
53
-
-`"anvilabs/flowtype"` for [Flow](https://flowtype.org/) related rules
54
-
-`"anvilabs/jest"` for [Jest](https://facebook.github.io/jest/) related rules
55
-
-`"anvilabs/lodash"` for [Lodash](https://lodash.com/) related rules
56
-
-`"anvilabs/react"` for [React](https://facebook.github.io/react/) related rules
57
-
-`"anvilabs/react-native"` for [React Native](https://facebook.github.io/react-native/) related rules
54
+
-`'anvilabs/babel'` for usage with [babel transformations](https://github.com/babel/babel-eslint)
55
+
-`'anvilabs/flowtype'` for [Flow](https://flowtype.org/) related rules
56
+
-`'anvilabs/jest'` for [Jest](https://facebook.github.io/jest/) related rules
57
+
-`'anvilabs/lodash'` for [Lodash](https://lodash.com/) related rules
58
+
-`'anvilabs/react'` for [React](https://facebook.github.io/react/) related rules
59
+
-`'anvilabs/react-native'` for [React Native](https://facebook.github.io/react-native/) related rules
58
60
59
61
### Things to know
60
62
61
-
- All plugins needed for rules used by these configs are dependencies of this module so you don't have to install anything on your own.
62
63
- Running ESLint will report an error if your code does not match prettier style. The rule is autofixable – if you run ESLint with the `--fix` flag, your code will be formatted according to prettier style.
0 commit comments