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

eslint-config-lionc

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-lionc

Extendable ESLint config for modern, simple Javascript, Typescript and Node

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-lionc

Exhaustive extendable ESLint config for modern, clear and consistent Javascript, Typescript and Node.

Install

To install, simply run

$ npm i --save-dev eslint-config-lionc

You also need a peer of eslint@>5, so if you do not have that yet, run

$ npm i eslint

How to use

Javascript

To apply the core Javascript config to your project, the simplest config is to create this .eslintrc.json in your project:

{
    "extends": "lionc"
}

Then just run npx eslint your/source/folder/**/*.js

Typescript

If you use Typescript, use lionc/typescript instead, which takses care of setting the correct parser and adds additional Typescript rules:

{
   "extends": "lionc/typescript" 
}

If your tsconfig.json is not in the same folder as your .eslintrc.json, you need to specify that using parserOptions.project:

{
   "extends": "lionc/typescript",

   "parserOptions": {
       "project": "./path/to/your/tsconfig.json"
   }
}

Node

If you are using Node, use lionc/node:

{
   "extends": "lionc/node" 
}

If you want to use Node and Typescript together, make sure to extend both in the following order:

{
   "extends": [
       "lionc/node",
       "lionc/typescript"
   ]
}

Keywords

FAQs

Package last updated on 19 Aug 2019

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