Skip to content

Commit

Permalink
Bump ecmaVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 19, 2019
1 parent 44e38ed commit 6bce418
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
es6: true
},
parserOptions: {
ecmaVersion: 2019,
ecmaVersion: 2020,
sourceType: 'module'
},
plugins: [
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 @@
"chalk": "^2.4.2",
"codecov": "^3.5.0",
"del": "^5.0.0",
"eslint": "^6.0.0",
"eslint": "^6.2.0",
"eslint-ava-rule-tester": "^3.0.0",
"eslint-plugin-eslint-plugin": "2.1.0",
"execa": "^2.0.4",
Expand All @@ -57,7 +57,7 @@
"xo": "^0.24.0"
},
"peerDependencies": {
"eslint": ">=6"
"eslint": ">=6.2.0"
},
"ava": {
"files": [
Expand Down
7 changes: 1 addition & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Configure it in `package.json`.
"es6": true
},
"parserOptions": {
"ecmaVersion": 2019,
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
Expand Down Expand Up @@ -128,8 +128,3 @@ Enable it in your `package.json` with the `extends` option:
See the [ESLint docs](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) for more information about extending config files.

**Note**: This config will also enable the correct [parser options](http://eslint.org/docs/user-guide/configuring#specifying-parser-options) and [environment](http://eslint.org/docs/user-guide/configuring#specifying-environments).


## License

MIT
2 changes: 1 addition & 1 deletion test/no-async-fn-without-await.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const header = 'const test = require(\'ava\');\n';
const ruleTesterOptions = [
{
parserOptions: {
ecmaVersion: 2019
ecmaVersion: 2020
}
}
// Disabled for now because of `eslint-ava-rule-tester` problem
Expand Down
2 changes: 1 addition & 1 deletion test/prefer-power-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ruleTester = avaRuleTester(test, {
es6: true
},
parserOptions: {
ecmaVersion: 2019,
ecmaVersion: 2020,
sourceType: 'module'
}
});
Expand Down

0 comments on commit 6bce418

Please sign in to comment.