eslint-config-blockone
EOSIO js linting configuration
Run the following to get started
npm
> npm install --save-dev eslint
> npm install --save-dev eslint-plugin-no-exclusive-tests
> npm install --save-dev @blockone/eslint-config-blockone
yarn
> yarn add --dev eslint
> yarn add --dev eslint-plugin-no-exclusive-tests
> yarn add --dev @blockone/eslint-config-blockone
Add the following to your .eslintrc or .eslintrc.json
{
"extends": "@blockone/blockone"
}
Add a script to your package.json for linting
{
"scripts": {
"lint" : "eslint --ext .js,.jsx,.ts,.tsx src",
}
}