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

eslint-config-shaunburdick

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-shaunburdick

Shaun's style configuration

  • 2.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by200%
Maintainers
0
Weekly downloads
 
Created
Source

Shaun's JS/TS Lint Rules

Rules for eslint used in my personal Javascript (etc) development.

Install

Install:

npm install --save-dev eslint@9 @shaunburdick/eslint-config

Create an eslint.config.mjs file:

import shaunburdick from 'eslint-config-shaunburdick';

export default [
    ...shaunburdick.config.js
];

Additional Configurations

  • Typescript: Additional rules for Typescript files
    • To install, add ...shaunburdick.config.ts
  • React: Additional rules for React
    • To install, add ...shaunburdick.config.react

Example with all rules:

import shaunburdick from 'eslint-config-shaunburdick';

export default [
    ...shaunburdick.config.js,
    ...shaunburdick.config.react,
    ...shaunburdick.config.ts
];

Package Setup

To setup linting automatically, we recommend adding these script entries to your package.json:

"lint": "eslint .",
"lint:fix": "npm run lint -- --fix",

Then you can add npm run lint to your test script command to run it before any tests

Versioning Policy

  • Major (new linting errors)
    • A new rule is added
    • An existing rule is made more strict
    • A new plugin is added to an existing config
    • A existing plugin is updated to be more strict
  • Minor (same or fewer linting errors)
    • A rule is removed
    • An existing rules is made less strict
    • Adding a new configuration
    • A existing plugin is updated to be less strict
  • Patch (non-user-facing changes)
    • Changes to documentation
    • Fixes for build or publication
    • Modifying tests

Publish steps

  • Checkout main (git checkout main)
  • Pull master (git pull)
  • Examine CHANGELOG.md to determine next version (X.Y.Z)

Keywords

FAQs

Package last updated on 12 Aug 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