Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #107 from alexlafroscia/remove-babel-parser-from-d…
Browse files Browse the repository at this point in the history
…efault-config

Remove `babel` as the default parser
  • Loading branch information
Turbo87 authored Aug 23, 2016
2 parents b4659db + bd37772 commit 519180e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ ESLinting for Ember CLI apps, [ESLint](http://eslint.org/) provides a scriptable
ember install ember-cli-eslint
```

This will create a `.eslintrc.js` file in the root of your project, and another `.eslintrc.js` file inside of `/test`. These files extend from our recommended configurations for [Ember application code](/coding-standard/ember-application.js) and [Ember testing code](/coding-standard/ember-testing.js), respectively. However, starting from scratch is as easy as deleting the `extends` declaration and [writing your own configuration rules as usual](http://eslint.org/docs/user-guide/configuring).
After installation, an `.eslintrc.js` file will be placed in both the root of your project and the `/tests` directory.

## Disabling JSHint

Congratulations! You've made the leap into the next generation of JavaScript linting. At the moment, however, `ember-cli` defaults to generating applications and addons with a `jshint` configuration, and so you may initially notice the two awkwardly running side by side. Here are a few tips for handling this:

#### ember-cli >= 2.5.0
Expand Down
14 changes: 11 additions & 3 deletions blueprints/ember-cli-eslint/files/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
module.exports = {
extends: [
require.resolve('ember-cli-eslint/coding-standard/ember-application')
]
root: true,
parserOptions: {
ecmaVersion: 6,
sourceType: 'module'
},
extends: 'eslint:recommended',
env: {
'browser': true
},
rules: {
}
};
4 changes: 3 additions & 1 deletion blueprints/ember-cli-eslint/files/tests/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module.exports = {
extends: require.resolve('ember-cli-eslint/coding-standard/ember-testing')
env: {
'embertest': true
}
};

0 comments on commit 519180e

Please sign in to comment.