chore: change lint rule

pull/242/head
金伟强 3 years ago
parent c9343823a6
commit e7fa3febf2

@ -0,0 +1,7 @@
/**/node_modules/*
node_modules/
dist/
build/
out/
.next/

@ -23,6 +23,6 @@
]
}
],
"react-hooks/exhaustive-deps": "warning"
"react-hooks/exhaustive-deps": "warn"
}
}
}

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
cd ./web && npx lint-staged

@ -1,4 +0,0 @@
export default {
'**/*.js?(x)': ['next lint --fix'],
'**/*.ts?(x)': ['next lint --fix'],
}

@ -7,9 +7,9 @@ export type IAppDetail = {
const AppDetail: FC<IAppDetail> = ({ children }) => {
return (
<>
{children}
</>
<>
{children}
</>
)
}

@ -8,7 +8,7 @@
"start": "next start",
"lint": "next lint",
"fix": "next lint --fix",
"prepare": "cd ../ && husky install"
"prepare": "cd ../ && husky install ./web/.husky"
},
"dependencies": {
"@emoji-mart/data": "^1.1.2",
@ -84,5 +84,13 @@
"miragejs": "^0.1.47",
"postcss": "^8.4.21",
"tailwindcss": "^3.2.7"
},
"lint-staged": {
"**/*.js?(x)": [
"eslint --fix"
],
"**/*.ts?(x)": [
"eslint --fix"
]
}
}
Loading…
Cancel
Save