intial
This commit is contained in:
16
node_modules/eslint-plugin-svelte/lib/rules/indent-helpers/ast.js
generated
vendored
Normal file
16
node_modules/eslint-plugin-svelte/lib/rules/indent-helpers/ast.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Check whether the given token is a whitespace.
|
||||
*/
|
||||
export function isWhitespace(token) {
|
||||
return (token != null &&
|
||||
((token.type === 'HTMLText' && !token.value.trim()) ||
|
||||
(token.type === 'JSXText' && !token.value.trim())));
|
||||
}
|
||||
/**
|
||||
* Check whether the given token is a not whitespace.
|
||||
*/
|
||||
export function isNotWhitespace(token) {
|
||||
return (token != null &&
|
||||
(token.type !== 'HTMLText' || Boolean(token.value.trim())) &&
|
||||
(token.type !== 'JSXText' || Boolean(token.value.trim())));
|
||||
}
|
||||
Reference in New Issue
Block a user