Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-crema

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-crema

An ESLint config by Crema for Cremanians and you.

  • 0.0.1
  • npm
  • Socket score

Version published
Weekly downloads
15
decreased by-54.55%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-crema

Shared ESLint config for React Typescript Projects.

Installation

npm install --save-dev eslint-config-crema

You will also need to install eslint:

npm install --save-dev eslint

Usage

Import this config into your own ESLint configuration using the extends option. ESLint checks both package.json and .eslintrc.* files for its configuration:

package.json

{
  "eslintConfig": {
    "extends": ["crema"]
  }
}

.eslintrc.js

module.exports = {
    extends: ["crema"],
}

What's Included

This ESLint config includes a selection of useful plugins, this is what you get out of the box:

PluginPresets
eslintrecommended
@typescript-eslintrecommended
importrecommended + typescript
jsx-a11yrecommended
reactrecommended + jsx-runtime
react-hooksrecommended
storybookrecommended
testing-libraryreact
@tanstack/eslint-plugin-queryrecommended
prettier-

Note: Storybook and Testing Library plugins only run on select files. (Stories and Tests)

Customizing Prettier

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.

Setting Prettier as the default formatter for the workspace in VSCode

Install the Prettier extension and create a file named /.vscode/settings.json with the following configuration:

{
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
}

Keywords

FAQs

Package last updated on 26 Feb 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc