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
  • 17:51 (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