@1f8/eslint-config-typescript-nodejs 中文文档教程
ESlint TYPESCRIPT Setup for 1F8
帮助您设计代码样式。 不相信有什么正确的方法,但这种方法符合我们的风格。
Instructions
yarn add -D @1f8/eslint-config-typescript-nodejs
npx install-peerdeps --dev @1f8/eslint-config-typescript-nodejs --yarn
cp node_modules/@1f8/eslint-config-typescript-nodejs/next.eslintrc.js .eslintrc.js
您可以将这些脚本添加到 lint
"scripts": {
"lint": "eslint --ignore-path .gitignore --ext ts .",
"lint:fix": "eslint --ignore-path .gitignore --ext ts . --fix",
}
您可以覆盖规则以满足您的需要通过更改 eslintfile
{
"extends": [
"@1f8/eslint-config-typescript-nodejs"
],
"rules": {
"no-console": false,
}
}
ESlint TYPESCRIPT Setup for 1F8
Helps you with styling your code. Don't believe there's any correct way, but this way fits our style.
Instructions
yarn add -D @1f8/eslint-config-typescript-nodejs
npx install-peerdeps --dev @1f8/eslint-config-typescript-nodejs --yarn
cp node_modules/@1f8/eslint-config-typescript-nodejs/next.eslintrc.js .eslintrc.js
You can add these scripts in to lint
"scripts": {
"lint": "eslint --ignore-path .gitignore --ext ts .",
"lint:fix": "eslint --ignore-path .gitignore --ext ts . --fix",
}
You can overwrite rules to fit your needs by changing the eslintfile
{
"extends": [
"@1f8/eslint-config-typescript-nodejs"
],
"rules": {
"no-console": false,
}
}