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

@brlt/eslint-config

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brlt/eslint-config

Versatile ESLint presets for modern JavaScript/TypeScript projects.

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

@brlt/eslint-config

  • Reasonable defaults for best-practices in only one-line of config
  • Single quotes, no semicolons
  • Auto fix for formatting (to be used standalone without Prettier)
  • TypeScript, Vue, React supported out-of-box (Svelte and Astro support is coming soon)
  • Supports json, yaml, markdown
  • Sorted imports and sorted package.json fields
  • Trailing Commas

Installation

pnpm add -D eslint @brlt/eslint-config




Add to your scripts in package.json

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

Configuration

There's no need to fuss with .eslintignore most of the time - the preset takes care of that.

The simplest way to integrate this with a project is to use the eslintConfig field in `package.json:


package.json

{
  "eslintConfig": {
    "extends": "@brlt"
  }
}

.eslintrc (json)

{
  "extends": "@brlt"
}

.eslintrc.js

module.exports = {
  extends: '@brlt'
}




Config VS Code auto fix

Create .vscode/settings.json if it doesn't already exist, and make sure you have the dbaeumer.vscode-eslint extension installed.

{
  "prettier.enable": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}




Other Projects

  • nberlette/dotfiles - Personal dotfiles for Gitpod and macOS
  • nberlette/prettier - Prettier config (independent from this project)




License

MIT

Keywords

FAQs

Package last updated on 17 May 2022

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