Skip to content

Instantly share code, notes, and snippets.

View ninezero90hy's full-sized avatar
🤼‍♂️
Maybe, I getting exercise every days!

Ninezero ninezero90hy

🤼‍♂️
Maybe, I getting exercise every days!
  • Seoul, Korea
  • 07:17 (UTC -12:00)
View GitHub Profile
import React from "react";
// 절대 경로를 사용해서 컴포넌트 사용
import Text from "components/atoms/Text";
const Textarea = () => {
return (
<>
<Text />
</>
)
.
├── README.md
├── jsconfig.json
├── package.json
├── public
│ ├── favicon.ico
│ ├── index.html
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
{
"compilerOptions": {
"baseUrl": "src"
}
}
$ git commit -m "Update App.js"
✔ Preparing...
✔ Running tasks...
✔ Applying modifications...
✔ Cleaning up...
[main 4d290a9] Update App.js
6 files changed, 74 insertions(+), 25 deletions(-)
create mode 100644 .eslintignore
create mode 100644 .eslintrc
create mode 100755 .husky/pre-commit
import React from 'react';
import logo from './logo.svg';
import './App.css';
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo"/>
$ git commit -m "Update App.js"
✔ Preparing...
⚠ Running tasks...
❯ Running tasks for *.js
✖ npx eslint --no-fix src [FAILED]
↓ Skipped because of errors from tasks. [SKIPPED]
✔ Reverting to original state because of errors...
✔ Cleaning up...
✖ npx eslint --no-fix src:
/${ProjectName}/src/App.js
import React from 'react';
import logo from './logo.svg';
import './App.css';
function App() {
const a = '';
const b = "";
return (
$ npx husky add .husky/pre-commit "npx lint-staged"
husky - created .husky/pre-commit
import React from 'react';
import logo from './logo.svg';
import './App.css';
function App() {
const a = '';
return (
<div className="App">
$ npx eslint --fix src