0.0.24 • Published 6 years ago
eslint-config-toolkit-base v0.0.24
eslint-config-toolkit-base
Base ESLint config for
@carbon/toolkitprojects
Usage
Run the following command using npm:
npm install eslint-config-toolkit-base --saveIf you prefer Yarn, use the following command instead:
yarn add eslint-config-toolkit-baseIn addition, eslint-config-toolkit-base requires eslint and eslint-plugin-import to be installed. You can install the correct versions of each package by running the following command:
npm info "eslint-config-toolkit-base@latest" peerDependenciesThis typically gives you an output like:
{ eslint: '^3.19.0', 'eslint-plugin-import': '^2.2.0' }Which you can then use like:
npm i eslint@^3.19.0 eslint-plugin-import@^2.2.0 --save-devFinally, just add "extends": "toolkit-base" to your .eslintrc.
In addition, we also have a sample project available in the examples folder of this project.