Linter package README.md
Influmy lint
Install
- Install
influmy-lint
package as a devDependency:
npm i -D influmy-lint
- 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"
},
...
- 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
- 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