ESLint Flashcards

1
Q

We can initialize a default ESlint configuration with the command:

A

npx eslint –init

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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.

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

the ______ rule warns us if equality is checked with anything but the triple equals operator.

A

the eqeqeq rule that warns us if equality is checked with anything but the triple equals operator.
~~~
export default [
// …
rules: {
// …
‘eqeqeq’: ‘error’,
},
]
~~~

How well did you know this?
1
Not at all
2
3
4
5
Perfectly