All-in-one code linter and formatter for TypeScript and JavaScript
- Install the package:
npm install @dauta/uniform --save-dev or yarn add -D @dauta/uniform
- Run the init command:
npx uniform or yarn uniform
Note: You might need to restart ESLint server in your IDE for the config files to get picked up.
Installing the package will install eslint and prettier as a dependency of your project, along with several plugins.
Running the uniform script, will generate configuration files based on your choices and copy them into the root of your project. This will allow your IDE (or whatever extension you're using to run eslint) to read the correct configurations and give realtime feedback on your code.
Uniform is focused on user-friendlines and readability.
To lint your code manually, run npx uniform lint or yarn uniform lint.
To auto-fix some issues, add the --fix flag to the above command.
That's it :)
We recommend running uniform with ESLint extension and setting up the "Format on save" option.
✨ Enjoy!
