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
  • 06:31 (UTC -12:00)
View GitHub Profile
$ npx eslint --no-fix src
/${ProjectName}/src/App.js
7:12 error Strings must use singlequote quotes
✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the `--fix` option.
App.test.js
/src/index.js
/src/reportWebVitals.js
$ 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
$ 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
import React from 'react';
const a = "";
import React from 'react';
import logo from './logo.svg';
import './App.css';
function App() {
const a = "";
return (
<div className="App">
$ npx eslint --no-fix src
{
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react"
{
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react"
$ touch .eslintrc