Skip to content

awkward/eslint-config-awkward

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published