title: eslint 2.x and babel-eslint Doesn't Recognize Decorators
body: <p>I'm trying to upgrade to <code>eslint</code> 2.x and the latest version of <code>babel-eslint</code>. I've been unable to get decorators or class properties to properly lint. I've created a minimal repro shown below:</p>
  
  <p><code>test.js</code></p>
  
  <pre><code>import {decorator} from 'foo';
  
  @decorator('test')
  export class Test {
    testProperty = 'a string';
  }
  </code></pre>
  
  <p><code>package.json</code></p>
  
  <pre><code>{
    "name": "test",
    "version": "1.0.0",
    "description": "",
    "main": "test.js",
    "scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
    },
    "author": "",
    "license": "ISC",
    "devDependencies": {
      "babel": "^6.5.2",
      "babel-eslint": "^6.0.4",
      "babel-plugin-transform-decorators-legacy": "^1.3.4",
      "babel-preset-es2017": "^1.4.0",
      "babel-preset-stage-1": "^6.5.0",
      "eslint": "^2.10.1"
    }
  }
  </code></pre>
  
  <p><code>.babelrc</code></p>
  
  <pre><code>{
    "presets": ["es2017", "stage-1"],
    "plugins": ["transform-decorators-legacy"]
  }
  </code></pre>
  
  <p><code>.eslintrc.json</code>
  {
    "parser": "babel-eslint",
    "parserOptions": {
      "sourceType": "module"
    },
    "rules": {
      "strict": 0
    }
  }</p>
  
  <p>When I run <code>eslint test.js</code> I get the following:</p>
  
  <pre><code>  3:1  error  Parsing error: Unexpected character '@'
  
  ✖ 1 problem (1 error, 0 warnings)
  </code></pre>
  
  <p>If I comment out line 3, then I get this: </p>
  
  <pre><code>  5:16  error  Parsing error: Unexpected token =
  
  ✖ 1 problem (1 error, 0 warnings)
  </code></pre>
  
  <p>It seems that babel-eslint is being used to parse the file, but isn't picking up any information from the <code>.babelrc</code> file.</p>
  
  <p>How do I go about enabling eslint and babel-eslint to successfully parse and then lint this file?</p>