Skip to content

Commit

Permalink
fix(decorators): enable legacy decorators
Browse files Browse the repository at this point in the history
This is not needed once babel-eslint@11 is out. Afterwards, the plugin settings will be sufficient:

["@babel/plugin-proposal-decorators", { "legacy": true }],
  • Loading branch information
Rob McGuinness committed Feb 7, 2019
1 parent 49837a7 commit 072cb68
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions browser.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
const base = require('./base');

module.exports = {
extends: ['airbnb', 'plugin:promise/recommended', 'plugin:jest/recommended', 'prettier', 'prettier/react','plugin:unicorn/recommended'],
extends: [
'airbnb',
'plugin:promise/recommended',
'plugin:jest/recommended',
'prettier',
'prettier/react',
'plugin:unicorn/recommended',
],

plugins: ['promise', 'jest', 'promise','unicorn'],
plugins: ['promise', 'jest', 'promise', 'unicorn'],
parser: 'babel-eslint',

parserOptions: {
sourceType: 'module',
ecmaFeatures: { legacyDecorators: true }, // This goes away with babel-eslint@11 https://github.com/babel/babel-eslint/issues/662#issuecomment-459712913
},

globals: {
Expand Down

0 comments on commit 072cb68

Please sign in to comment.