1.0.16 • Published 5 years ago

influmy-lint v1.0.16

Weekly downloads
6
License
ISC
Repository
gitlab
Last release
5 years ago

Linter package README.md

Influmy lint

Install

  1. Install influmy-lint package as a devDependency:
npm i -D influmy-lint
  1. Import eslint and stylelint configurations in package.json:
  ...

  "eslintConfig": {
   "extends": ["./node_modules/influmy-lint/.eslintrc.js"]
  },
  "stylelint": {
    "extends": "./node_modules/influmy-lint/stylelint.config.js"
  },

  ...
  1. If you have configured your IDE, and you have any problem related with linters, now you might see this problems reflected.

If you don't have your IDE configured see the IDE configuration section

  1. Add these scripts in your package.json:
...

"scripts": {
  ...
  "eslint": "./node_modules/.bin/eslint ./src",
  "stylelint": "./node_modules/.bin/stylelint \"**/*.{js,jsx}\"",
  "format": "npm run prettier -- --write --config ./node_modules/influmy-lint/.prettierrc.js",
  "prettier": "./node_modules/.bin/prettier \"**/*.{js,jsx,css,json}\"",
},

...

Usage