@risemaxi/syntactio
v0.3.0
Published
Linting and formatting config for Rise client apps. Supports ESLint, Oxlint, and Oxfmt.
Downloads
1,579
Readme
@risemaxi/syntactio
Linting and formatting config for Rise client apps.
Installation
bun add -D @risemaxi/syntactioOptional: Oxlint + Oxfmt
bun add -D oxlint oxfmt oxlint-tsgolint eslint-plugin-react-hooksUsage
ESLint (default)
const { defineConfig } = require("eslint/config");
const expoConfig = require("eslint-config-expo/flat");
const riseConfig = require("@risemaxi/syntactio");
module.exports = defineConfig([expoConfig, riseConfig]);Oxlint
import { defineConfig } from "oxlint";
import { nativeConfig } from "@risemaxi/syntactio/oxlint/native";
export default defineConfig({
extends: [nativeConfig],
});With React Compiler:
import { defineConfig } from "oxlint";
import { nativeConfig } from "@risemaxi/syntactio/oxlint/native";
import { compilerConfig } from "@risemaxi/syntactio/oxlint/compiler";
export default defineConfig({
extends: [nativeConfig, compilerConfig],
});Oxfmt
export { oxfmtConfig as default } from "@risemaxi/syntactio/oxfmt";Config Layers
| Export | Named Export | Extends |
| ------------------- | ---------------- | ------- |
| ./oxlint | baseConfig | — |
| ./oxlint/react | reactConfig | base |
| ./oxlint/native | nativeConfig | react |
| ./oxlint/compiler | compilerConfig | - |
Exports
| Export | Description |
| ----------------------------------------- | ---------------------------- |
| @risemaxi/syntactio | ESLint flat config |
| @risemaxi/syntactio/oxlint | Base oxlint config |
| @risemaxi/syntactio/oxlint/react | React oxlint config |
| @risemaxi/syntactio/oxlint/native | React Native oxlint config |
| @risemaxi/syntactio/oxlint/compiler | React Compiler oxlint config |
| @risemaxi/syntactio/oxfmt | Oxfmt config |
| @risemaxi/syntactio/react-native-compat | Rewritten react-native rules |
License
MIT
