0.5.1 • Published 7 years ago
eslint-config-bigbigbo v0.5.1
eslint-config-bigbigbo
A eslint configuration that lint your .js(x) and .ts(x) file.
Install
use npm:
npm install eslint-config-bigbigbo -Duse yarn:
yarn add eslint-config-bigbigbo -DUsage
if you just lint .js file, edit your .eslintrc file:
{
extends: "bigbigbo"
}lint .jsx file, edit your .eslintrc file:
{
extends: "bigbigbo/javascriptreact"
}lint .ts file, edit your .eslintrc file:
{
extends: "bigbigbo/typescript"
}lint .tsx file, edit your .eslintrc file:
{
extends: "bigbigbo/typescriptreact"
}if your project contains multiple file types, edit your .eslintrc file:
{
extends: [
"bigbigbo/lib/javascript",
"bigbigbo/lib/javascriptreact",
"bigbigbo/lib/typescript",
"bigbigbo/lib/typescriptreact"
]
}Other
if you use vscode, install VS Code Eslint extension and edit your setting.json:
{
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "typescript",
"autoFix": true
},
{
"language": "typescriptreact",
"autoFix": true
}
]
}Changelog
see CHANGELOG.md