ESLint Flashcards
We can initialize a default ESlint configuration with the command:
npx eslint –init
The p_____s property provides a way to extend ESLint’s functionality by adding custom rules, configurations, and other capabilities that are not available in the core ESLint library
The plugins property provides a way to extend ESLint’s functionality by adding custom rules, configurations, and other capabilities that are not available in the core ESLint library
We’ve added the js.______.recommended to the top of the configuration array, this ensures that ESLint’s recommended settings are applied first before our own custom options.
We’ve added the js.configs.recommended to the top of the configuration array, this ensures that ESLint’s recommended settings are applied first before our own custom options.
the ______ rule warns us if equality is checked with anything but the triple equals operator.
the eqeqeq rule that warns us if equality is checked with anything but the triple equals operator.
~~~
export default [
// …
rules: {
// …
‘eqeqeq’: ‘error’,
},
]
~~~