2.0.0 ⢠Published 6 years ago
lyra-lint v2.0.0
Lyra lint š
Opinated linter library for React
Table of contents
Installation
- Install
lyra-lintpackage:
npm install --save-dev lyra-lintUsage
- Add these scripts to the
package.json*optional:
"lint": "eslint --ignore-path .gitignore .",
"prettier": "prettier --ignore-path .gitignore \"**/*.+(js|json)\"",
"format": "npm run prettier -- --write",
"check-format": "npm run prettier -- --list-different",
"validate": "npm run check-format && npm run lint"- Add as a new property in the
package.jsonto extends lyra-lint configuration: ā
"eslintConfig": {
"extends": ["./node_modules/lyra-lint/.eslintrc.js"]
}- Add as a new property in the
package.jsonin order to find the.prettierrcconfig from the package:
"prettier": "./node_modules/lyra-lint/.prettierrc.js",Scripts
Lint (every JS file except the listed in the project .gitignore file)
$ npm run lintLint and fix problems (the ones eslint can fix by itself)
$ npm run eslint -- --fixFormat JS and JSON files (except the listed in the project .gitignore file)
$ npm run formatPrint the filenames of files that are different from Prettier formatting
$ npm run check-formatExecute the check-format script and the lint script
$ npm run check-formatUsing with Husky
In order to avoid problems with Husky you need to install Eslint and Prettier into your project as a devDependency
1.8.0
6 years ago
2.0.0
6 years ago
1.7.0
6 years ago
1.6.3
6 years ago
1.6.2
6 years ago
1.6.1
6 years ago
1.6.0
6 years ago
1.5.0
6 years ago
1.4.0
6 years ago
1.2.0
6 years ago
1.3.0
6 years ago
1.1.0
6 years ago
1.0.0
6 years ago
1.3.0-beta.0
6 years ago
1.2.0-beta.0
6 years ago
1.1.0-beta.0
6 years ago
1.0.0-beta.0
6 years ago