@keboola/oxlint-config
v0.1.2
Published
Shared oxlint configuration for the Keboola UI platform — the same lint rules `@keboola/agent-precheck` enforces internally.
Readme
@keboola/oxlint-config
Shared oxlint configuration
for the Keboola UI platform. The same rule set
@keboola/agent-precheck
runs against the monorepo, packaged so external consumers can inherit it.
oxlint runs ESLint plugins natively (via jsPlugins), so this config also
brings in the same React, import-sort, turbo, and tailwindcss plugin set
the platform uses — all listed as peer dependencies you install alongside.
Install
npm install -D @keboola/oxlint-config @keboola/tailwind-config oxlint eslint \
eslint-plugin-react-dom eslint-plugin-react-jsx \
eslint-plugin-react-naming-convention eslint-plugin-react-web-api \
eslint-plugin-react-x eslint-plugin-simple-import-sort \
eslint-plugin-tailwindcss eslint-plugin-turbo@keboola/tailwind-config is required because the config wires
eslint-plugin-tailwindcss
against our Tailwind setup; if you maintain a separate Tailwind config and
want to point the plugin at it, fork this config.
Use
Reference the config from your project's oxlint.config.ts (or
oxlint.config.js):
import keboolaConfig from '@keboola/oxlint-config';
export default keboolaConfig;If you prefer to extend rather than reuse, spread it:
import keboolaConfig from '@keboola/oxlint-config';
export default {
...keboolaConfig,
rules: {
...keboolaConfig.rules,
'no-console': 'warn',
},
};Pre-push enforcement
@keboola/agent-precheck runs oxfmt + oxlint --fix against the
checked-out tree. Adding it to your project's pre-push hook gives you the
same gate this monorepo uses; see its README for setup.
License
MIT
