Check out example codes for "setup eslint vscode local project". It will help you in understanding the concepts better.

Code Example 1

npm i eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react -g

Learn ReactJs, React Native from akashmittal.com