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
  • 08:10 (UTC -12:00)
View GitHub Profile
{
"*.js": "npx eslint --no-fix src"
}
$ touch .eslintrc
{
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react"
{
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react"
$ npx eslint --no-fix src
import React from 'react';
import logo from './logo.svg';
import './App.css';
function App() {
const a = "";
return (
<div className="App">
import React from 'react';
const a = "";
$ npx eslint --no-fix src
/${ProjectName}/src/App.js
7:12 error Strings must use singlequote quotes
/${ProjectName}/src/App.test.js
4:1 error 'test' is not defined no-undef
5:10 error 'React' must be in scope when using JSX react/react-in-jsx-scope
7:3 error 'expect' is not defined no-undef
/${ProjectName}/src/index.js
11:3 error 'document' is not defined no-undef
$ npx eslint --no-fix src
/${ProjectName}/src/App.js
7:12 error Strings must use singlequote quotes
/${ProjectName}/src/App.test.js
4:1 error 'test' is not defined no-undef
5:10 error 'React' must be in scope when using JSX react/react-in-jsx-scope
7:3 error 'expect' is not defined no-undef
/${ProjectName}/src/index.js
11:3 error 'document' is not defined no-undef
/${ProjectName}/src/reportWebVitals.js
App.test.js
/src/index.js
/src/reportWebVitals.js