Socket
Socket
Sign inDemoInstall

eslint-config-ns-base

Package Overview
Dependencies
9
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-ns-base


Version published
Maintainers
1
Created

Changelog

Source

v4.0.0 (2023-07-31)

:rocket: New Feature
  • eslint-config-ns-base, eslint-config-ns-ts-base, eslint-config-ns-ts, eslint-config-ns
    • #148 feat: updated all dependencies to latest version (incl. ESLint and Prettier@3) (@natterstefan)
    • #147 feat: updated min. required node version >=18 (@natterstefan)

Readme

Source

eslint-config-ns-base

npm version GitHub license

Contents

Features

The config is built upon Airbnb's ESLint rules with additional rules and optimizations (see assumptions).

Installation

Install the package with

npm install eslint-config-ns-base --save-dev

# or
yarn add eslint-config-ns-base -D

eslint-config-ns-base requires you to take care of it's peerDependencies. Install the correct version of each peerDependencies package, which are listed with the following command:

npm info "eslint-config-ns-base@latest" peerDependencies

If using npm 5+, use this shortcut:

npx install-peerdeps --dev eslint-config-ns-base

# or
yarn add eslint-config-ns-base -D --peer

Usage

Now add eslint-config-ns-base to either your package.json:

{
  "eslintConfig": {
    "extends": "eslint-config-ns-base"
  }
}

to your .eslintrc:

{
  "extends": "eslint-config-ns-base"
}

or .eslintrc.js:

module.exports = {
  extends: 'eslint-config-ns-base',
}

Prettier Config

This is how you can use or extend the eslint-config-ns-base prettier config in your app:

// prettier.config.js
module.exports = require('eslint-config-ns-base/prettier.config')

Assumptions

eslint-config-ns-base comes with some fundamental assumptions:

  • Browser and/or Node.js environment
  • Jest as the selected test-suite
  • it uses the @babel/eslint-parser parser

Even though I made some assumptions, you can easily overwrite, extend and unset rules and any other setting in your custom eslint config.

LICENSE

MIT

Maintainers


Stefan Natter

Keywords

FAQs

Last updated on 31 Jul 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc