Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@bavard/eslint-config-typescript
Advanced tools
Bavard's ESLint config with TypeScript support
npm install @bavard/eslint-config-typescript --save-dev
If your app is a Node.js
app:
Install the following devDependencies:
npm install @typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
eslint-config-airbnb-typescript \
eslint-config-prettier \
eslint-plugin-import \
eslint-plugin-jest \
eslint-plugin-prettier \
prettier \
--save-dev
If your app is a React.js
app:
npm install @typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
eslint-config-airbnb-typescript \
eslint-config-prettier \
eslint-plugin-import \
eslint-plugin-jest \
eslint-plugin-jsx-a11y \
eslint-plugin-prettier \
eslint-plugin-react \
eslint-plugin-react-hooks \
prettier \
--save-dev
Create a .eslintrc.js
ESLint config file at the root of your repo.
Paste the following code in the file:
If your app is a Node.js
app:
module.exports = {
root: true,
extends: [
"@bavard/eslint-config-typescript/node",
],
};
If your app is a React.js
app:
module.exports = {
root: true,
extends: [
"@bavard/eslint-config-typescript/react",
],
};
Open source licensed as MIT.
FAQs
Bavard's base TS ESLint config, following our styleguide
We found that @bavard/eslint-config-typescript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.