Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@hint/parser-babel-config
Advanced tools
@hint/parser-babel-config
)The babel-config
parser allows the user to analyze the Babel
configuration in their projects.
This package is installed automatically by webhint:
npm install hint --save-dev
To use it, activate it via the .hintrc
configuration file:
And then activate it via the .hintrc
configuration file:
{
"connector": {...},
"formatters": [...],
"hints": {
...
},
"parsers": ["babel-config"],
...
}
This parser detects if a .babelrc
configuration file is present,
or if the Babel configuration is specified in package.json
, and
validates the Babel configuration against the schema.
Note: The recommended way of running webhint is as a devDependency
of
your project.
This parser
emits the following events:
parse::start::babel-config
, of type BabelConfigParseStart
which contains the following information:
resource
: the resource we are going to parse.parse::end::babel-config
, of type BabelConfigParse
which contains the following information:
resource
: the parsed resource.config
: an object with a valid configuration.parse::error::babel-config::json
, of type BabelConfigInvalidJSON
which contains the following information:
resource
: the parsed resource.error
: the error emited parsing the configuration file.parse::error::babel-config::circular
, of type BabelConfigInvalidJSON
which contains the following information:
resource
: the parsed resource.error
: the error emited parsing the configuration file.parse::error::babel-config::extends
, of type BabelConfigInvalidJSON
which contains the following information:
resource
: the parsed resource.error
: the error emited parsing the configuration file.parse::error::babel-config::schema
, of type BabelConfigInvalidSchema
which contains the following information:
resource
: the parsed resource.errors
: all the errors that the schama validator returns.If you need to import any type or enum defined in this parser, you need to import them as follows:
import { TypeOrEnumYouWantToUse } from '@hint/parser-babel-config';
FAQs
webhint parser to analyze babel config
The npm package @hint/parser-babel-config receives a total of 16,269 weekly downloads. As such, @hint/parser-babel-config popularity was classified as popular.
We found that @hint/parser-babel-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.