StartupWebProgramming2
벤처창업 웹 프로그래밍2
- ESLint installation
npm init
npx eslint --init
- Q. How would you like to use ESLint?
- To check syntax, find problems, and enforce code style
- Q. What type of modules does your project use?
- JavaScript modules (import/export)
- Q. Which framework does your project use?
- React
- Q. Does your project use TypeScript?
- No
- Q. Where does your code run?
- Browser
- Q. How would you like to define a style for your project?
- Use a popular style guide
- Q. Which style guide do you want to follow?
- Standard: https://github.com/standard/standard
- Q. What format do you want your config file to be in?
- JavaScript
- Q. How would you like to use ESLint?
- react create project
npx create-react-app my-app
- window.localStorage
localStorage.setItem(key, value);
localStorage.setItem('obj', JSON.stringify(obj));
JSON.parse(localStorage.getItem('obj'));
localStorage.getItem(key);
localStorage.removeItem(key);