From 072cb681c5f84a3def7e51b2514aef1b9f62837d Mon Sep 17 00:00:00 2001 From: Rob McGuinness Date: Thu, 7 Feb 2019 00:13:03 -0500 Subject: [PATCH] fix(decorators): enable legacy decorators This is not needed once babel-eslint@11 is out. Afterwards, the plugin settings will be sufficient: ["@babel/plugin-proposal-decorators", { "legacy": true }], --- browser.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/browser.js b/browser.js index e00bdb3..6aecc29 100644 --- a/browser.js +++ b/browser.js @@ -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: {