Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@teachers/eslint-config-tpt-typescript
Advanced tools
Recommended TpT eslint config with typescript. Owned and maintained by Web Platform.
This package currently includes rules that are applicable both for React-based projects and Node backends.
yarn add --dev @teachers/eslint-config-tpt-typescript
Your project should have a .eslintrc.js file to configure ESLint. (If you're using a .json config file, please convert it to .js), that looks like:
// Patch ESLint to allow managing plugins via shared configuration files
require('@teachers/eslint-config-tpt-typescript/eslint-patch');
module.exports = {
// Extend from TPT shared config
extends: '@teachers/tpt-typescript',
// Don't combine with ESLint configs in parent folders
root: true,
// Setup for Typescript
settings: {
'import/resolver': {
typescript: {},
},
}
}
To get Prettier to work with this config, use the following .pretterrc.json
:
{
"singleQuote": true,
"arrowParens": "always"
}
This package follows semantic versioning enforced by the semantic-pr app and uses standard-version to generate changelogs. Note that most rule changes are going to require BREAKING CHANGE (i.e. they might cause existing apps to no longer pass linting). To make a change
yarn release
. Note you need permission to push to master to get it to run. Contact web-platform if you don't have permissions. This script will generate a Changelog, bump the version, commit the change, and run yarn publish
.FAQs
tpt-frontend ESLint config
The npm package @teachers/eslint-config-tpt-typescript receives a total of 0 weekly downloads. As such, @teachers/eslint-config-tpt-typescript popularity was classified as not popular.
We found that @teachers/eslint-config-tpt-typescript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 94 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.