@blockone/eslint-config-blockone

eslint config for use in Block.one projects

Usage no npm install needed!

<script type="module">
  import blockoneEslintConfigBlockone from 'https://cdn.skypack.dev/@blockone/eslint-config-blockone';
</script>

README

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",
    }
}