Skip to content

Commit 4ed93af

Browse files
committed
docs: update docs
1 parent 6abf3e9 commit 4ed93af

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ Then configure the rules you want to use under the rules section.
4545
"check-file/filename-naming-convention":[
4646
"error",
4747
{
48-
"*.{js,jsx,ts,tsx}":"CAMEL_CASE",
49-
"*.json":"KEBAB_CASE"
48+
"*.{jsx,tsx}":"CAMEL_CASE",
49+
"*.{js,ts}":"KEBAB_CASE",
5050
}
5151
],
5252
"check-file/no-index":"error"

docs/rules/filename-naming-convention.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ module.exports = {
5454
],
5555
rules: {
5656
'check-file/filename-naming-convention': ['error', {
57-
'*.{js,jsx,ts,tsx}': 'CAMEL_CASE',
58-
'*.json': 'KEBAB_CASE',
57+
'*.{jsx,tsx}': 'CAMEL_CASE',
58+
'*.{js,ts}': 'KEBAB_CASE',
5959
}],
6060
},
6161
};

lib/utils/filename.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* @param {string} path filename concat with path
1010
*/
1111
const getFilename = (path) => path.substring(path.lastIndexOf('/') + 1);
12-
// TODO: deal with filename in root path
1312

1413
/**
1514
* @type {string} folder

0 commit comments

Comments
 (0)