0.6.0 • Published 2 years ago
eslint-config-goldenthumb v0.6.0
Eslint config
Install
npm install --save-dev eslint eslint-config-goldenthumb
Usage
https://eslint.org/docs/developer-guide/shareable-configs
package.json
{
"eslintConfig": {
"extends": "goldenthumb"
}
}
.eslintrc
{
"extends": "goldenthumb"
}
Subsets
goldenthumb
goldenthumb/react
goldenthumb/typescript
goldenthumb/typescriptreact
base
"extends": "goldenthumb"
basic + react
"extends": "goldenthumb/react"
basic + typescript
"extends": "goldenthumb/typescript"
basic + typescript + react
"extends": "goldenthumb/typescriptreact"
With prettier
npm install --save-dev eslint-config-prettier eslint-plugin-prettier
.package.json
{
"eslintConfig": {
"extends": ["goldenthumb", "plugin:prettier/recommended"]
}
}
Etc
Automatically Fix Code in VS Code
settings.json
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
Run ESLint with the CLI
.package.json
{
"scripts": {
"lint": "eslint '*/**/*.{js,ts,tsx}' --fix"
}
}
0.6.0
2 years ago
0.5.0
4 years ago
0.4.0
4 years ago
0.3.0
4 years ago
0.2.0
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago
0.0.28
5 years ago
0.0.27
5 years ago
0.0.26
5 years ago
0.0.25
5 years ago
0.0.24
5 years ago
0.0.23
5 years ago
0.0.22
5 years ago
0.0.20
5 years ago
0.0.21
5 years ago
0.0.19
5 years ago
0.0.18
5 years ago
0.0.17
5 years ago
0.0.16
5 years ago
0.0.15
5 years ago
0.0.14
5 years ago
0.0.13
5 years ago
0.0.12
5 years ago
0.0.11
5 years ago
0.0.10
5 years ago
0.0.9
5 years ago
0.0.8
5 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.3
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago