|
1 | | -# eslint-plugin-testcafe-community |
2 | | - |
3 | | -ESLint rules for [testcafe](https://github.com/DevExpress/testcafe) from the testcafe community. |
4 | | - |
5 | | -## Installation |
6 | | - |
7 | | -You'll first need to install [ESLint](http://eslint.org): |
8 | | - |
9 | | -``` |
10 | | -npm i eslint --save-dev |
11 | | -``` |
12 | | - |
13 | | -Next, install `eslint-plugin-testcafe-community`: |
14 | | - |
15 | | -``` |
16 | | -npm install eslint-plugin-testcafe-community --save-dev |
17 | | -``` |
18 | | - |
19 | | -**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-testcafe-community` globally. |
20 | | - |
21 | | -## Recommended configuration |
22 | | - |
23 | | -This plugin export a recommended configuration that enforce good practices. |
24 | | - |
25 | | -To enable this configuration use the extends property in your .eslintrc config file: |
26 | | - |
27 | | -``` |
28 | | -{ |
29 | | - "plugins": [ |
30 | | - "testcafe-community" |
31 | | - ], |
32 | | - "extends": "plugin:testcafe-community/recommended" |
33 | | -} |
34 | | -``` |
35 | | - |
36 | | -See [ESLint documentation](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) for more information about extending configuration files. |
37 | | - |
38 | | -## Supported Rules |
39 | | - |
40 | | -✔️ indicates that a rule is recommended for all users. |
41 | | - |
42 | | -🛠 indicates that a rule is fixable. |
43 | | - |
| 1 | +# eslint-plugin-testcafe-community |
| 2 | + |
| 3 | +ESLint rules for [testcafe](https://github.com/DevExpress/testcafe) from the |
| 4 | +testcafe community. |
| 5 | + |
| 6 | +## Installation |
| 7 | + |
| 8 | +You'll first need to install [ESLint](http://eslint.org): |
| 9 | + |
| 10 | +```sh |
| 11 | +npm i eslint --save-dev |
| 12 | +``` |
| 13 | + |
| 14 | +Next, install `eslint-plugin-testcafe-community`: |
| 15 | + |
| 16 | +```sh |
| 17 | +npm install eslint-plugin-testcafe-community --save-dev |
| 18 | +``` |
| 19 | + |
| 20 | +**Note:** If you installed ESLint globally (using the `-g` flag) then you must |
| 21 | +also install `eslint-plugin-testcafe-community` globally. |
| 22 | + |
| 23 | +## Recommended configuration |
| 24 | + |
| 25 | +This plugin export a recommended configuration that enforce good practices. |
| 26 | + |
| 27 | +To enable this configuration use the extends property in your .eslintrc config |
| 28 | +file: |
| 29 | + |
| 30 | +```json |
| 31 | +{ |
| 32 | + "plugins": ["testcafe-community"], |
| 33 | + "extends": "plugin:testcafe-community/recommended" |
| 34 | +} |
| 35 | +``` |
| 36 | + |
| 37 | +See |
| 38 | +[ESLint documentation](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) |
| 39 | +for more information about extending configuration files. |
| 40 | + |
| 41 | +## Supported Rules |
| 42 | + |
| 43 | +✔️ indicates that a rule is recommended for all users. |
| 44 | + |
| 45 | +🛠 indicates that a rule is fixable. |
| 46 | + |
44 | 47 | <!-- __BEGIN AUTOGENERATED RULES TABLE__ --> |
45 | | -| Name | ✔️ | 🛠 | Description | |
46 | | -| ----- | ----- | ----- | ----------- | |
47 | | -| [expectExpect](https://github.com/testcafe-community/eslint-plugin-testcafe-community/blob/master/docs/rules/expectExpect.md) | ✔️ | | Ensure tests have at least one expect | |
48 | | -| [noDebug](https://github.com/testcafe-community/eslint-plugin-testcafe-community/blob/master/docs/rules/noDebug.md) | ✔️ | | Don't allow `t.debug()` to be committed to the repository. | |
49 | | -| [noIdenticalTitle](https://github.com/testcafe-community/eslint-plugin-testcafe-community/blob/master/docs/rules/noIdenticalTitle.md) | ✔️ | | Don't use identical titles for your tests | |
50 | | -| [noOnly](https://github.com/testcafe-community/eslint-plugin-testcafe-community/blob/master/docs/rules/noOnly.md) | ✔️ | | Don't allow `test.only` to be added to the repository | |
51 | | -| [noSkip](https://github.com/testcafe-community/eslint-plugin-testcafe-community/blob/master/docs/rules/noSkip.md) | ✔️ | | Don't allow `test.skip` or `fixture.skip` to be added to the repository | |
52 | | -<!-- __END AUTOGENERATED RULES TABLE__ --> |
| 48 | + |
| 49 | +| Name | ✔️ | 🛠 | Description | |
| 50 | +| ------------------------------------------------------------------------------------------------------------------------------------- | --- | --- | ----------------------------------------------------------------------- | |
| 51 | +| [expectExpect](https://github.com/testcafe-community/eslint-plugin-testcafe-community/blob/master/docs/rules/expectExpect.md) | ✔️ | | Ensure tests have at least one expect | |
| 52 | +| [noDebug](https://github.com/testcafe-community/eslint-plugin-testcafe-community/blob/master/docs/rules/noDebug.md) | ✔️ | | Don't allow `t.debug()` to be committed to the repository. | |
| 53 | +| [noIdenticalTitle](https://github.com/testcafe-community/eslint-plugin-testcafe-community/blob/master/docs/rules/noIdenticalTitle.md) | ✔️ | | Don't use identical titles for your tests | |
| 54 | +| [noOnly](https://github.com/testcafe-community/eslint-plugin-testcafe-community/blob/master/docs/rules/noOnly.md) | ✔️ | | Don't allow `test.only` to be added to the repository | |
| 55 | +| [noSkip](https://github.com/testcafe-community/eslint-plugin-testcafe-community/blob/master/docs/rules/noSkip.md) | ✔️ | | Don't allow `test.skip` or `fixture.skip` to be added to the repository | |
| 56 | + |
| 57 | +<!-- __END AUTOGENERATED RULES TABLE__ --> |
0 commit comments