Socket
Socket
Sign inDemoInstall

@shinnn/eslint-config

Package Overview
Dependencies
117
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @shinnn/eslint-config

shinnn's ESLint config


Version published
Weekly downloads
458
decreased by-16.88%
Maintainers
1
Install size
3.65 MB
Created
Weekly downloads
 

Readme

Source

@shinnn/eslint-config

npm version Build Status codecov

shinnn's ESLint sharable config

Features

Installation

Install eslint and this package with npm.

npm install --save-dev eslint @shinnn/eslint-config

Then add the following configuration to your project's package.json.

"eslintConfig": {
  "extends": "@shinnn"
}

Optional setups

babel-eslint utilization

When babel-eslint is installed, this config automatically uses it as a parser. There is no need to add "parser": "babel-eslint" to the package.json explicitly.

npm install --save-dev babel-eslint

babel-eslint lets ESLint parse experimental ECMAScript syntax the default parser doesn't support, for example class fields and BigInt.

Svelte support

When eslint-plugin-svelte3 is installed, this config also makes ESLint validate .svelte files.

npm install --save-dev eslint-plugin-svelte3

CLI

# No need to explicitly add `--cache`, `--cache-location`, `--ext`, `--fix` and `--format` flags
$ eslint .

API

const {CLIEngine} = require('eslint');

const cli = new CLIEngine({
  // For programmatic usage via API and build tool integrations like Webpack eslint-loader,
  // options for example `fix: true` and `cache: true` are still needed to set them explicitly.
});
cli.executeOnText('var foo=true;'); //=> {results: [ ... ], errorCount: ... }

License

ISC License © 2017 - 2019 Watanabe Shinnosuke

Keywords

FAQs

Last updated on 07 Jul 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc