CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-eslint-config-node

Pluggable ESLint configuration for Node.js that extends ESNext with Node.js-specific safety checks and best practices

73

1.12x
Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "This criteria evaluates how well the engineer uses the @kunalgolani/eslint-config package and ESLint API to build a code validator that detects legacy JavaScript patterns. The focus is on proper configuration of ESLint with the ESNext rules and correct usage of ESLint's programmatic API.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "ESLint instantiation",
      "description": "Uses ESLint's ESLint class (from 'eslint' package) or CLIEngine to create a linting instance programmatically",
      "max_score": 20
    },
    {
      "name": "ESNext config usage",
      "description": "Configures ESLint with @kunalgolani/eslint-config ESNext rules, either by using 'esnext' or 'recommended/esnext' in the extends configuration or by using the package's exported config",
      "max_score": 25
    },
    {
      "name": "Rule targeting",
      "description": "Configures or checks for specific ESNext rules from the package: 'no-var', 'prefer-arrow-callback', 'prefer-rest-params', 'no-eval', and 'no-with'",
      "max_score": 20
    },
    {
      "name": "Programmatic linting",
      "description": "Uses ESLint's lintFiles() or lintText() method to programmatically lint the input file and retrieve results",
      "max_score": 15
    },
    {
      "name": "Results parsing",
      "description": "Extracts violation information from ESLint's results object, accessing properties like messages, ruleId, line, and message from the results array",
      "max_score": 15
    },
    {
      "name": "Options handling",
      "description": "Implements the options parameter to conditionally enable/disable specific rule checks by modifying ESLint's rules configuration based on the provided options",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-eslint-config-node

tile.json