2015-05-19 19:00:06 +08:00
|
|
|
## Test-specific linter rules
|
|
|
|
|
2019-04-04 11:36:41 +08:00
|
|
|
env:
|
|
|
|
node: true
|
|
|
|
es6: true
|
|
|
|
|
2015-05-19 19:00:06 +08:00
|
|
|
rules:
|
2017-01-08 23:23:00 +08:00
|
|
|
# ECMAScript 6
|
|
|
|
# http://eslint.org/docs/rules/#ecmascript-6
|
2017-07-04 00:51:45 +08:00
|
|
|
no-var: error
|
|
|
|
prefer-const: error
|
2017-10-17 06:37:14 +08:00
|
|
|
symbol-description: off
|
2017-01-08 23:23:00 +08:00
|
|
|
|
|
|
|
# Custom rules in tools/eslint-rules
|
2018-02-05 03:38:18 +08:00
|
|
|
node-core/prefer-assert-iferror: error
|
|
|
|
node-core/prefer-assert-methods: error
|
|
|
|
node-core/prefer-common-mustnotcall: error
|
|
|
|
node-core/crypto-check: error
|
2018-04-28 03:57:52 +08:00
|
|
|
node-core/eslint-check: error
|
2018-02-05 03:38:18 +08:00
|
|
|
node-core/inspector-check: error
|
2017-01-08 23:23:00 +08:00
|
|
|
## common module is mandatory in tests
|
2019-05-11 09:47:01 +08:00
|
|
|
node-core/required-modules:
|
|
|
|
- error
|
|
|
|
- common: 'common(/index\.(m)?js)?$'
|
2019-05-12 15:11:13 +08:00
|
|
|
node-core/require-common-first: error
|
2018-07-08 12:32:23 +08:00
|
|
|
node-core/no-duplicate-requires: off
|
2017-11-05 06:08:37 +08:00
|
|
|
|
|
|
|
# Global scoped methods and vars
|
|
|
|
globals:
|
|
|
|
WebAssembly: false
|
2018-03-13 22:08:31 +08:00
|
|
|
BigInt: false
|
2018-03-08 00:05:01 +08:00
|
|
|
BigInt64Array: false
|
|
|
|
BigUint64Array: false
|
2018-05-20 22:08:45 +08:00
|
|
|
SharedArrayBuffer: false
|
2019-10-12 06:53:41 +08:00
|
|
|
globalThis: false
|