Registry / testing / eslint-config-wantedly-typescript

eslint-config-wantedly-typescript

JSON →
library4.0.0jsnpmunverified

eslint-config-wantedly-typescript provides a comprehensive ESLint configuration tailored for TypeScript projects, specifically designed for Wantedly's development ecosystem. Currently stable at version 4.0.0, this package aligns with the latest ESLint v9 and its new "Flat Config" format, offering a modern approach to linting. It bundles popular plugins and configurations, including `@typescript-eslint` for TypeScript-specific rules, `react` for JSX and React hooks, `import` for import statement validation, `jsx-a11y` for accessibility, `jest` for testing environments, and `prettier` for code formatting integration. While version 4.x exclusively supports the flat config format, earlier versions (3.x and below) provide compatibility with ESLint v8 and its legacy configuration style. The package aims to standardize code style and catch common errors in TypeScript, React, and related JavaScript projects. Releases generally follow major ESLint versions for compatibility updates, with smaller patches for dependency management and bug fixes.

testingweb-framework
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Version 4.x and above use ESLint Flat Config, which requires ESM import syntax. The 'base' export contains the main configuration array.

import { base as configWantedlyTS } from 'eslint-config-wantedly-typescript';

Demonstrates how to set up `eslint-config-wantedly-typescript` v4.x using ESLint's Flat Config format in an `eslint.config.js` file, including basic customization.

import { base as configWantedlyTS } from 'eslint-config-wantedly-typescript'; export default [ ...configWantedlyTS, { // Optional: Add project-specific overrides or additional rules here. // For example, to disable a rule: rules: { '@typescript-eslint/explicit-module-boundary-types': 'off', 'react/react-in-jsx-scope': 'off' // Example for React 17+ / New JSX Transform } }, { // Define files glob patterns for this configuration scope files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], // You might need to specify parserOptions if your project uses different TypeScript settings parserOptions: { project: './tsconfig.json', ecmaVersion: 'latest', sourceType: 'module', ecmaFeatures: { jsx: true } } } ];
Debug
Known footguns
breakingVersion 4.0.0 of `eslint-config-wantedly-typescript` introduces support for ESLint v9 and its new Flat Config format. This is a breaking change for users on ESLint v8 or older, or those using the legacy `.eslintrc` configuration format.
gotchaThe package has a peer dependency on `typescript`. Ensure you have a compatible version installed in your project. Incompatible TypeScript versions can lead to parsing errors or incorrect linting results.
breakingThe `eslint-config-wantedly-typescript` package is now published under the `frolint` monorepo. While the package name remains the same, be aware of related packages like `eslint-plugin-wantedly` and `eslint-plugin-use-macros` also being updated to support ESLint v9.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
13 hits · last 30 days
gptbot
4
ahrefsbot
4
script
1
Resources