@dominicbarnes/eslint-config

Base configuration for ESLint throughout my projects

Stats

StarsIssuesVersionUpdatedCreatedSize
@dominicbarnes/eslint-config
1.0.06 years ago6 years agoMinified + gzip package size for @dominicbarnes/eslint-config in KB

Readme

eslint-config

ESLint configuration for my personal projects.

Usage

Since I have a lot of varying JS projects, I've got several "sub-modules" that are suited to various environments. Each project will likely import several of these modules, since ESLint allows extending with multiple sources:

For apps, where there is likely a mixture of server and browser code, the root .eslintrc will likely extend the core configuration (ie: @dominicbarnes) directly. This allows specific subdirectories to be given the configuration sub-module more suited to them.

For example, in a project that uses node.js for the server, with deku on the client:

  • .eslintrc: { "extends": "@dominicbarnes" }
  • client/.eslintrc: { "extends": [ "@dominicbarnes/mako", "@dominicbarnes/browser", "@dominicbarnes/deku" }
  • server/.eslintrc: { "extends": "@dominicbarnes/node" }

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.