{"id":19691,"library":"eslint-plugin-async","title":"eslint-plugin-async","description":"An ESLint plugin providing linting rules for async functions, specifically focusing on missing await expressions. Version 0.1.1 is the latest and only stable release. It is a small, early-stage plugin with limited rules (e.g., 'missing-await-in-async-fn'). No recent updates; development appears stagnant.","status":"abandoned","version":"0.1.1","language":"javascript","source_language":"en","source_url":"https://github.com/vutran/eslint-plugin-async","tags":["javascript","eslint","eslint-plugin","eslintplugin","async"],"install":[{"cmd":"npm install eslint-plugin-async","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-async","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-async","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESLint expects the short plugin name ('async') in .eslintrc; the full npm package name is only used for installation.","wrong":"plugins: ['eslint-plugin-async']","symbol":"plugin","correct":"plugins: ['async']"},{"note":"Rule must be prefixed with plugin namespace 'async/'.","wrong":"\"missing-await-in-async-fn\": 1","symbol":"missing-await-in-async-fn","correct":"\"async/missing-await-in-async-fn\": 1"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"plugins\": [\"async\"],\n  \"rules\": {\n    \"async/missing-await-in-async-fn\": \"error\"\n  }\n}\n\n// Example file: test.js\nasync function doSomething() {\n  // This will trigger the rule because await is missing\n  Promise.resolve();\n}","lang":"javascript","description":"Shows configuration enabling the missing-await rule, which warns if an async function does not use await."},"warnings":[{"fix":"Consider using eslint-plugin-unicorn's 'no-empty-await' or custom rules instead.","message":"The plugin is no longer maintained; it has only one rule and may not work with newer ESLint versions.","severity":"gotcha","affected_versions":">=0.1.1"},{"fix":"Alternatively, use ESLint's built-in 'require-await' rule (ESLint >= 3.11.0) which also catches functions that can be synchronous.","message":"The rule 'missing-await-in-async-fn' does not check for a common case: promise returned without await inside async function.","severity":"gotcha","affected_versions":">=0.1.1"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Ensure rules are under 'rules' key: {\"rules\": {\"async/missing-await-in-async-fn\": 1}}","cause":"Putting rule configuration directly under 'async' key instead of inside 'rules' object.","error":"Error: ESLint configuration in .eslintrc is invalid: - Unexpected top-level property \"async\""},{"fix":"Run 'npm install --save-dev eslint-plugin-async' in your project.","cause":"Plugin not installed or installed globally but ESLint is local.","error":"Error: Failed to load plugin 'async' declared in '.eslintrc': Cannot find module 'eslint-plugin-async'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}