File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,9 @@ This plugin never reports prototype methods by default. Because it's hard to kno
104
104
If you configured the ` aggressive ` mode, this plugin reports prototype methods even if the rules couldn't know the type of objects.
105
105
For example:
106
106
107
- ``` json
107
+ ``` js
108
108
{
109
- "plugins" : [ " es-x" ] ,
109
+ " plugins" : { " es-x" : pluginESx } ,
110
110
" rules" : {
111
111
" es-x/no-string-prototype-codepointat" : " error"
112
112
},
@@ -121,9 +121,9 @@ For example:
121
121
If using this plugin and TypeScript, this plugin reports prototype methods by default because we can easily know types.
122
122
For example:
123
123
124
- ``` json
124
+ ``` js
125
125
{
126
- "plugins" : [ " es-x" ] ,
126
+ " plugins" : { " es-x" : pluginESx } ,
127
127
" parser" : " @typescript-eslint/parser" ,
128
128
" parserOptions" : {
129
129
" project" : " tsconfig.json"
@@ -164,9 +164,9 @@ function trimEnd(str) {
164
164
If you configured the ` allowTestedProperty ` mode, this plugin will allow the use of tested properties.
165
165
For example:
166
166
167
- ``` json
167
+ ``` js
168
168
{
169
- "plugins" : [ " es-x" ] ,
169
+ " plugins" : { " es-x" : pluginESx } ,
170
170
" rules" : {
171
171
" es-x/no-string-prototype-trimstart-trimend" : " error" ,
172
172
" es-x/no-string-prototype-trimleft-trimright" : " error"
You can’t perform that action at this time.
0 commit comments