From 23eb1a06aa44d6e3a711c6b154c3d0de795f4b7a Mon Sep 17 00:00:00 2001 From: NEU-HaodongLi <14992521+neu-haodongli@user.noreply.gitee.com> Date: Wed, 9 Oct 2024 10:23:37 +0000 Subject: [PATCH] update js-compatibiitiy/conf/.eslintrc.yml. --- js-compatibiitiy/conf/.eslintrc.yml | 48 ++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/js-compatibiitiy/conf/.eslintrc.yml b/js-compatibiitiy/conf/.eslintrc.yml index 63f342b..be2a1b6 100644 --- a/js-compatibiitiy/conf/.eslintrc.yml +++ b/js-compatibiitiy/conf/.eslintrc.yml @@ -28,6 +28,51 @@ rules: - escape - unescape - eval + no-restricted-syntax: + - error + - selector: MemberExpression[object.name='fs'] + - selector: MemberExpression[object.name='assert'] + - selector: MemberExpression[object.name='async_hooks'] + - selector: MemberExpression[object.name='buffer'] + - selector: MemberExpression[object.name='child_process'] + - selector: MemberExpression[object.name='cluster'] + - selector: MemberExpression[object.name='console'] + - selector: MemberExpression[object.name='constants'] + - selector: MemberExpression[object.name='crypto'] + - selector: MemberExpression[object.name='dgram'] + - selector: MemberExpression[object.name='diagnostics_channel'] + - selector: MemberExpression[object.name='dns'] + - selector: MemberExpression[object.name='domain'] + - selector: MemberExpression[object.name='events'] + - selector: MemberExpression[object.name='http'] + - selector: MemberExpression[object.name='http2'] + - selector: MemberExpression[object.name='https'] + - selector: MemberExpression[object.name='inspector'] + - selector: MemberExpression[object.name='module'] + - selector: MemberExpression[object.name='net'] + - selector: MemberExpression[object.name='os'] + - selector: MemberExpression[object.name='path'] + - selector: MemberExpression[object.name='perf_hooks'] + - selector: MemberExpression[object.name='process'] + - selector: MemberExpression[object.name='punycode'] + - selector: MemberExpression[object.name='querystring'] + - selector: MemberExpression[object.name='readline'] + - selector: MemberExpression[object.name='repl'] + - selector: MemberExpression[object.name='stream'] + - selector: MemberExpression[object.name='string_decoder'] + - selector: MemberExpression[object.name='test'] + - selector: MemberExpression[object.name='timers'] + - selector: MemberExpression[object.name='tls'] + - selector: MemberExpression[object.name='trace_events'] + - selector: MemberExpression[object.name='tty'] + - selector: MemberExpression[object.name='url'] + - selector: MemberExpression[object.name='util'] + - selector: MemberExpression[object.name='v8'] + - selector: MemberExpression[object.name='vm'] + - selector: MemberExpression[object.name='wasi'] + - selector: MemberExpression[object.name='worker_threads'] + - selector: MemberExpression[object.name='zlib'] + - selector: MemberExpression[object.name='sqlite'] no-restricted-modules: - error - assert @@ -71,4 +116,5 @@ rules: - vm - wasi - worker_threads - - zlib \ No newline at end of file + - zlib + - sqlite \ No newline at end of file -- Gitee