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
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,7 @@ Rules are grouped by category to help you understand their purpose. Each rule ha
108
108
|:white_check_mark:|[no-new-mixins](./docs/rules/no-new-mixins.md)| disallow the creation of new mixins |
109
109
|:white_check_mark:|[no-observers](./docs/rules/no-observers.md)| disallow usage of observers |
110
110
|:white_check_mark::wrench:|[no-old-shims](./docs/rules/no-old-shims.md)| disallow usage of old shims for modules |
111
-
||[no-string-prototype-extensions](./docs/rules/no-string-prototype-extensions.md)| disallow usage of `String` prototype extensions |
111
+
|:white_check_mark:|[no-string-prototype-extensions](./docs/rules/no-string-prototype-extensions.md)| disallow usage of `String` prototype extensions |
112
112
113
113
### Ember Data
114
114
@@ -125,7 +125,7 @@ Rules are grouped by category to help you understand their purpose. Each rule ha
125
125
|:white_check_mark::wrench:|[no-get-with-default](./docs/rules/no-get-with-default.md)| disallow usage of the Ember's `getWithDefault` function |
126
126
|:white_check_mark::wrench:|[no-get](./docs/rules/no-get.md)| require using ES5 getters instead of Ember's `get` / `getProperties` functions |
127
127
||[no-proxies](./docs/rules/no-proxies.md)| disallow using array or object proxies |
128
-
||[no-try-invoke](./docs/rules/no-try-invoke.md)| disallow usage of the Ember's `tryInvoke` util |
128
+
|:white_check_mark:|[no-try-invoke](./docs/rules/no-try-invoke.md)| disallow usage of the Ember's `tryInvoke` util |
129
129
|:white_check_mark::wrench:|[require-super-in-lifecycle-hooks](./docs/rules/require-super-in-lifecycle-hooks.md)| require super to be called in lifecycle hooks |
130
130
|:wrench:|[use-ember-get-and-set](./docs/rules/use-ember-get-and-set.md)| enforce usage of `Ember.get` and `Ember.set`|
131
131
@@ -138,7 +138,7 @@ Rules are grouped by category to help you understand their purpose. Each rule ha
138
138
|:car:|[no-actions-hash](./docs/rules/no-actions-hash.md)| disallow the actions hash in components, controllers, and routes |
139
139
|:car:|[no-classic-classes](./docs/rules/no-classic-classes.md)| disallow "classic" classes in favor of native JS classes |
140
140
|:white_check_mark::wrench:|[no-ember-super-in-es-classes](./docs/rules/no-ember-super-in-es-classes.md)| disallow use of `this._super` in ES class methods |
141
-
||[no-empty-glimmer-component-classes](./docs/rules/no-empty-glimmer-component-classes.md)| disallow empty backing classes for Glimmer components |
141
+
|:white_check_mark:|[no-empty-glimmer-component-classes](./docs/rules/no-empty-glimmer-component-classes.md)| disallow empty backing classes for Glimmer components |
142
142
143
143
### jQuery
144
144
@@ -164,7 +164,7 @@ Rules are grouped by category to help you understand their purpose. Each rule ha
164
164
|:white_check_mark:|[no-capital-letters-in-routes](./docs/rules/no-capital-letters-in-routes.md)| disallow routes with uppercased letters in router.js |
165
165
|:white_check_mark:|[no-controller-access-in-routes](./docs/rules/no-controller-access-in-routes.md)| disallow routes from accessing the controller outside of setupController/resetController |
166
166
|:white_check_mark:|[no-private-routing-service](./docs/rules/no-private-routing-service.md)| disallow injecting the private routing service |
167
-
||[no-shadow-route-definition](./docs/rules/no-shadow-route-definition.md)| enforce no route path definition shadowing |
167
+
|:white_check_mark:|[no-shadow-route-definition](./docs/rules/no-shadow-route-definition.md)| enforce no route path definition shadowing |
|:white_check_mark::wrench:|[no-unnecessary-route-path-option](./docs/rules/no-unnecessary-route-path-option.md)| disallow unnecessary usage of the route `path` option |
170
170
||[route-path-style](./docs/rules/route-path-style.md)| enforce usage of kebab-case (instead of snake_case or camelCase) in route paths |
@@ -191,14 +191,14 @@ Rules are grouped by category to help you understand their purpose. Each rule ha
191
191
|:white_check_mark:|[no-pause-test](./docs/rules/no-pause-test.md)| disallow usage of the `pauseTest` helper in tests |
192
192
||[no-replace-test-comments](./docs/rules/no-replace-test-comments.md)| disallow 'Replace this with your real tests' comments in test files |
193
193
|:white_check_mark:|[no-restricted-resolver-tests](./docs/rules/no-restricted-resolver-tests.md)| disallow the use of patterns that use the restricted resolver in tests |
194
-
|:wrench:|[no-settled-after-test-helper](./docs/rules/no-settled-after-test-helper.md)| disallow usage of `await settled()` right after test helper that calls it internally |
194
+
|:white_check_mark::wrench:|[no-settled-after-test-helper](./docs/rules/no-settled-after-test-helper.md)| disallow usage of `await settled()` right after test helper that calls it internally |
195
195
|:white_check_mark:|[no-test-and-then](./docs/rules/no-test-and-then.md)| disallow usage of the `andThen` test wait helper |
196
196
|:white_check_mark:|[no-test-import-export](./docs/rules/no-test-import-export.md)| disallow importing of "-test.js" in a test file and exporting from a test file |
197
197
|:white_check_mark:|[no-test-module-for](./docs/rules/no-test-module-for.md)| disallow usage of `moduleFor`, `moduleForComponent`, etc |
198
-
||[no-test-support-import](./docs/rules/no-test-support-import.md)| disallow importing of "test-support" files in production code. |
198
+
|:white_check_mark:|[no-test-support-import](./docs/rules/no-test-support-import.md)| disallow importing of "test-support" files in production code. |
199
199
|:white_check_mark:|[no-test-this-render](./docs/rules/no-test-this-render.md)| disallow usage of the `this.render` in tests, recommending to use @ember/test-helpers' `render` instead. |
200
200
|:white_check_mark:|[prefer-ember-test-helpers](./docs/rules/prefer-ember-test-helpers.md)| enforce usage of `@ember/test-helpers` methods over native window methods |
201
-
|:wrench:|[require-valid-css-selector-in-test-helpers](./docs/rules/require-valid-css-selector-in-test-helpers.md)| disallow using invalid CSS selectors in test helpers |
201
+
|:white_check_mark::wrench:|[require-valid-css-selector-in-test-helpers](./docs/rules/require-valid-css-selector-in-test-helpers.md)| disallow using invalid CSS selectors in test helpers |
Copy file name to clipboardExpand all lines: docs/rules/no-settled-after-test-helper.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# no-settled-after-test-helper
2
2
3
+
:white_check_mark: The `"extends": "plugin:ember/recommended"` property in a configuration file enables this rule.
4
+
3
5
:wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
Copy file name to clipboardExpand all lines: docs/rules/no-test-support-import.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# no-test-support-import
2
2
3
+
:white_check_mark: The `"extends": "plugin:ember/recommended"` property in a configuration file enables this rule.
4
+
3
5
No importing of test support files into non-test code..
4
6
5
7
**TL;DR** Do not import from a file located in addon-test-support into non-test code. Doing so will result in production errors that are not capable of being caught in tests as require statements are available in tests but not on production builds.
Copy file name to clipboardExpand all lines: docs/rules/require-valid-css-selector-in-test-helpers.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# require-valid-css-selector-in-test-helpers
2
2
3
+
:white_check_mark: The `"extends": "plugin:ember/recommended"` property in a configuration file enables this rule.
4
+
3
5
:wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
4
6
5
7
Test helpers and querySelector methods should be called with valid CSS selectors. Most of the time invalid selectors will result in a failing test but that is not always the case.
0 commit comments