Skip to content

Commit

Permalink
chore: add decorators-legacy plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ndekeister-us committed May 20, 2022
1 parent 57b839a commit bca3703
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ If you add this configuration to a project using Ember 3.24+ and ESLint 8, you n

```sh
# with npm
npm install eslint @babel/core @babel/eslint-parser --save-dev
npm install eslint @babel/core @babel/eslint-parser @babel/plugin-proposal-decorators --save-dev

# or with yarn
yarn add eslint @babel/core @babel/eslint-parser -D
yarn add eslint @babel/core @babel/eslint-parser @babel/plugin-proposal-decorators -D
```

## Usage
Expand Down
12 changes: 8 additions & 4 deletions ember-core.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
module.exports = {
parser: "@babel/eslint-parser",
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
ecmaVersion: 2021,
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true
},
requireConfigFile: false

requireConfigFile: false,
babelOptions: {
plugins: [['@babel/plugin-proposal-decorators', { legacy: true }]]
}
},
plugins: ["ember", "ember-suave"],
extends: [
Expand Down

0 comments on commit bca3703

Please sign in to comment.