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: docs/rules/no-unused-keys.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
@@ -159,6 +159,7 @@ i18n.t('hi')
159
159
{
160
160
"src": "./src",
161
161
"extensions": [".js", ".vue"],
162
+
"ignores": [],
162
163
"enableFix": false
163
164
}
164
165
]
@@ -167,6 +168,7 @@ i18n.t('hi')
167
168
168
169
-`src`: specify the source codes directory to be able to lint. If you don't set any options, it set to `process.cwd()` as default.
169
170
-`extensions`: an array to allow specified lintable target file extension. If you don't set any options, it set to `.js` and `.vue` as default.
171
+
-`ignores`: An array of key names and patterns to exclude from the check. If you want to specify a pattern, specify a string such as `/pattern/`.
170
172
-`enableFix`: if `true`, enable automatically remove unused keys on `eslint --fix`. If you don't set any options, it set to `false` as default. (This is an experimental feature.)
0 commit comments