- plugins definds which plugins will be used in this project.
- extends definds which rules will be used in project.
- some of plugins, like jsx-a11y, if its recommends configuration configured in extends section, it'll not need to include plugin name into plugins section in eslint configuration files. because it includes itself into plugins section in its source code
- some of plugins, like mocha, its name has to be configured in plugins section even you configured its recommends configuration in extends section, because it does not include itself into plugins section in it source code.
- eslint ignores node_modules folder in the project root folder by default, but it does not ignore the other node_modules not in project root. Have to put it into .eslintignore
Last active
February 23, 2019 13:53
-
-
Save henrywang/c38268ecbc3d4cf3639a9da36455b6a9 to your computer and use it in GitHub Desktop.
ESLint tips
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment