A plugin that forbids the use of default parameters in functions, methods and constructors. Stars are welcome 😊
- Install the dependency
npm install --save-dev eslint-plugin-no-default-parameters
- Add the plugin to your
.eslintrc.js
file:{ plugins: ["no-default-parameters"], }
- Enable the rule
{ 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
This package is inspired by an eslint-plugin-es rule.