@typed-sigterm/eslint-config
v1.7.1
Published
Typed SIGTERM's ESLint config.
Readme
Typed SIGTERM's ESLint Config

Anything from @antfu/eslint-config except:
- 1tbs-style braces
- Requires semi
- Allows declaring multiple variables in a single statement
- Allows type and value identifiers to share the same name
- Allows JSDoc
@property@returnsto be without description - AutoCorrect - improve copywriting, correct spaces, words, and punctuations between CJK (Chinese, Japanese, Korean)
Correct example:
import process from 'node:process';
// Oh it's 叶文洁
class YeWenjie {
public think() {
return new Promise<unknown>((resolve) => {
if (globalThis.world)
console.error('Why the world is defined?');
else
console.error('Why the world is undefined?');
setTimeout(() => resolve(41), 114514);
});
}
}
const yeWenjie = new YeWenjie();
if (await yeWenjie.think() === 41) {
console.error('Physics no longer exists!');
process.exit(1);
} else {
process.exit(0);
}You can view all details at Config Inspector.
Usage
- Install
@typed-sigterm/eslint-configwith your package manager - Install
@antfu/eslint-configwith your package manager - Create
eslint.config.mjsin your project root:import ts from '@typed-sigterm/eslint-config'; export default ts(); - Add script for
package.json:{ "scripts": { "lint": "eslint ." } }
Now you can run npm run lint to lint your code.
VS Code support (auto fix on save)
See documentation of @antfu/eslint-config.
Credits
The project is a wrapper of @antfu/eslint-config. Thanks to Anthony Fu for the great work!
