Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.