eslint-plugin-technobuddha
v1.0.0
Published
ESLint Plugin For Import Aliases and TSPaths
Downloads
66
Maintainers
Readme
eslint-plugin-technobuddha
A small set of ESLint rules for enforcing best practices in Node.js and TypeScript projects.
Installation
Using npm:
npm install --save-dev eslint-plugin-path-alias
Using yarn:
yarn add --dev eslint-plugin-path-alias
Configuration eslint.config.js
(requires eslint>=v8.57.0)
import eslintPluginTechnobuddha from 'eslint-plugin-technobuddha';
export default [
{
plugins: {
technobuddha: technobuddhaPlugin,
},
...technobuddhaPlugin.configs.recommended,
},
];
Configuration .eslintrc.json
(legacy)
{
"extends": ["plugin:technobuddha/recommended"],
"rules": {
"technobuddha/optimize-imports": ["error", "module.exports"]
}
}
Rules
| | |
| :-: | :------------------------------------------------------------------------------------------------------------- |
| 💼 | Configurations enabled in. |
| ✅ | Set in the recommended
configuration. |
| 🔧 | Automatically fixable by --fix
. |
| 💡 | Manually fixable by editor suggestions
. |
| ❌ | Deprecated. |
| Name | Description | 💼 | 🔧 | 💡 | ❌ |
| :-------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-: | :-: | :-: | :-: |
| optimize-imports | Ensure that all imports are in the "optimal" format. With customizable rules for inclusion/exclusion of file extensions, elimination of extra path components, importing directories, and use of aliases from tsconfig.json
paths and/or package.json
imports | ✅ | 🔧 | | |