Skip to content

Commit

Permalink
chore(eslint): use definate parseOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
a632079 committed Jun 14, 2020
1 parent b206713 commit 9d83a92
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
module.exports = {
extends: "standard",
extends: 'standard',
parserOptions: {
ecmaVersion: '2020',
sourceType: 'script',
ecmaFeatures: {
impliedStrict: true
}
},
env: {
node: true
},
overrides: [
{
files: [
"**/*.test.js"
'**/*.test.js'
],
env: {
jest: true//now **/*.test.js files' env has both es6 *and* jest
jest: true //now **/*.test.js files' env has both es6 *and* jest
},
// Can't extend in overrides: https://github.com/eslint/eslint/issues/8813
//"extends": ["plugin:jest/recommended"]
Expand Down

0 comments on commit 9d83a92

Please sign in to comment.