2.1.2 • Published 8 years ago
eslint-config-spec v2.1.2
eslint-config-spec
Provides a set of ESLint rules and plugins to be shared by
@spec/cliprojects.
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-devYou can install the correct versions of each peer Dependency by running the following command:
npm info "eslint-config-spec@latest" peerDependenciesThis 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-devFinally, just add "extends": "spec" to your .eslintrc.