@spscommerce/eslint-config-typescript-flat
v9.3.1
Published
SPS official linter configuration for TypeScript, flat config only. Requires ESLint 9 or 10.
Downloads
931
Readme
@spscommerce/eslint-config-typescript-flat
An ESLint 9/10 flat-config-only version of SPS Commerce's TypeScript style guide (see below for the style guide contents)
Flat-config successor to @spscommerce/eslint-config-typescript. Use this package if your project has already migrated to flat config (eslint.config.js/.mjs) and you're on ESLint 9 or 10. If you're still on .eslintrc-style config, stay on @spscommerce/eslint-config-typescript - ESLint 10 removed .eslintrc support entirely, so there's no flat/legacy split in this package the way there is in that one; it's flat-only, full stop.
The rule set is intentionally a duplicate of @spscommerce/eslint-config-typescript's at the time this package was created, not a shared dependency between the two - each package's rules can now evolve independently.
You probably want to read the guide.
// eslint.config.js
import spsConfig from '@spscommerce/eslint-config-typescript-flat';
export default [
...spsConfig,
// your custom config
];