-
-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor src to not rely on UMD closure and pass eslint
- Loading branch information
Showing
4 changed files
with
890 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,307 @@ | ||
export const html = [ | ||
'accept', 'action', 'align', 'alt', 'autocomplete', 'background', 'bgcolor', | ||
'border', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', | ||
'cols', 'colspan', 'coords', 'datetime', 'default', 'dir', 'disabled', | ||
'download', 'enctype', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', | ||
'hreflang', 'id', 'ismap', 'label', 'lang', 'list', 'loop', 'low', 'max', | ||
'maxlength', 'media', 'method', 'min', 'multiple', 'name', 'noshade', 'novalidate', | ||
'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'poster', 'preload', 'pubdate', | ||
'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', | ||
'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'span', | ||
'srclang', 'start', 'src', 'step', 'style', 'summary', 'tabindex', 'title', | ||
'type', 'usemap', 'valign', 'value', 'width', 'xmlns' | ||
'accept', | ||
'action', | ||
'align', | ||
'alt', | ||
'autocomplete', | ||
'background', | ||
'bgcolor', | ||
'border', | ||
'cellpadding', | ||
'cellspacing', | ||
'checked', | ||
'cite', | ||
'class', | ||
'clear', | ||
'color', | ||
'cols', | ||
'colspan', | ||
'coords', | ||
'datetime', | ||
'default', | ||
'dir', | ||
'disabled', | ||
'download', | ||
'enctype', | ||
'face', | ||
'for', | ||
'headers', | ||
'height', | ||
'hidden', | ||
'high', | ||
'href', | ||
'hreflang', | ||
'id', | ||
'ismap', | ||
'label', | ||
'lang', | ||
'list', | ||
'loop', | ||
'low', | ||
'max', | ||
'maxlength', | ||
'media', | ||
'method', | ||
'min', | ||
'multiple', | ||
'name', | ||
'noshade', | ||
'novalidate', | ||
'nowrap', | ||
'open', | ||
'optimum', | ||
'pattern', | ||
'placeholder', | ||
'poster', | ||
'preload', | ||
'pubdate', | ||
'radiogroup', | ||
'readonly', | ||
'rel', | ||
'required', | ||
'rev', | ||
'reversed', | ||
'role', | ||
'rows', | ||
'rowspan', | ||
'spellcheck', | ||
'scope', | ||
'selected', | ||
'shape', | ||
'size', | ||
'span', | ||
'srclang', | ||
'start', | ||
'src', | ||
'step', | ||
'style', | ||
'summary', | ||
'tabindex', | ||
'title', | ||
'type', | ||
'usemap', | ||
'valign', | ||
'value', | ||
'width', | ||
'xmlns', | ||
]; | ||
|
||
export const svg = [ | ||
'accent-height', 'accumulate', 'additivive', 'alignment-baseline', | ||
'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', | ||
'baseline-shift', 'begin', 'bias', 'by', 'clip', 'clip-path', 'clip-rule', | ||
'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', | ||
'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', | ||
'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', | ||
'fill-rule', 'filter', 'flood-color', 'flood-opacity', 'font-family', 'font-size', | ||
'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', | ||
'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', | ||
'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', | ||
'keysplines', 'keytimes', 'lengthadjust', 'letter-spacing', 'kernelmatrix', | ||
'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', | ||
'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', | ||
'maskunits', 'max', 'mask', 'mode', 'min', 'numoctaves', 'offset', 'operator', | ||
'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', | ||
'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', | ||
'points', 'preservealpha', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', | ||
'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', | ||
'specularconstant', 'specularexponent', 'spreadmethod', 'stddeviation', 'stitchtiles', | ||
'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', | ||
'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', | ||
'surfacescale', 'targetx', 'targety', 'transform', 'text-anchor', 'text-decoration', | ||
'text-rendering', 'textlength', 'u1', 'u2', 'unicode', 'values', 'viewbox', | ||
'visibility', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', | ||
'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', | ||
'y', 'y1', 'y2', 'z', 'zoomandpan' | ||
'accent-height', | ||
'accumulate', | ||
'additivive', | ||
'alignment-baseline', | ||
'ascent', | ||
'attributename', | ||
'attributetype', | ||
'azimuth', | ||
'basefrequency', | ||
'baseline-shift', | ||
'begin', | ||
'bias', | ||
'by', | ||
'clip', | ||
'clip-path', | ||
'clip-rule', | ||
'color', | ||
'color-interpolation', | ||
'color-interpolation-filters', | ||
'color-profile', | ||
'color-rendering', | ||
'cx', | ||
'cy', | ||
'd', | ||
'dx', | ||
'dy', | ||
'diffuseconstant', | ||
'direction', | ||
'display', | ||
'divisor', | ||
'dur', | ||
'edgemode', | ||
'elevation', | ||
'end', | ||
'fill', | ||
'fill-opacity', | ||
'fill-rule', | ||
'filter', | ||
'flood-color', | ||
'flood-opacity', | ||
'font-family', | ||
'font-size', | ||
'font-size-adjust', | ||
'font-stretch', | ||
'font-style', | ||
'font-variant', | ||
'font-weight', | ||
'fx', | ||
'fy', | ||
'g1', | ||
'g2', | ||
'glyph-name', | ||
'glyphref', | ||
'gradientunits', | ||
'gradienttransform', | ||
'image-rendering', | ||
'in', | ||
'in2', | ||
'k', | ||
'k1', | ||
'k2', | ||
'k3', | ||
'k4', | ||
'kerning', | ||
'keypoints', | ||
'keysplines', | ||
'keytimes', | ||
'lengthadjust', | ||
'letter-spacing', | ||
'kernelmatrix', | ||
'kernelunitlength', | ||
'lighting-color', | ||
'local', | ||
'marker-end', | ||
'marker-mid', | ||
'marker-start', | ||
'markerheight', | ||
'markerunits', | ||
'markerwidth', | ||
'maskcontentunits', | ||
'maskunits', | ||
'max', | ||
'mask', | ||
'mode', | ||
'min', | ||
'numoctaves', | ||
'offset', | ||
'operator', | ||
'opacity', | ||
'order', | ||
'orient', | ||
'orientation', | ||
'origin', | ||
'overflow', | ||
'paint-order', | ||
'path', | ||
'pathlength', | ||
'patterncontentunits', | ||
'patterntransform', | ||
'patternunits', | ||
'points', | ||
'preservealpha', | ||
'r', | ||
'rx', | ||
'ry', | ||
'radius', | ||
'refx', | ||
'refy', | ||
'repeatcount', | ||
'repeatdur', | ||
'restart', | ||
'result', | ||
'rotate', | ||
'scale', | ||
'seed', | ||
'shape-rendering', | ||
'specularconstant', | ||
'specularexponent', | ||
'spreadmethod', | ||
'stddeviation', | ||
'stitchtiles', | ||
'stop-color', | ||
'stop-opacity', | ||
'stroke-dasharray', | ||
'stroke-dashoffset', | ||
'stroke-linecap', | ||
'stroke-linejoin', | ||
'stroke-miterlimit', | ||
'stroke-opacity', | ||
'stroke', | ||
'stroke-width', | ||
'surfacescale', | ||
'targetx', | ||
'targety', | ||
'transform', | ||
'text-anchor', | ||
'text-decoration', | ||
'text-rendering', | ||
'textlength', | ||
'u1', | ||
'u2', | ||
'unicode', | ||
'values', | ||
'viewbox', | ||
'visibility', | ||
'vert-adv-y', | ||
'vert-origin-x', | ||
'vert-origin-y', | ||
'word-spacing', | ||
'wrap', | ||
'writing-mode', | ||
'xchannelselector', | ||
'ychannelselector', | ||
'x', | ||
'x1', | ||
'x2', | ||
'y', | ||
'y1', | ||
'y2', | ||
'z', | ||
'zoomandpan', | ||
]; | ||
|
||
export const mathMl = [ | ||
'accent', 'accentunder', 'bevelled', 'close', 'columnsalign', 'columnlines', | ||
'columnspan', 'denomalign', 'depth', 'display', 'displaystyle', 'fence', | ||
'frame', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', | ||
'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', | ||
'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', | ||
'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', | ||
'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', | ||
'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', | ||
'voffset' | ||
'accent', | ||
'accentunder', | ||
'bevelled', | ||
'close', | ||
'columnsalign', | ||
'columnlines', | ||
'columnspan', | ||
'denomalign', | ||
'depth', | ||
'display', | ||
'displaystyle', | ||
'fence', | ||
'frame', | ||
'largeop', | ||
'length', | ||
'linethickness', | ||
'lspace', | ||
'lquote', | ||
'mathbackground', | ||
'mathcolor', | ||
'mathsize', | ||
'mathvariant', | ||
'maxsize', | ||
'minsize', | ||
'movablelimits', | ||
'notation', | ||
'numalign', | ||
'open', | ||
'rowalign', | ||
'rowlines', | ||
'rowspacing', | ||
'rowspan', | ||
'rspace', | ||
'rquote', | ||
'scriptlevel', | ||
'scriptminsize', | ||
'scriptsizemultiplier', | ||
'selection', | ||
'separator', | ||
'separators', | ||
'stretchy', | ||
'subscriptshift', | ||
'supscriptshift', | ||
'symmetric', | ||
'voffset', | ||
]; | ||
|
||
export const xml = [ | ||
'xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink' | ||
'xlink:href', | ||
'xml:id', | ||
'xlink:title', | ||
'xml:space', | ||
'xmlns:xlink', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
function getGlobal() { | ||
/* eslint-disable no-use-before-define */ | ||
const global = (typeof self === 'object' && self.self === self && self) || | ||
(typeof global === 'object' && global.global === global && global) || | ||
this || {}; | ||
/* eslint-enable no-use-before-define */ | ||
// `window` at least needs to be object to not break script execution | ||
global.window = global.window || {}; | ||
|
||
return global; | ||
} | ||
|
||
export default getGlobal; |
Oops, something went wrong.