diff --git a/.oxlintrc.json b/.oxlintrc.json new file mode 100644 index 0000000..c5c2334 --- /dev/null +++ b/.oxlintrc.json @@ -0,0 +1,28 @@ +{ + "plugins": ["import", "typescript", "unicorn"], + "env": { + "browser": true + }, + "globals": { + "foo": "readonly" + }, + "settings": {}, + "rules": { + "eqeqeq": "warn", + "import/no-cycle": "error", + "react/self-closing-comp": [ + "error", + { + "html": false + } + ] + }, + "overrides": [ + { + "files": ["*.test.ts", "*.spec.ts"], + "rules": { + "@typescript-eslint/no-explicit-any": "off" + } + } + ] +} diff --git a/coderabbit.yml b/coderabbit.yml new file mode 100644 index 0000000..f67dd6e --- /dev/null +++ b/coderabbit.yml @@ -0,0 +1,6 @@ +reviews: + path_filters: ["**/*.yml"] + tools: + # oxlint does not run if biome is enabled + biome: + enabled: false \ No newline at end of file diff --git a/sampleReact.jsx b/sampleReact.jsx new file mode 100644 index 0000000..f5a8c19 --- /dev/null +++ b/sampleReact.jsx @@ -0,0 +1,11 @@ +function TestComponent() { + // ruleid:react-dangerouslysetinnerhtml + return
; +} + +function OkComponent() { + // OK + const discordClientKey = '8dyfuiRyq=vVc3RRr_edRk-fK__JItpZ'; + return {__html: 'Первый · Второй'}; +} +

AltStyle によって変換されたページ (->オリジナル) /