
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@robinbobin/ts-eslint-prettier
Advanced tools
This package is deprecated in favor of ts-config, eslint-config / eslint-config-react and prettier-config.
Install the following packages:
pnpm i --save-dev @robinbobin/ts-eslint-prettier eslint prettier typescript
For React (Native) projects:
pnpm i --save-dev @types/react eslint-plugin-react-hooks react
Assuming you have the src folder at the top of your project:
{
"compilerOptions": {
"declaration": true,
"outDir": "js"
},
"extends": "@robinbobin/ts-eslint-prettier/tsconfig.base",
"include": ["./*.mjs", "./src/**/*.ts"]
}
For React (Native) projects:
{
"compilerOptions": {
"declaration": true,
"outDir": "js"
},
"extends": "@robinbobin/ts-eslint-prettier/tsconfig.base",
"include": ["./*.mjs", "./src/**/*.ts", "./src/**/*.tsx"]
}
import eslintConfig from '@robinbobin/ts-eslint-prettier/eslint.config.mjs'
export default [
...eslintConfig,
]
If you're getting
The inferred type of 'array' cannot be named without a reference to '.pnpm/@typescript-eslint+utils...'
:
import eslintConfig from '@robinbobin/ts-eslint-prettier/eslint.config.mjs'
/** @type unknown[] */
const array = [...eslintConfig]
export default array
For React (Native) projects:
import config from '@robinbobin/ts-eslint-prettier/eslint.config.mjs'
import configPluginReactHooks from '@robinbobin/ts-eslint-prettier/eslint.config.plugin.react.hooks.mjs'
export default [
...config,
...configPluginReactHooks,
{
rules: {
'react-hooks/exhaustive-deps': 'error'
}
}
]
export { default } from '@robinbobin/ts-eslint-prettier/prettier.config.mjs'
/js
/pnpm-lock.yaml
/js
node_modules
Add the the following to package.json:
"files": [
"/js",
"/src"
]
#!/bin/bash
rm -rf js &&
pnpm tsc &&
pnpm eslint &&
pnpm prettier . --check
chmod u+x prepack.sh
package.json:
"scripts": {
"prepack": "./prepack.sh"
}
FAQs
My configs for TS, ESLint and Prettier
We found that @robinbobin/ts-eslint-prettier demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.