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

@awkward/eslint-config

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@awkward/eslint-config

This package contains linting configuration that we use for our JavaScript projects at Awkward. The configuration is based on [JavaScript Standard Style](https://github.com/feross/standard).

  • 2.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
6
Weekly downloads
 
Created
Source

eslint-config-awkward

This package contains linting configuration that we use for our JavaScript projects at Awkward. The configuration is based on JavaScript Standard Style.

Installation

1. Install the shareable config

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

2. Install correct versions of peer dependencies

List peer dependencies:

npm info "@awkward/eslint-config@latest" peerDependencies

macOS/Linux users can run the following command to install all peer dependencies at once:

(
  export PKG=@awkward/eslint-config;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)

Windows users can either install all the peer dependencies manually, or use the install-peerdeps cli tool.

npm install -g install-peerdeps
install-peerdeps --dev @awkward/eslint-config

Usage

Shareable configs are designed to work with the extends feature of .eslintrc files. You can learn more about Shareable Configs on the official ESLint website.

This package includes the following configurations:

  • @awkward − The base configuration used for all projects.
  • @awkward/react − To be used in addition to @awkward configuration for projects that use React.

An example of what to put in your .eslintrc.json file:

{
  "extends": [
    "@awkward",
    "@awkward/eslint-config/react",
    ... // additional configs to extend from
  ]
}

TODO

  • Leveraging ESLint in your project (lint-staged, auto fix) w/ examples (package.json)

Keywords

FAQs

Package last updated on 18 Jul 2017

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