0.2.1 • Published 11 months ago

eslint-config-lets-go v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

eslint-config-lets-go

Note: This project is a work in progress.

An ESLint config that aims to help and not be annoying. Check index.js for the full list of rules.

Installation

npm add -D eslint@8 eslint-config-lets-go eslint-plugin-import-x

Usage

(Recommended) For ESLint 8 eslint.config.js and 9+:

// eslint.config.js
const letsGo = require("eslint-config-lets-go/config");
// eslint-disable-next-line import-x/no-extraneous-dependencies
const globals = require("globals");

module.exports = [
  letsGo,
  {
    languageOptions: {
      ecmaVersion: 2023,
      sourceType: "module", // or "commonjs",
      globals: {
        ...globals.node,
        ...globals.nodeBuiltins,
        // or ...globals.browser,
      }
    },
    // Override any of the rules
    // rules: {
    //   'no-console': 'warn',
    //   'no-shadow': ['error', {
    //     'allow': ['err', 'resolve', 'reject', 'done']
    //   }],
    // }
  }
];

(Not recommended) For ESLint 8 and below:

{
  "extends": ["lets-go"],
  // Override any of the rules
  // rules: {
  //   'no-console': 'warn',
  // }
}
0.2.1

11 months ago

0.2.0

11 months ago

0.1.3

11 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago