-
Notifications
You must be signed in to change notification settings - Fork 0
ESLint 常见错误
huang-qing edited this page Apr 24, 2017
·
1 revision
Error: Cannot find module 'eslint-config-defaults/configurations/eslint'
$ npm install --save eslint-config-defaults
The react/wrap-multilines rule is deprecated. Please use the react/jsx-wrap-multilines rule instead.
eslint --init
? How would you like to configure ESLint? Answer questions about your style
? Are you using ECMAScript 6 features? Yes
? Are you using ES6 modules? Yes
? Where will your code run? Browser
? Do you use CommonJS? Yes
? Do you use JSX? No
? What style of indentation do you use? Spaces
? What quotes do you use for strings? Single
? What line endings do you use? Windows
? Do you require semicolons? Yes
? What format do you want your config file to be in? JavaScript
error Unexpected console statement no-console
.eslintrc.js
"rules": {
'no-console': 'off'
}