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.
@studyportals/code-style
Advanced tools
Default CodeClimate configurations for the Studyportals repositories
Default CodeClimate configurations to use in Studyportals repositories.
If you want to add or update your configuration, take the .codeclimate.yml file and add it to the root of your repository.
Please send pull requests to the Tribe Leads, RobH or Frank if you think you have a new default setting for the engines.
You can add CodeStyle as a dependency to your project by running the following command:
npm install @studyportals/code-style --save-dev
When you installed the package you can simply extend from the configuration files inside the CodeStyle package.
ESLint
// package.json
"eslintConfig": {
"extends": "./node_modules/@studyportals/code-style/.eslintrc.js",
"parserOptions": {
"sourceType": "module"
}
}
TSLint
// tslint.json
{
"extends": "./node_modules/@studyportals/code-style/tslint.json"
}
By extending from the linting config files in CodeStyle you are ensuring that you are using the same configuration as we use in our CodeClimate configuration.
If you would like to use the configurations for the PHP and SCSS linters you would have to copy it from this projects source.
In order to guarantee the same linting behaviour as in CodeClimate we added the right versions of eslint
and tslint
as peer dependencies to this package. Please find which version we are using right now in the table below:
Linter | Version | Based on |
---|---|---|
ESLint | 5.7.0 | eslint:recommended |
TSLint | 5.9.1 | tslint:recommended |
SCSSLint | 0.52.0 (deprecated) | Custom configuration |
PHPmd | 2.5.0 | Custom configuration |
PHPCodeSniffer | 2.8.1 | Custom configuration |
FAQs
Default linting configurations for the Studyportals repositories
The npm package @studyportals/code-style receives a total of 1,876 weekly downloads. As such, @studyportals/code-style popularity was classified as popular.
We found that @studyportals/code-style demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.