Eslint notes

  1. How do I turn off ESLint
Module. exports = {lintOnSave: false}Copy the code
  1. How to Format automatically
// eslint automatically saves formatting "editor.codeActionsOnSave": {" source.fixall.eslint ": {" source.fixall.eslint ": {" source.fixall.eslint ": {" source.fixall.eslint ": {" source.fixall.eslint ": True} 3, turn off Auto Save (vscode search)Copy the code
  1. How do I configure ESLint rules
Eslint: "space-before-function-paren": "space-before-function-paren": "space-before-function-paren": ["error", "never"] Specification for no Spaces between function names and () -error means error, never means no Spaces, always means Spaces, Warn warn 2, error 2, off 0 5. Restart the project after modifying the configuration in package.jsonCopy the code