You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-15Lines changed: 29 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,26 +12,40 @@ This adds more guard rails for Ember. Just because something "works" does not me
12
12
# Why
13
13
As we've scaled out to over hundreds developers and hundrends of lines of code it has become clear that more "development time" guidance is required. While the guides do a good job about getting started, it's good to have some friction to make sure the app code is aligned with how Ember works.
14
14
15
-
## Installation
15
+
## Using the plugin with Ember CLI
16
16
17
-
*`git clone <repository-url>` this repository
18
-
*`cd ember-strict-mode`
19
-
*`npm install`
20
-
*`bower install`
17
+
### Installation
21
18
22
-
## Running
19
+
Install the plugin as a dev dependency in your Ember CLI project.
23
20
24
-
*`ember serve`
25
-
* Visit your app at [http://localhost:4200](http://localhost:4200).
21
+
```
22
+
npm install --save-dev eslint-plugin-ember-suave
23
+
```
26
24
27
-
## Running Tests
25
+
This will make the plugin available to ESLint.
28
26
29
-
*`npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
30
-
*`ember test`
31
-
*`ember test --server`
27
+
Next, install the [ember-cli-eslint](https://github.com/ember-cli/ember-cli-eslint) addon so that your app can be linted during development and testing. This will also uninstall [ember-cli-jshint](https://github.com/ember-cli/ember-cli-jshint) since there is no need to have both linters running at the same time.
32
28
33
-
## Building
29
+
```
30
+
ember install ember-cli-eslint
31
+
```
34
32
35
-
*`ember build`
33
+
### Configuration
36
34
37
-
For more information on using ember-cli, visit [http://ember-cli.com/](http://ember-cli.com/).
35
+
The `ember-cli-eslint` addon blueprint generates a .eslintrc.js configuration file at the root of the project.
36
+
37
+
Add the plugin's [recommended](https://github.com/chadhietala/eslint-plugin-ember-best-practices/blob/master/config/recommended.js) configuration to the list of extensions:
0 commit comments