feat: add react and all

This commit is contained in:
Anthony Fu
2020-08-12 19:24:32 +08:00
parent b962266ba1
commit a7fbdcad4b
15 changed files with 483 additions and 124 deletions

12
packages/react/index.js Normal file
View File

@@ -0,0 +1,12 @@
module.exports = {
extends: [
"plugin:react/recommended",
'@antfu/eslint-config-ts',
],
"rules": {
"jsx-quotes": [
"error",
"prefer-double"
]
}
}

View File

@@ -0,0 +1,29 @@
{
"name": "@antfu/eslint-config-react",
"version": "0.2.14",
"description": "",
"main": "index.js",
"keywords": [],
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
"scripts": {
"lint": "eslint . --config=index.js"
},
"files": [
"index.js"
],
"peerDependencies": {
"eslint": ">=7.4.0"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@antfu/eslint-config-ts": "workspace:*",
"eslint-plugin-react": "^7.20.5"
},
"devDependencies": {
"eslint": "^7.6.0",
"typescript": "^3.9.7"
}
}