A plugin that forbids the use of default parameters in functions, methods and constructors.
npm install eslint-plugin-no-default-parameters
A plugin that forbids the use of default parameters in functions, methods and constructors.
Stars are welcome π
1. Install the dependency
``bash`
npm install --save-dev eslint-plugin-no-default-parameters
.eslintrc.js
2. Add the plugin to your file:`
js`
{
plugins: ["no-default-parameters"],
}
`
3. Enable the rule
js``
{
rules: {
"no-default-parameters/enforce": ["error"],
}
}
Publishing this package we are committing ourselves to the following code quality standards:
- π€ Respect Semantic Versioning: No breaking changes in patch or minor versions
- π€ No surprises in transitive dependencies: Use the bare minimum dependencies needed to meet the purpose
- π― One specific purpose to meet without having to carry a bunch of unnecessary other utilities
- β
Tests as documentation and usage examples
- π Well documented ReadMe showing how to install and use
- βοΈ License favoring Open Source and collaboration
- π¦ Linting en JavaScript y TypeScript: Used as a template to bootstrap this plugin
- π€ Codely's ESLint + Prettier configuration: Opinionated linting configuration considering modern TypeScript best practices and providing consistency to your import statements. Valid for your JavaScript or TypeScript projects
Opinionated skeletons ready for different purposes:
- β¨π± JavaScript Basic Skeleton
- π·π± TypeScript Basic Skeleton
- π·πΈοΈ TypeScript Web Skeleton
- π·π TypeScript API Skeleton
- π·β¨ TypeScript DDD Skeleton