
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.
eslint-config-crema
Advanced tools
A batteries-included ESLint config by Crema for Cremanians and you.
Shared ESLint config for React Typescript Projects.
npm install --save-dev eslint-config-crema
You will also need to install eslint
:
npm install --save-dev eslint
Import this config into your own ESLint configuration using the extends
option. ESLint checks both package.json
and .eslintrc.*
files for its configuration:
{
"eslintConfig": {
"extends": ["crema"]
}
}
module.exports = {
extends: ["crema"],
}
This ESLint config includes a selection of useful plugins, this is what you get out of the box:
Plugin | Presets |
---|---|
eslint | recommended |
@typescript-eslint | recommended |
import | recommended + typescript |
jsx-a11y | recommended |
react | recommended + jsx-runtime |
react-hooks | recommended |
storybook | recommended |
testing-library | react |
react-hook-form | `recommended |
@tanstack/eslint-plugin-query | recommended |
prettier | - |
Note: Storybook and Testing Library plugins only run on select files. (Stories and Tests)
Create a file named .prettierrc.json
in your project directory. An example of Prettier configuration file:
{
"trailingComma": "all",
"tabWidth": 4,
"semi": false,
"singleQuote": false
}
Read more about configuring prettier
and all of the available options.
Install the Prettier
extension and create a file named /.vscode/settings.json
with the following configuration:
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
FAQs
A batteries-included ESLint config by Crema for Cremanians and you.
The npm package eslint-config-crema receives a total of 47 weekly downloads. As such, eslint-config-crema popularity was classified as not popular.
We found that eslint-config-crema demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.