Skip to content

Commit

Permalink
fix(javascript): fixed parserOptions for projects that still use java…
Browse files Browse the repository at this point in the history
…script
  • Loading branch information
mlaursen committed Feb 17, 2021
1 parent 660a476 commit b680b2a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ const confusingBrowserGlobals = require('confusing-browser-globals');

module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
modules: true,
},
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
Expand Down

0 comments on commit b680b2a

Please sign in to comment.