@tensorify.io/sdk
Version:
TypeScript SDK for developing Tensorify plugins with V2-Alpha definition/execution pattern and legacy compatibility
95 lines (67 loc) • 1.74 kB
Markdown
Shared ESLint configuration for the Tensorify monorepo using ESLint v9 flat configs.
```js
// eslint.config.mjs
import { nextJsConfig } from "@repo/eslint-config/nextjs";
/** @type {import("eslint").Linter.Config} */
export default nextJsConfig;
```
```js
// eslint.config.js
import { libraryConfig } from "@repo/eslint-config/library";
/** @type {import("eslint").Linter.Config} */
export default libraryConfig;
```
```js
// eslint.config.js
import { apiConfig } from "@repo/eslint-config/api";
/** @type {import("eslint").Linter.Config} */
export default apiConfig;
```
```js
// eslint.config.js
import { baseConfig } from "@repo/eslint-config/base";
/** @type {import("eslint").Linter.Config} */
export default [
...baseConfig,
{
// Your custom rules here
rules: {
// Custom overrides
},
},
];
```
- TypeScript ESLint rules
- Common code quality rules
- Consistent ignore patterns
- All base rules
- Next.js specific rules
- React hooks rules
- React-specific linting
- Base rules optimized for Node.js libraries
- Jest environment support
- Library-specific ignores
- Base rules optimized for API services
- Node.js and Jest environments
- API-specific rule adjustments
This package is automatically installed when you run `npm install` at the monorepo root.
Each package that uses ESLint should include this as a workspace dependency:
```json
{
"devDependencies": {
"@repo/eslint-config": "*"
}
}
```