Skip to content

Commit

Permalink
Merge pull request #522 from ckeditor/t/521
Browse files Browse the repository at this point in the history
### Suggested merge commit message ([convention](https://github.com/ckeditor/ckeditor5-design/wiki/Git-commit-message-convention))

Other: Updated `ecmaVersion` from `es6` to `es2018` (`es9`). Changed the `space-before-function-paren` rule to preserve spaces before async arrow functions. Closes #521.

BREAKING CHANGE: The space before the parenthesis will be required by linter.
  • Loading branch information
jodator committed May 31, 2019
2 parents 261fb1e + f170c5e commit db7fb18
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/eslint-config-ckeditor5/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
module.exports = {
extends: 'eslint:recommended',
parserOptions: {
ecmaVersion: 6,
ecmaVersion: 2018,
sourceType: 'module'
},
env: {
Expand Down Expand Up @@ -230,7 +230,11 @@ module.exports = {
],
'space-before-function-paren': [
'error',
'never'
{
anonymous: 'never',
named: 'never',
asyncArrow: 'always'
}
],
'space-infix-ops': 'error',
'space-in-parens': [
Expand Down

0 comments on commit db7fb18

Please sign in to comment.