Skip to content

Commit

Permalink
Tweak eslint config to support ES2018.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed May 16, 2019
1 parent 0461822 commit cad11e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
root: true,
parserOptions: {
sourceType: 'script',
ecmaVersion: 2015
ecmaVersion: 2018
},
plugins: [
'node',
Expand All @@ -17,11 +17,7 @@ module.exports = {
node: true
},
rules: {
'prettier/prettier': ['error', {
singleQuote: true,
trailingComma: 'es5',
printWidth: 100,
}],
'prettier/prettier': 'error',
},
overrides: [
// test files
Expand Down
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"trailingComma": 'es5',
"printWidth": 100
}

0 comments on commit cad11e9

Please sign in to comment.