diff options
author | Gus Caplan <me@gus.host> | 2018-02-04 13:38:18 -0600 |
---|---|---|
committer | Gus Caplan <me@gus.host> | 2018-02-20 13:13:22 -0600 |
commit | 6934792eb34c75c16ac810951d0abadfe96238a9 (patch) | |
tree | 5f3f34eb259e15dba98c5419f228eafc27616f70 /lib | |
parent | 7514eb3cff9f333882db0a3173247df06c0257e5 (diff) | |
download | android-node-v8-6934792eb34c75c16ac810951d0abadfe96238a9.tar.gz android-node-v8-6934792eb34c75c16ac810951d0abadfe96238a9.tar.bz2 android-node-v8-6934792eb34c75c16ac810951d0abadfe96238a9.zip |
lint: move eslint to new plugin system
PR-URL: https://github.com/nodejs/node/pull/18566
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/.eslintrc.yaml | 10 | ||||
-rw-r--r-- | lib/internal/errors.js | 6 | ||||
-rw-r--r-- | lib/internal/test/unicode.js | 4 | ||||
-rw-r--r-- | lib/timers.js | 4 | ||||
-rw-r--r-- | lib/util.js | 2 |
5 files changed, 13 insertions, 13 deletions
diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index e87596d4d5..5810faa661 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -1,7 +1,7 @@ rules: # Custom rules in tools/eslint-rules - require-buffer: error - buffer-constructor: error - no-let-in-for-declaration: error - lowercase-name-for-primitive: error - non-ascii-character: error + node-core/require-buffer: error + node-core/buffer-constructor: error + node-core/no-let-in-for-declaration: error + node-core/lowercase-name-for-primitive: error + node-core/non-ascii-character: error diff --git a/lib/internal/errors.js b/lib/internal/errors.js index fb4f5e8482..92e1efbf2f 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -1,6 +1,6 @@ -/* eslint documented-errors: "error" */ -/* eslint alphabetize-errors: "error" */ -/* eslint prefer-util-format-errors: "error" */ +/* eslint node-core/documented-errors: "error" */ +/* eslint node-core/alphabetize-errors: "error" */ +/* eslint node-core/prefer-util-format-errors: "error" */ 'use strict'; diff --git a/lib/internal/test/unicode.js b/lib/internal/test/unicode.js index 7172a43ec2..451c3c4737 100644 --- a/lib/internal/test/unicode.js +++ b/lib/internal/test/unicode.js @@ -3,6 +3,6 @@ // This module exists entirely for regression testing purposes. // See `test/parallel/test-internal-unicode.js`. -/* eslint-disable non-ascii-character */ +/* eslint-disable node-core/non-ascii-character */ module.exports = '✓'; -/* eslint-enable non-ascii-character */ +/* eslint-enable node-core/non-ascii-character */ diff --git a/lib/timers.js b/lib/timers.js index bc98718fdf..2744f231b5 100644 --- a/lib/timers.js +++ b/lib/timers.js @@ -89,7 +89,7 @@ const kRefed = Symbol('refed'); // TimerWrap C++ handle, which makes the call after the duration to process the // list it is attached to. // -/* eslint-disable non-ascii-character */ +/* eslint-disable node-core/non-ascii-character */ // // ╔════ > Object Map // ║ @@ -111,7 +111,7 @@ const kRefed = Symbol('refed'); // ║ // ╚════ > Linked List // -/* eslint-enable non-ascii-character */ +/* eslint-enable node-core/non-ascii-character */ // // With this, virtually constant-time insertion (append), removal, and timeout // is possible in the JavaScript layer. Any one list of timers is able to be diff --git a/lib/util.js b/lib/util.js index e13f5b8b80..93729991cd 100644 --- a/lib/util.js +++ b/lib/util.js @@ -633,7 +633,7 @@ function formatPrimitive(fn, value, ctx) { // 2. If none matches, non-greedy match any text up to a whitespace or // the end of the string. // - // eslint-disable-next-line max-len, no-unescaped-regexp-dot + // eslint-disable-next-line max-len, node-core/no-unescaped-regexp-dot readableRegExps[divisor] = new RegExp(`(.|\\n){1,${divisor}}(\\s|$)|(\\n|.)+?(\\s|$)`, 'gm'); } const indent = ' '.repeat(ctx.indentationLvl); |