mirror of
https://github.com/nodejs/node.git
synced 2025-08-20 01:15:51 +02:00

Greatly simplify how ESLint and its plugins are installed. PR-URL: https://github.com/nodejs/node/pull/53413 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
12 lines
325 B
JavaScript
12 lines
325 B
JavaScript
export default asciiControl
|
|
|
|
import codes from './codes.mjs'
|
|
|
|
// Note: EOF is seen as ASCII control here, because `null < 32 == true`.
|
|
function asciiControl(code) {
|
|
return (
|
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
// character DEL
|
|
code < codes.space || code === codes.del
|
|
)
|
|
}
|