November 2017
Beginner to intermediate
398 pages
8h 42m
English
We can change what rules are enabled and modify their options with the rules object. Add the following to the ESLint configuration:
rules: { // https://github.com/babel/babel-eslint/issues/517 'no-use-before-define': 'off', 'comma-dangle': ['error', 'always-multiline'],},
The first line disables the no-use-before-define rule, which has a bug when using the ... destructuration operator. The second one changes the commad-dangle rule to enforce putting a trailing , comma at the end of all the array and object lines.
Read now
Unlock full access