eslint-config-spec

2.1.2 • Public • Published

eslint-config-spec

Provides a set of ESLint rules and plugins to be shared by @spec/cli projects.

Usage

Our default export contains all of our ESLint rules, including ECMAScript ES2015+ and React. It requires eslint, eslint-plugin-import, eslint-plugin-react, and eslint-plugin-jsx-a11y. By default, you can add this package to your project by running the following command:

npm i eslint-config-spec --save-dev

You can install the correct versions of each peer Dependency by running the following command:

npm info "eslint-config-spec@latest" peerDependencies

This typically gives you an output like:

{ eslint: '^3.19.0', 'eslint-plugin-import': '^2.2.0', 'eslint-plugin-jsx-a11y': '^4.0.0', 'eslint-plugin-react', '^6.10.3' }

Which you can then use like:

npm i eslint@^3.19.0 eslint-plugin-import@^2.2.0 eslint-plugin-jsx-a11y@^4.0.0 eslint-plugin-react@^6.10.3 --save-dev

Finally, just add "extends": "spec" to your .eslintrc.

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-spec

Weekly Downloads

0

Version

2.1.2

License

none

Last publish

Collaborators

  • joshblack