We are followed SamVer 2.0, this started from version 2.0.0, then we will try our best to avoide the dependency hell.
npm install -g freelint
yarn global add freelint
npm install freelint --save-dev
yarn add freelint --dev
# ...# Add npm task in package.json."script":
In your project's directiry.
npm run freelint
yarn run freelint
- If you are using ES6 import/export feature, and webpack like build tool with a resolve setting, you should extract the resolve settings to a new file named
webpack.resolve.js, and place it to
configdir in root dir, we know it's a dirty code, if you have any good solution, don't hesitated to create a pull request.(e.g.Demo)
How do I make the output all colorful and pretty?
snazzy is the default output format for cmd
freelint now, you can also use any other
format library, just need to use the base cmd
$ freelint-base | customFormat
How do I ignore files?
coverage/**, hidden files/folders
.), and all patterns in a project's root
.gitignore file are
Sometimes you need to ignore additional folders or specific minified files. To do that, add
freelint.ignore property to
- Add reporter function by setting from cli