firescript-linter
Advanced tools
Comparing version 0.5.4 to 0.6.0
{ | ||
"name": "firescript-linter", | ||
"version": "0.5.4", | ||
"version": "0.6.0", | ||
"description": "Linter for Firescript", | ||
@@ -5,0 +5,0 @@ "main": "app.js", |
@@ -24,2 +24,88 @@ const LinterNode = require('./LinterNode').LinterNode | ||
const globalFunctions = [ | ||
'Buffer', | ||
'clearImmediate', | ||
'clearInterval', | ||
'clearTimeout', | ||
'queueMicrotask', | ||
'require', | ||
'setImmediate', | ||
'setInterval', | ||
'setTimeout', | ||
'TextDecoder', | ||
'TextEncoder', | ||
'URL', | ||
'URLSearchParams', | ||
'WebAssembly', | ||
// global js functions | ||
'eval', | ||
'uneval', | ||
'isFinite', | ||
'isNaN', | ||
'parseFloat', | ||
'parseInt', | ||
'encodeURI', | ||
'encodeURIComponent', | ||
'decodeURI', | ||
'decodeURIComponent', | ||
'escape', | ||
'unescape', | ||
// global js objects | ||
'Object', | ||
'Function', | ||
'Boolean', | ||
'Symbol', | ||
'Error', | ||
'AggregateError', | ||
'EvalError', | ||
'InternalError', | ||
'RangeError', | ||
'ReferenceError', | ||
'SyntaxError', | ||
'TypeError', | ||
'URIError', | ||
'Number', | ||
'BigInt', | ||
'Math', | ||
'Date', | ||
'String', | ||
'RegExp', | ||
'Array', | ||
'Int8Array', | ||
'Uint8Array', | ||
'Uint8ClampedArray', | ||
'Int16Array', | ||
'Uint16Array', | ||
'Int32Array', | ||
'Uint32Array', | ||
'Float32Array', | ||
'Float64Array', | ||
'BigInt64Array', | ||
'BigUint64Array', | ||
'Map', | ||
'Set', | ||
'WeakMap', | ||
'WeakSet', | ||
'ArrayBuffer', | ||
'SharedArrayBuffer', | ||
'Atomics', | ||
'DataView', | ||
'JSON', | ||
'Promise', | ||
'Generator', | ||
'GeneratorFunction', | ||
'AsyncFunction', | ||
'Reflect', | ||
'Proxy', | ||
'Intl' | ||
] | ||
globalFunctions.forEach((fn) => | ||
globalScope.set(fn, { | ||
kind: 'func', | ||
name: fn, | ||
type: 'any' | ||
}) | ||
) | ||
globalScope.set('console', { | ||
@@ -31,2 +117,8 @@ kind: 'instance', | ||
globalScope.set('arguments', { | ||
kind: 'const', | ||
name: 'arguments', | ||
type: 'arr' | ||
}) | ||
globalScope.set('process', { | ||
@@ -33,0 +125,0 @@ kind: 'instance', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56107
141
1716