Skip to content

Commit

Permalink
chore: enable es2018 in eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
emilianobovetti committed Nov 19, 2019
1 parent d091dd4 commit e5b8071
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
12 changes: 10 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
'shared-node-browser': true,
},
parserOptions: {
ecmaVersion: 6,
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
Expand All @@ -35,7 +35,15 @@ module.exports = {
'block-spacing': [error, 'always'],
'brace-style': [error, '1tbs'],
'capitalized-comments': off,
'comma-dangle': [error, 'always-multiline'],
'comma-dangle': [
error, {
'arrays': 'always-multiline',
'objects': 'always-multiline',
'imports': 'always-multiline',
'exports': 'always-multiline',
'functions': 'never',
},
],
'computed-property-spacing': [error, 'never'],
'consistent-this': [error, 'that'],
'func-call-spacing': [error, 'never'],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
]
},
"dependencies": {
"@fpc/types": "^0.0.3"
"@fpc/types": "^0.0.6"
},
"devDependencies": {
"@babel/core": "^7.7.2",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -665,10 +665,10 @@
exec-sh "^0.3.2"
minimist "^1.2.0"

"@fpc/types@^0.0.3":
version "0.0.3"
resolved "https://registry.yarnpkg.com/@fpc/types/-/types-0.0.3.tgz#466800f7cb8932bac230f8bba73a2c5fcb774b83"
integrity sha512-VLhB3bG8bpyitu1if8z89iClKRawCKjBDSN9S6CKb8TSj3v7YzciNB1cECcxHw4noG1jNi4ogcbN8N5sw9nr5g==
"@fpc/types@^0.0.6":
version "0.0.6"
resolved "https://registry.yarnpkg.com/@fpc/types/-/types-0.0.6.tgz#9b5be25d6c9a71e60daccb5f8f04d63ccd833448"
integrity sha512-qHQFZd6o7FdhCb/olIkvuBBDXS8JraSpIUWomPDmTHCUy+CBqlhccWK8/RMNBxjAjZTuqsK0uebuC6yY84jzHg==

"@jest/console@^24.7.1", "@jest/console@^24.9.0":
version "24.9.0"
Expand Down

0 comments on commit e5b8071

Please sign in to comment.