1.eslint
1.1 Description
1) ESLint inspection tool is a code specifications
2) It defines a number of specific rules, once your code violates a rule, eslint will make very useful tips
3) official website: http: //eslint.org/
4) Basic has replaced the previous JSLint
1.2 ESLint provide some support
1 IS
2) JSX
3) style inspection
4) Custom error and tips
1.3 ESLint provides the following check
1) syntax error checking
2) unimportant or missing punctuation, such as: semicolon
3) the block of code can not run
4) parameter is not used to remind
5) ensure the unified regular pattern, such as: sass or less
6) Check the variable name
Error rating 1.4 There are three rules
1) 0: Disable rule.
2) 1: open the rule, and as a warning (Print yellow font)
3) 2: Open the rule, and as an error (Print red font)
Change the configuration file, you need to re-run npm run dev