Registry / http-networking / eslint-plugin-async

eslint-plugin-async

JSON →
library0.1.1jsnpmunverified

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.

npm install eslint-plugin-async
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-ASYN
E
eslint-plugin-async
http-networkingjavascriptv0.1.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
plugins: ['async']
plugins: ['eslint-plugin-async']
ESLint expects the short plugin name ('async') in .eslintrc; the full npm package name is only used for installation.
missing-await-in-async-fn
"async/missing-await-in-async-fn": 1
"missing-await-in-async-fn": 1
Rule must be prefixed with plugin namespace 'async/'.

Shows configuration enabling the missing-await rule, which warns if an async function does not use await.

// .eslintrc.json { "plugins": ["async"], "rules": { "async/missing-await-in-async-fn": "error" } } // Example file: test.js async function doSomething() { // This will trigger the rule because await is missing Promise.resolve(); }
Debug
Known issues
gotchaThe plugin is no longer maintained; it has only one rule and may not work with newer ESLint versions.
fix
Consider using eslint-plugin-unicorn's 'no-empty-await' or custom rules instead.
affects: >=0.1.1
gotchaThe rule 'missing-await-in-async-fn' does not check for a common case: promise returned without await inside async function.
fix
Alternatively, use ESLint's built-in 'require-await' rule (ESLint >= 3.11.0) which also catches functions that can be synchronous.
affects: >=0.1.1
Errors
Common errors & fixes
Error: ESLint configuration in .eslintrc is invalid: - Unexpected top-level property "async"
Putting rule configuration directly under 'async' key instead of inside 'rules' object.
fix
Ensure rules are under 'rules' key: {"rules": {"async/missing-await-in-async-fn": 1}}
Error: Failed to load plugin 'async' declared in '.eslintrc': Cannot find module 'eslint-plugin-async'
Plugin not installed or installed globally but ESLint is local.
fix
Run 'npm install --save-dev eslint-plugin-async' in your project.
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
eslint-plugin-async — npm install eslint-plugin-async · libregistry