Skip to content

Commit

Permalink
⬆️ Upgrade to eslint 5.6.1
Browse files Browse the repository at this point in the history
- New rule: `no-async-promise-executor` defaults to `warn`
- New rule: `no-misleading-character-class` defaults to `warn`
- New rule: `require-atomic-updates` defaults to `warn`
- New rule: `require-unicode-regexp` defaults to `warn`
  • Loading branch information
randycoulman committed Oct 12, 2018
1 parent a6402df commit 48a33dc
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 94 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ That way, the `prettier` configurations will override any `zeal` configurations

This plugin contains all of the rules available in:

- [ESLint](http://eslint.org/): 5.1.0
- [ESLint](http://eslint.org/): 5.6.1
- [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react): 7.11.1
- [eslint-plugin-react-native](https://github.com/intellicode/eslint-plugin-react-native): 3.4.0
- [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import): 2.14.0
Expand Down
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ module.exports = {
"for-direction": "warn",
// enforce return statements in getters
"getter-return": "warn",
// disallow using an async function as a Promise executor
"no-async-promise-executor": "warn",
// disallow await inside of loops
"no-await-in-loop": "warn",
// disallow comparing against -0
Expand Down Expand Up @@ -62,6 +64,8 @@ module.exports = {
"no-invalid-regexp": "warn",
// disallow irregular whitespace outside of strings and comments
"no-irregular-whitespace": "warn",
// Disallow characters which are made with multiple code points in character class syntax
"no-misleading-character-class": "warn",
// disallow the use of object properties of the global object (Math and
// JSON) as functions
"no-obj-calls": "warn",
Expand All @@ -82,6 +86,8 @@ module.exports = {
"no-unsafe-finally": "warn",
// disallow negating the left operand of relational operators
"no-unsafe-negation": "warn",
// Disallow assignments that can lead to race conditions due to usage of await or yield
"require-atomic-updates": "warn",
// disallow comparisons with the value NaN
"use-isnan": "warn",
// Ensure JSDoc comments are valid
Expand Down Expand Up @@ -238,6 +244,8 @@ module.exports = {
radix: "warn",
// disallow async functions which have no await expression
"require-await": "warn",
// Enforce the use of u flag on RegExp
"require-unicode-regexp": "warn",
// require declaration of all vars at the top of their containing scope
"vars-on-top": "warn",
// require immediate function invocation to be wrapped in parentheses
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
],
"devDependencies": {
"babel-eslint": "^10.0.1",
"eslint": "5.1.0",
"eslint": "5.6.1",
"eslint-config-prettier": "^3.1.0",
"eslint-find-rules": "^3.3.1",
"eslint-plugin-import": "2.14.0",
Expand All @@ -58,7 +58,7 @@
},
"peerDependencies": {
"babel-eslint": ">=10.0.1",
"eslint": ">=5.1.0",
"eslint": ">=5.6.1",
"eslint-plugin-import": ">=2.14.0"
},
"husky": {
Expand Down
Loading

0 comments on commit 48a33dc

Please sign in to comment.