mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
6934792eb3
PR-URL: https://github.com/nodejs/node/pull/18566 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
24 lines
629 B
YAML
24 lines
629 B
YAML
## Test-specific linter rules
|
|
|
|
rules:
|
|
# ECMAScript 6
|
|
# http://eslint.org/docs/rules/#ecmascript-6
|
|
no-var: error
|
|
prefer-const: error
|
|
symbol-description: off
|
|
|
|
# Custom rules in tools/eslint-rules
|
|
node-core/prefer-assert-iferror: error
|
|
node-core/prefer-assert-methods: error
|
|
node-core/prefer-common-expectserror: error
|
|
node-core/prefer-common-mustnotcall: error
|
|
node-core/crypto-check: error
|
|
node-core/inspector-check: error
|
|
node-core/number-isnan: error
|
|
## common module is mandatory in tests
|
|
node-core/required-modules: [error, common]
|
|
|
|
# Global scoped methods and vars
|
|
globals:
|
|
WebAssembly: false
|