Socket
Book a DemoInstallSign in
Socket

eslint-config-acast

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-acast

ESLint config used by Acast

7.0.0
latest
Source
npmnpm
Version published
Weekly downloads
253
-25.15%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-acast

Shared ESLint config used at Acast. It combines recommended lint rules from a set of useful ESLint plugins, with modular configs that can be combined to suite the projects need.

Base:

React:

Typescript:

Jest:

Setup

Installation

npm install -D eslint-config-acast eslint prettier

Extending

Extend acast and any extra config you need for your project in your eslintrc file.

Available configs:

  • acast
  • acast/react
  • acast/typescript
  • acast/jest

Example:

// eslintrc.js
{
  "extends": ["acast", "acast/react", "acast/typescript", "acast/jest"]
}

Usage

CLI

With everything setup, you can use the ESLint CLI to lint your code. You can run eslint --fix to fix linting errors and warnings (including Prettier formatting rules).

VSCode integration

ESLint

Integrate ESLint with your Visual Studio Code by installing the ESLint plugin. After installing the plugin and reloading your workspace, you will see warnings and errors right there in your editor.

Prettier

Integrate Prettier with your Visual Studio Code by install the Prettier plugin. After installing the plugin and reloading your workspace, you are ready to format your code right there in your editor.

For the plugin to locate the Prettier formatting rules, add the following to your user settings:

"prettier.eslintIntegration": true

Format using Command Palette:

1. CMD + Shift + P -> Format Document
OR
1. Select the text you want to Prettify
2. CMD + Shift + P -> Format Selection

Or, format on save by adding the following to your user settings:

"[javascript]": {
    "editor.formatOnSave": true
}

Development

Rule overrides should be kept to a minimum. New additions should be well motivated without personal bias.

Release flow

No action is required other than merging your changes into master.

When a pull request is merged into master CircleCI will run the publish job and the following things will happen.

  • Analyse commit messages since the last release (Git Tag).
  • For every fix, feat or BREAKING CHANGE, semantic-release will automatically:
  • Decide the new version number based on the commit messages since the latest release tag.
  • Update the package.json file with the new version number and create a change log.
  • Create a tag named Git Tag and push it.

Keywords

eslint

FAQs

Package last updated on 27 Nov 2023

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.