refactor: rename folders
This commit is contained in:
19
packages/eslint-config-react/index.js
Normal file
19
packages/eslint-config-react/index.js
Normal file
@@ -0,0 +1,19 @@
|
||||
module.exports = {
|
||||
extends: [
|
||||
'plugin:react/recommended',
|
||||
'plugin:react-hooks/recommended',
|
||||
'@antfu/eslint-config-ts',
|
||||
],
|
||||
settings: {
|
||||
react: {
|
||||
version: '17.0',
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'jsx-quotes': [
|
||||
'error',
|
||||
'prefer-double',
|
||||
],
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
},
|
||||
}
|
||||
31
packages/eslint-config-react/package.json
Normal file
31
packages/eslint-config-react/package.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "@antfu/eslint-config-react",
|
||||
"version": "0.37.0",
|
||||
"description": "",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antfu/eslint-config",
|
||||
"keywords": [
|
||||
"eslint-config"
|
||||
],
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"scripts": {
|
||||
"lint": "eslint . --config=index.js"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": ">=7.4.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config-ts": "workspace:*",
|
||||
"eslint-plugin-react": "^7.32.2",
|
||||
"eslint-plugin-react-hooks": "^4.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.36.0",
|
||||
"react": "^18.2.0",
|
||||
"typescript": "^5.0.2"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user