0.0.9 • Published 5 months ago
eslint-config-yuanqing v0.0.9
eslint-config-yuanqing
An opinionated ESLint configuration for TypeScript and Preact projects
Features
- No semi-colons a la Standard
- Auto-formatting with Prettier
- Auto-sorting of
import
statements - Auto-sorting of object keys and JSX
prop
keys - Rules for hooks
Usage
Install:
$ npm install --save-dev eslint@8 prettier@3 typescript@5
$ npm install --save-dev --save-exact \
eslint-config-yuanqing@0.0.9 \
@typescript-eslint/eslint-plugin@6.13.2 \
eslint-plugin-import@2.29.0 \
eslint-plugin-prettier@5.0.1 \
eslint-plugin-react@7.33.2 \
eslint-plugin-react-hooks@4.6.0 \
eslint-plugin-simple-import-sort@10.0.0 \
eslint-plugin-sort-keys-fix@1.1.2
Then, update package.json
as follows:
{
"scripts": {
"fix": "eslint --fix 'src/**/*.{ts,tsx}'",
"lint": "eslint 'src/**/*.{ts,tsx}'"
},
"eslintConfig": {
"extends": "yuanqing",
"root": true
},
"prettier": "eslint-config-yuanqing/prettier"
}
License
0.0.9
5 months ago
0.0.9-alpha.0
5 months ago
0.0.8-alpha.0
12 months ago
0.0.8
12 months ago
0.0.7-alpha.1
1 year ago
0.0.7-alpha.0
1 year ago
0.0.7-alpha.3
1 year ago
0.0.7-alpha.2
1 year ago
0.0.7
1 year ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago