@chromatix/eslint-config-chromatix
Chromatix custom config for ESLint. Based heavily on the WordPress Coding Standards but with some of our own too.
Last updated 3 months ago by chromatixau .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @chromatix/eslint-config-chromatix 
SYNC missed versions from official npm registry.

eslint-config-chromatix

Shareable config for ESLint for custom standards at Chromatix Digital Agency.

Based heavily on the WordPress Coding Standards but with some of our own too. Most notably, two spaces instead of tabs. Soz.

This config is still in development. If you have suggestions for improvement or if you disagree with anything this config makes you do, feel free to file an issue.

Publishing to npm/yarn

This package auto-deploys to NPM on the master branch, any changes should be Pull Requests, There will need to be a version bump for a publish to be successful

Installation

Install globally to use on any project:

yarn global add @chromatix/eslint-config-chromatix

Install locally to one project:

yarn add --dev @chromatix/eslint-config-chromatix

You'll also need to have ESLint installed in the same manner.

Usage

Frontend / WordPress Javascript

Add this to your .eslintrc.js file:

module.exports = {
  'extends': [
    '@chromatix/chromatix'
  ]
};

Node

Add this to your .eslintrc.js file:

module.exports = {
  'extends': [
    '@chromatix/eslint-config-chromatix/node'
  ]
};

Vue/Nuxt

Add this to your .eslintrc.js file:

module.exports = {
  'extends': [
    '@chromatix/eslint-config-chromatix/vue'
  ]
};

Then:

  • Using globally?
    Run eslint "**/*.js".

  • Using locally?
    Add "lint:js": "eslint \"**/*.js\"" to your package.json's "scripts" section, then run yarn lint:js

Additional Tips

  • Outputting code coverage reports with Jest? Add --ignore-pattern coverage/ to your eslint command.
  • Want ESLint to list the filenames it is linting, even if everything passes? Add cross-env as a dev dependency and then add cross-env DEBUG=eslint:cli-engine before your eslint command.

See also

License

MIT.

Current Tags

  • 0.2.5                                ...           latest (3 months ago)

29 Versions

  • 0.2.5                                ...           3 months ago
  • 0.2.4                                ...           3 months ago
  • 0.2.3                                ...           6 months ago
  • 0.2.2                                ...           6 months ago
  • 0.2.1                                ...           6 months ago
  • 0.2.0                                ...           6 months ago
  • 0.1.4                                ...           6 months ago
  • 0.1.3                                ...           7 months ago
  • 0.1.2                                ...           7 months ago
  • 0.1.1                                ...           7 months ago
  • 0.1.0                                ...           7 months ago
  • 0.0.18                                ...           7 months ago
  • 0.0.17                                ...           8 months ago
  • 0.0.16                                ...           8 months ago
  • 0.0.15                                ...           2 years ago
  • 0.0.14                                ...           3 years ago
  • 0.0.13                                ...           3 years ago
  • 0.0.12                                ...           3 years ago
  • 0.0.11                                ...           3 years ago
  • 0.0.10                                ...           3 years ago
  • 0.0.9                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.7                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 36
Dependencies (4)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |