4.0.1 • Published 8 years ago

eslint-config-tribou v4.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

eslint-config-tribou

npm
version Build
Status Project Status: Moved to https://github.com/tribou/eslint-plugin-tribou –
The project has been moved to a new location, and the version at that location
should be considered
authoritative. to eslint-plugin-tribou bitHound
Code

Start with JS Standard Style but push towards better readability, git-awareness, vim-usability, and React and ES6 best practices.

This project has moved to

eslint-plugin-tribou

For backwards-compatibility to >= v3, use eslint-plugin-tribou@^0.2.0. To get the latest rules for a new project, install eslint-plugin-tribou@latest.

Quick Start

npm install --save-dev \
    eslint-config-tribou@^3.0.0 \
    babel-eslint@^7.1.0 \
    eslint@^3.9.1 \
    eslint-config-airbnb@^15.0.1 \
    eslint-config-standard@^10.2.1 \
    eslint-plugin-flowtype@^2.25.0 \
    eslint-plugin-import@^2.1.0 \
    eslint-plugin-jsx-a11y@^5.0.3 \
    eslint-plugin-promise@^3.3.1 \
    eslint-plugin-react@^7.0.1 \
    eslint-plugin-standard@^3.0.1

Then add the following to your .eslintrc:

{
  "extends": [
    "tribou"
  ]
}

Or add an .eslintrc.yml:

extends:
  - tribou

# Wow, that was easier... 😉

By default, Flow typing is required for an entire project since eslint-plugin-flowtype will require the \\ @flow annotation to be set at the top of every file and subsequently check for all other flow annotation requirements in that file. This allows new projects to enforce Flow typing on every file from the start.

If you do not wish to use Flow typing on every file (or at all) in a project, this config can still enforce all of its other standards (including Flow linting on files that do have the // @flow annotation). To disable this "universal" Flow typing requirement in your .eslintrc:

{
  "extends": [
    "tribou"
  ],
  "settings": {
    "flowtype": {
      "onlyFilesWithFlowAnnotation": true
    }
  }
}

Or in your .eslintrc.yml:

extends:
  - tribou

settings:
  flowtype:
    onlyFilesWithFlowAnnotation: true
4.0.1

8 years ago

4.0.0

8 years ago

3.1.0

9 years ago

3.0.0

9 years ago

2.0.0

9 years ago

1.9.0

9 years ago

1.8.3

9 years ago

1.8.2

9 years ago

1.8.1

9 years ago

1.8.0

9 years ago

1.7.1

9 years ago

1.7.0

9 years ago

1.6.1

9 years ago

1.6.0

9 years ago

1.5.1

9 years ago

1.5.0

9 years ago

1.4.0

9 years ago

1.3.0

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago