Skip to content

Commit 7f732b6

Browse files
Update dependency eslint-config-standard to v16 (#191)
Co-authored-by: Caleb Eby <caleb.eby01@gmail.com>
1 parent b71c9f5 commit 7f732b6

4 files changed

Lines changed: 17 additions & 12 deletions

File tree

.changeset/seven-ducks-hear.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@cloudfour/eslint-plugin': major
3+
---
4+
5+
Update `eslint-config-standard` to `16.0.1`
6+
7+
- Remove `eslint-plugin-standard` since all of the rules from it now live in other plugins
8+
- `camelcase` rule now allows variables starting with `UNSAFE_` (from react) and known globals
9+
- `no-unused-vars` now ignores unused caught errors (`unicorn/prefer-optional-catch-binding` handles this use case)
10+
- `prefer-regex-literals`: Enabled [`disallowRedundantWrapping` option](https://eslint.org/docs/rules/prefer-regex-literals#disallowredundantwrapping)
11+
- `array-callback-return`: Change [`allowImplicit`](https://eslint.org/docs/rules/array-callback-return#allowimplicit) to `false`.
12+
- `use-isnan`: Change [`enforceForIndexOf`](https://eslint.org/docs/rules/use-isnan#enforceforindexof) to `true`.
13+
-

package-lock.json

Lines changed: 3 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"eslint-plugin-jsdoc": "^30.0.0",
3737
"eslint-plugin-node": "^11.0.0",
3838
"eslint-plugin-promise": "^4.0.1",
39-
"eslint-plugin-standard": "^4.0.0",
4039
"eslint-plugin-unicorn": "^22.0.0"
4140
},
4241
"peerDependencies": {
@@ -48,7 +47,7 @@
4847
"eliminate": "1.1.2",
4948
"eslint": "7.12.1",
5049
"eslint-config-prettier": "6.15.0",
51-
"eslint-config-standard": "15.0.1",
50+
"eslint-config-standard": "16.0.1",
5251
"eslint-config-xo": "0.33.1",
5352
"eslint-formatter-pretty": "4.0.0",
5453
"kleur": "4.1.3",

src/rules.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const node = require('eslint-plugin-node').rules;
22
const eslintImport = require('eslint-plugin-import').rules;
3-
const standard = require('eslint-plugin-standard').rules;
43
const promise = require('eslint-plugin-promise').rules;
54
const unicorn = require('eslint-plugin-unicorn').rules;
65
const jsdoc = require('eslint-plugin-jsdoc').rules;
@@ -24,7 +23,6 @@ const hoist = (prefix, rules) =>
2423
const rules = {
2524
...hoist('node', node),
2625
...hoist('import', eslintImport),
27-
...hoist('standard', standard),
2826
...hoist('promise', promise),
2927
...hoist('unicorn', unicorn),
3028
...hoist('jsdoc', jsdoc),

0 commit comments

Comments
 (0)