is-eslint-severity
Check if a given value is one of the ESLint severity level specifiers
const isEslintSeverity = ; ; //=> true; //=> true; //=> true ; //=> true; //=> true; //=> true ; //=> false; //=> false
Installation
npm install is-eslint-severity
API
const isEslintSeverity = ;
isEslintSeverity(value)
value: String
or Number
Return: Boolean
It returns true
if the given value can be used as an ESLint rule severity, otherwise returns false
.
; //=> false; //=> false; //=> false; //=> false
License
Copyright (c) 2016 Shinnosuke Watanabe
Licensed under the MIT License.