Skip to content

Commit

Permalink
Fix parserOptions for TS
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Oct 28, 2022
1 parent f7b3c9c commit d7ea1b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/__addonLocation__/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ module.exports = {
root: true,
parser: '<%= typescript ? '@typescript-eslint/parser' : '@babel/eslint-parser' %>',
parserOptions: {
ecmaVersion: 'latest',
ecmaVersion: 'latest',<% if (!typescript) { %>
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true,
},
babelOptions: {
root: __dirname,
},
},<% } %>
},
plugins: ['ember'],
extends: [
Expand Down

0 comments on commit d7ea1b6

Please sign in to comment.