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

eslint-config-neworbit

Package Overview
Dependencies
Maintainers
7
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-neworbit

NewOrbit standard typescript ready eslint configuration

  • 3.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.4K
increased by20.81%
Maintainers
7
Weekly downloads
 
Created
Source

eslint-config-neworbit

ESLint configuration for NewOrbit

Installation

npm install eslint eslint-config-neworbit --save-dev

Setup

Add .eslintrc.json file with the following contents:

{
    "extends": [
        "neworbit"
    ]
}

Setup a lint script in your package.json something like this:

{
    ...
    "scripts": {
        ...
        "lint:typescript": "eslint \"./**/*.{ts,tsx}\""
    }
}

VS Code setup

  • Install the ESLint extension for VS Code

  • Make sure you have TypeScript files included in your settings:

        "eslint.validate": [
            "javascript",
            "javascriptreact",
            "typescript",
            "typescriptreact"
        ]
    
  • If your package.json and .eslintrc.json files aren't in the root directory you open in VS Code you may need to add working directories in your workspace settings:

{
    ...
    "settings": {
        ...
        "eslint.workingDirectories": [
            {
                "directory": "{FOLDER_THAT_CONTAINS_CONFIG}"
            }
        ],
    }
}

Migrating from TSLint

For mapping TSLint rule overrides in your own project to the equivalent ESLint rules please refer to the map. If you cannot find the rule simply Google it as ESLint is plugin based and there is likely a plugin offering the required functionality.

License

Made with :sparkling_heart: by NewOrbit in Oxfordshire, and licensed under the MIT Licence

Keywords

FAQs

Package last updated on 17 Apr 2020

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