@betalectic-reusejs/shared-config-eslint-nobejs

1.0.2 • Public • Published

NPM version NPM downloads NPM Publish

Steps to setup EsLint Nobejs

  1. Add Following packages as dev-dependencies:

Run Following Command to do so:

yarn add eslint @betalectic-reusejs/shared-config-eslint-nobejs eslint-plugin-standard eslint-plugin-jest -D
'or'
yarn add --dev eslint @betalectic-reusejs/shared-config-eslint-nobejs eslint-plugin-standard eslint-plugin-jest
  1. Now create a new file called .eslintrc.js in your project root, and add following code fragment to the file
module.exports = {
  extends: ["./node_modules/@betalectic-reusejs/shared-config-eslint-nobejs"],
};
  1. In your package .json create a lint script as shown below:
"lint": "yarn eslint ./ --ext .js",
"lint-fix": "yarn eslint ./ --ext .js --fix",

You have to give the target for the linting, here our sample project have js files so we give these file(all with given extension) as target for linting.

node_modules is automatically ignored in our package, you can add other ignore options by using ignorePatterns: ["dist/"] in .eslintrc.cjs or pass it in lint script as yarn eslint ./ --ext .js --ignore-pattern 'dist/'

Readme

Keywords

none

Package Sidebar

Install

npm i @betalectic-reusejs/shared-config-eslint-nobejs

Weekly Downloads

28

Version

1.0.2

License

none

Unpacked Size

2.97 kB

Total Files

4

Last publish

Collaborators

  • shrey_dhyani
  • rjvim