JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 29
  • Score
    100M100P100Q63100F
  • License ISC

Default style for JavaScript at Hearsay Social

Package Exports

  • eslint-config-hss

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-hss) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

eslint-config-hss

Hearsay Social's base JavaScript style.

Usage

Install this package, and eslint:

npm install --save-dev eslint eslint-config-hss

Add this extends value to the root level of your .eslintrc:

{
    "extends": "eslint-config-hss",
    // ...
}

Additional Configurations

ESLint allows you to "extend" from multiple base configurations. If you use any of the below features, you may add these additional specialized base configurations. Each configuration contains only the rules associated with the given feature so you may combine them as your project demands.

ES6

{
    "extends": [
        "eslint-config-hss",
        "eslint-config-hss/es6"
    ],
    // ...
}

React

Note: This config requires that the package being linted have eslint-plugin-react@^6.7.1 installed .

{
    "extends": [
        "eslint-config-hss",
        "eslint-config-hss/es6",
        "eslint-config-hss/react"
    ],
    // ...
}

Microtemplates

When linting Underscore templates with eslint-plugin-microtemplates, some rules don't make sense. To ignore those rules, extend from this config. Note: This config should not be applied to any js files, just html files.

{
    "extends": [
        "eslint-config-hss/microtemplates"
    ],
    // ...
}

Changelog

5.1.0

  • Add shared config for Underscore templates.

5.0.0

  • Add shared config for React code.
  • Convert no-mixed-operators and no-multi-spaces from warnings to errors.
  • Disable max-statements.

4.0.0

  • Begin enforcing indentation. (#7)