Skip to content

Commit aa923fb

Browse files
feat: check for deprecated fs constants
1 parent 3ba70ae commit aa923fb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

scripts/check_modules.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,22 @@ def check_modules():
4747
"name": "Replace it by `eslint-plugin-jsonc`.",
4848
"category": "Recommendation",
4949
},
50+
"fs.F_OK": {
51+
"name": "Replace it with `fs.constants.F_OK`.",
52+
"category": "Deprecated",
53+
},
54+
"fs.R_OK": {
55+
"name": "Replace it with `fs.constants.R_OK`.",
56+
"category": "Deprecated",
57+
},
58+
"fs.W_OK": {
59+
"name": "Replace it with `fs.constants.W_OK`.",
60+
"category": "Deprecated",
61+
},
62+
"fs.X_OK": {
63+
"name": "Replace it with `fs.constants.X_OK`.",
64+
"category": "Deprecated",
65+
},
5066
"Magic Mirror": {
5167
"name": "Replace it with `MagicMirror²`.",
5268
"category": "Typo",

0 commit comments

Comments
 (0)