New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-mourner

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-mourner

A strict ESLint config for my JavaScript projects

  • 4.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.1K
decreased by-11.97%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-mourner

A great ESLint config with sensible defaults that I use in all my JavaScript projects.

It is meant to be strict, enforcing as many useful rules and conventions as possible to keep the code clean, elegant and consistent across projects.

The rules are easy to follow, so this is a good starting place for new projects, while being easy to disable on a case by case basis for existing projects if you want to enforce and fix them gradually or have justified exceptions.

Install

To use it in your project, run:

npm install --save-dev eslint eslint-config-mourner

Then add a following eslint.config.js file in the repo root (assuming the package is type: "module"):

import config from "eslint-config-mourner";

export default [
    ...config,

    // your overrides if needed
    {
        rules: {
            "camelcase": "warn"
        }
    }
];

Finally, add eslint to a package.json script:

"scripts": {
  "lint": "eslint index.js test/test*.js",
  "pretest": "npm run lint"
}

Now run npm run lint and enjoy all the errors! :)

Automatic fixes

To make things easier, you can run eslint with --fix option that automatically fixes all simple errors like indentation and quotes for you.

Keywords

FAQs

Package last updated on 10 Jul 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