
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.
@emanprague/eslint-config
Advanced tools
This package contains shared rules for ESlint with TypeScript and Prettier.
Inspired by https://dev.to/robertcoopercode/using-eslint-and-prettier-in-a-typescript-project-53jb
eslint-config v3 supports ESlint 8.
eslint-config v2 requires ESlint 7.
Use eslint-config v1 for ESlint 6 + TSlint.
Install ESlint:
yarn add eslint prettier @emanprague/eslint-config -D
Update config files as follows:
.eslintrc.js
module.exports = {
extends: [
"@emanprague/eslint-config/eslint-default"
],
settings: {
react: {
version: "detect",
},
},
env: {
browser: true,
},
};
.prettierrc.js
module.exports = require("@emanprague/eslint-config/prettier-config");
Note that instead of creating the .prettierrc.js
file, you can just add the following row to your package.json
file.
"prettier": "@emanprague/eslint-config/prettier-config",
And you should be good to go with:
eslint \"./src/**/*.{ts,tsx}\" --cache
How to release:
FAQs
ESlint and prettier configurations
The npm package @emanprague/eslint-config receives a total of 31 weekly downloads. As such, @emanprague/eslint-config popularity was classified as not popular.
We found that @emanprague/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.