firescript-linter
Advanced tools
Comparing version 0.10.0 to 0.10.1
{ | ||
"name": "firescript-linter", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "Linter for Firescript", | ||
@@ -24,6 +24,6 @@ "main": "app.js", | ||
"eslint-plugin-standard": "^5.0.0", | ||
"firescript": "^0.16.5", | ||
"firescript-parser": "^0.5.3", | ||
"firescript": "^0.17.0", | ||
"firescript-parser": "^0.5.4", | ||
"firescript-syntax-test": "^0.1.0", | ||
"firescript-test": "^0.10.15", | ||
"firescript-test": "^0.10.16", | ||
"git-hooks": "^1.1.10", | ||
@@ -34,4 +34,4 @@ "inspect.js": "^1.12.4", | ||
"dependencies": { | ||
"colorfy": "^2.1.3" | ||
"colorfy": "^2.2.0" | ||
} | ||
} |
@@ -6,3 +6,7 @@ const LinterNode = require('../LinterNode').LinterNode | ||
lint (ast) { | ||
this.addScopeFunc(ast.id.name, this.astGetParams(ast)) | ||
if (ast.id) { | ||
this.addScopeFunc(ast.id.name, this.astGetParams(ast)) | ||
} else { | ||
this.debug(`Handle function types of ${ast.type}`) | ||
} | ||
this.setNewScope() // set function scope | ||
@@ -9,0 +13,0 @@ |
@@ -39,3 +39,5 @@ const path = require('path') | ||
const paths = this.getRequirePaths() | ||
require.resolve(modulePath, paths) | ||
require.resolve(modulePath, { | ||
paths: paths | ||
}) | ||
return true | ||
@@ -60,4 +62,2 @@ } catch (err) { | ||
paths.push(`${process.env.HOME}/.node_modules`) | ||
paths.push(`${process.env.HOME}/.node_libraries`) | ||
return paths | ||
@@ -64,0 +64,0 @@ } |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
65573
1945
4
Updatedcolorfy@^2.2.0