All quizzes
Free quiz · 30 questions in the bank

ESLint quiz

Test your ESLint knowledge with a free interactive quiz — 30 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What makes a rule "type-aware" in @typescript-eslint, as opposed to a plain syntax rule?

Questions in this quiz
  1. What makes a rule "type-aware" in @typescript-eslint, as opposed to a plain syntax rule?
  2. In flat config, how do you scope a set of rules to only apply to `.ts`/`.tsx` files?
  3. What key difference distinguishes legacy `.eslintrc.json` config resolution from flat config?
  4. Why does linting `.ts`/`.tsx` files require a different parser than ESLint's default?
  5. What is the difference between an ESLint "rule" and a "plugin"?
  6. What is the narrowest way to suppress a single ESLint violation on one specific line?
  7. What is the risk of hand-picking every single rule from zero instead of starting from a shareable recommended config?
  8. A function `saveUser(user)` returns a Promise, but is called without `await` and its result is discarded. Which kind of rule can catch this?
  9. A config declares `plugins: { react: reactPlugin }` and then sets a rule as `'react/jsx-key': 'error'`. What does the `react/` prefix indicate?
  10. What is the effect of listing `js.configs.recommended` before a project-specific rules object in the flat config array?
  11. What must `languageOptions.parserOptions.project` be set to for type-aware TypeScript rules to work?
  12. What does `eslint-config-prettier` do?
Gaps to close?
Read the curated ESLint notes — core concepts, patterns, interview prep.
ESLint notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web