Skip to content

Commit 8375abf

Browse files
author
David Bradshaw
committed
Merge branch 'lovekaizen-master'
2 parents 4223322 + 531f6b2 commit 8375abf

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> _A reasonable collection of *plugins* to use alongside your main esLint configuration._
44
5-
This config is designed to be used alongside any of the major esLint configs, such as [airbnb](https://github.com/airbnb/javascript), [standard](https://github.com/standard/eslint-config-standard) or [eslint:recommended](https://eslint.org/docs/rules/). It provides a range of useful plugins that are often too time consuming to setup and provides an easy way to install just the plugins you need, based on your project's dependancies.
5+
This config is designed to be used alongside any of the major esLint configs, such as [airbnb](https://github.com/airbnb/javascript), [standard](https://github.com/standard/eslint-config-standard) or [eslint:recommended](https://eslint.org/docs/rules/). It provides a range of useful plugins that are often too time-consuming to setup and provides an easy way to install just the plugins you need, based on your project's dependencies.
66

77
## Install
88

@@ -22,7 +22,7 @@ Extend your `.eslintrc`, with `adjunct`, which should be the last item in the `e
2222
}
2323
```
2424

25-
You can now include `html`, `json` and `markdown` in the list of files passed to esLint to have any contained JavaScript linted.
25+
You can now include `html`, `json` and `markdown` in the list of files passed to `eslint` to lint any JavaScript contained.
2626

2727
```json
2828
{
@@ -35,7 +35,7 @@ You can now include `html`, `json` and `markdown` in the list of files passed to
3535

3636
## Install Dependencies
3737

38-
After you have configured eslint to include this package, the first time you run `eslint` it will output the `npm` command to install the dependancies required for your project. Cut'n'paste this command into the console, and you are then ready to start linting.
38+
After you have configured `eslint` to include this package, the first time you run `eslint` it will output the `npm` command to install the dependencies required for your project. Cut'n'paste this command into the console, and you are then ready to start linting.
3939

4040
## Plugins
4141

@@ -71,7 +71,7 @@ These plugins will be loaded in based on your project `dependencies` in `package
7171

7272
### Prettier
7373

74-
If prettier is installed, any rules that may conflict with Prettier will be disabled. The plugin should read you Prettier config from your projects route.
74+
If prettier is installed, any rules that may conflict with Prettier will be disabled. The plugin should read you Prettier config from your project's root.
7575

7676
- [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier)
7777
- [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier)
@@ -99,7 +99,7 @@ For test files a few [rules](https://github.com/davidjbradshaw/eslint-config-adj
9999

100100
### Switch-Case
101101

102-
Adds the `fallthrough: 'never'` option to the the `newline-between-switch-case` rule.
102+
Adds the `fallthrough: 'never'` option to the `newline-between-switch-case` rule.
103103

104104
```js
105105
// Good
@@ -121,13 +121,15 @@ switch (foo) {
121121

122122
### Disabled rules
123123

124-
The following rules are disabled due to them being considered unduely restrictive or unhelpful.
124+
The following rules are disabled due to them being considered unduly restrictive or unhelpful.
125125

126126
- jest/no-disabled-tests
127127
- react-redux/prefer-separate-component-file
128128
- redux-saga/no-unhandled-errors
129129
- lodash/prefer over native rules
130130
- lodash-fp/use-fp
131+
- unicorn/no-reduce
132+
- unicorn/no-null
131133

132134
The following rules are disabled due to clashing with other plugins
133135

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const depRules = [
3434
'mocha',
3535
'prettier',
3636
]
37+
3738
depRules.forEach((depRule) => {
3839
const rule = typeof depRule === 'string' ? [depRule, depRule] : depRule
3940
if (hasAnyDep(rule[0])) rules.push(rule[1])

rules/unicorn.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ module.exports = {
33
rules: {
44
'unicorn/prefer-exponentiation-operator': 0,
55
'unicorn/regex-shorthand': 0,
6+
'unicorn/no-reduce': 0,
7+
'unicorn/no-null': 0,
68
},
79
}

0 commit comments

Comments
 (0)