Closed ssssota closed 3 years ago
npm run dev
でhttp://localhost:3000
にたちます
/
/my
/playlist/XXXX
❯ npm run lint
> functions@ lint /Users/taka/Workspace/github.com/kanko-dori/favox
> eslint src/**/{*.js,*.jsx,*.ts,*.tsx} --fix
Oops! Something went wrong! :(
ESLint: 7.12.1
No files matching the pattern "src/**/*.jsx" were found.
Please check for typing mistakes in the pattern.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! functions@ lint: `eslint src/**/{*.js,*.jsx,*.ts,*.tsx} --fix`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the functions@ lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/taka/.npm/_logs/2020-11-11T14_47_07_635Z-debug.log
lint できなかった
❯ cat package.json | grep eslint
"lint": "eslint src/**/{*.js,*.ts,*.tsx} --fix",
❯ npm run lint
> functions@ lint /Users/taka/Workspace/github.com/kanko-dori/favox
> eslint src/**/{*.js,*.ts,*.tsx} --fix
/Users/taka/Workspace/github.com/kanko-dori/favox/src/frontend/pages/playlist/[id].tsx
7:11 warning 'playlistId' is assigned a value but never used @typescript-eslint/no-unused-vars
✖ 1 problem (0 errors, 1 warning)
*.jsx
を消したら動いた
WHY
76
スタイリングとコンポネント
WHAT