
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.