0.2.0 • Published 2 years ago

eslint-config-nevermined v0.2.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Nevermined linter

Linter configuration made by Nevermined team

How to use Nevermined linter

  1. Install the Nevermined Linter and dependencies
npm install --save-dev eslint eslint-config-nevermined eslint-config-next eslint-config-prettier eslint-plugin-import prettier prettier-package-json @typescript-eslint/eslint-plugin @typescript-eslint/parser
  1. Create .eslintrc.json file
{
  "extends": [
    "nevermined"
  ]
}
  1. Create prettier.config.js file (optional)
module.exports = {
  ...require('eslint-config-nevermined/prettier.config'),
};
  1. Create .eslintignore file
node_modules
  1. Add the script in package.json
{
  "scripts": {
    "lint": "eslint ./"
  },
}
  1. Run the linter
npm run lint