File tree Expand file tree Collapse file tree 5 files changed +6529
-0
lines changed Expand file tree Collapse file tree 5 files changed +6529
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Logs
2
+ logs
3
+ * .log
4
+ npm-debug.log *
5
+ yarn-debug.log *
6
+ yarn-error.log *
7
+
8
+ # Runtime data
9
+ pids
10
+ * .pid
11
+ * .seed
12
+ * .pid.lock
13
+
14
+ # Directory for instrumented libs generated by jscoverage/JSCover
15
+ lib-cov
16
+
17
+ # Coverage directory used by tools like istanbul
18
+ coverage
19
+
20
+ # nyc test coverage
21
+ .nyc_output
22
+
23
+ # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24
+ .grunt
25
+
26
+ # Bower dependency directory (https://bower.io/)
27
+ bower_components
28
+
29
+ # node-waf configuration
30
+ .lock-wscript
31
+
32
+ # Compiled binary addons (http://nodejs.org/api/addons.html)
33
+ build /Release
34
+
35
+ # Dependency directories
36
+ node_modules /
37
+ jspm_packages /
38
+
39
+ # Typescript v1 declaration files
40
+ typings /
41
+
42
+ # Optional npm cache directory
43
+ .npm
44
+
45
+ # Optional eslint cache
46
+ .eslintcache
47
+
48
+ # Optional REPL history
49
+ .node_repl_history
50
+
51
+ # Output of 'npm pack'
52
+ * .tgz
53
+
54
+ # dotenv environment variables file
55
+ .env
56
+
57
+ # lib files
58
+ lib /
59
+
60
+ # Mac files
61
+ .DS_Store
62
+
63
+ # Yarn
64
+ yarn-error.log
65
+ .pnp /
66
+ .pnp.js
67
+ # Yarn Integrity file
68
+ .yarn-integrity
Original file line number Diff line number Diff line change
1
+ # eslint-plugin-testing-library
2
+
3
+ ESLint plugin for Testing Library
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-testing-library ` :
14
+
15
+ ```
16
+ $ npm install eslint-plugin-testing-library --save-dev
17
+ ```
18
+
19
+ ** Note:** If you installed ESLint globally (using the ` -g ` flag) then you must also install ` eslint-plugin-testing-library ` globally.
20
+
21
+ ## Usage
22
+
23
+ Add ` testing-library ` to the plugins section of your ` .eslintrc ` configuration file. You can omit the ` eslint-plugin- ` prefix:
24
+
25
+ ``` json
26
+ {
27
+ "plugins" : [
28
+ " testing-library"
29
+ ]
30
+ }
31
+ ```
32
+
33
+
34
+ Then configure the rules you want to use under the rules section.
35
+
36
+ ``` json
37
+ {
38
+ "rules" : {
39
+ "testing-library/rule-name" : 2
40
+ }
41
+ }
42
+ ```
43
+
44
+ ## Supported Rules
45
+
46
+ * Fill in provided rules here
47
+
48
+
49
+
50
+
51
+
You can’t perform that action at this time.
0 commit comments