Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
chore: update json file and playground
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Oct 25, 2022
1 parent a0cc990 commit f7cc1d8
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 32 deletions.
15 changes: 1 addition & 14 deletions rome.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,7 @@
"rules": {
"recommended": true,
"nursery": {
"noUnreachable": "error",
"noUnusedVariables": "error",
"useCamelCase": "off",
"noDangerouslySetInnerHtml": "error",
"noRenderReturnValue": "error",
"useButtonType": "error",
"useOptionalChain": "error",
"noUselessFragments": "error",
"noNewSymbol": "error",
"noVoidElementsWithChildren": "error",
"noDangerouslySetInnerHtmlWithChildren": "error",
"noConstAssign": "error",
"noAutofocus": "error",
"useKeyWithClickEvents": "error"
"noConstAssign": "error"
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions website/api/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ function wrapAsyncCallback(callback) {

app.use(morgan("tiny"));

// rome-ignore lint(nursery/noUnusedVariables): false positive
app.use((req, res, next) => {
res.setHeader("Access-Control-Allow-Origin", "*");
res.setHeader("Access-Control-Allow-Headers", "Content-Type");
Expand Down Expand Up @@ -328,15 +327,13 @@ async function getFreshStats() {

app.get(
"/funding/stats",
// rome-ignore lint(nursery/noUnusedVariables): false positive
wrapAsyncCallback(async (req, res) => {
res.json(await getStats());
}),
);

app.get(
"/funding/all",
// rome-ignore lint(nursery/noUnusedVariables): false positive
wrapAsyncCallback(async (req, res) => {
res.json(await getAllContributions());
}),
Expand All @@ -355,7 +352,6 @@ function generateRewardsDescription(tier) {
app.post(
"/funding/checkout",
bodyParser.json(),
// rome-ignore lint(nursery/noUnusedVariables): false positive
wrapAsyncCallback(async (req, res) => {
const { body } = req;

Expand Down Expand Up @@ -488,7 +484,6 @@ app.post(
}),
);

// rome-ignore lint(nursery/noUnusedVariables): false positive
app.use(function (err, req, res, next) {
// rome-ignore lint/js/preferOptionalChaining: netlify's node version does not support optional call expressions
if (sentry !== undefined) {
Expand Down
2 changes: 1 addition & 1 deletion website/playground/src/DesktopPlayground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export default function DesktopPlayground({
<TabPanel>
<div
className="overflow-scroll whitespace-pre-wrap text-xs error-panel h-full"
// rome-ignore lint(nursery/noDangerouslySetInnerHtml): the HTML is sanitized by our diagnostic printer
// rome-ignore lint(react/noDangerouslySetInnerHtml): the HTML is sanitized by our diagnostic printer
dangerouslySetInnerHTML={{ __html: errors }}
/>
</TabPanel>
Expand Down
2 changes: 1 addition & 1 deletion website/playground/src/MermaidGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ interface MermaidGraphProps {
graph: string;
}

// rome-ignore lint(nursery/noUnusedVariables): false positive
// rome-ignore lint(correctness/noUnusedVariables): false positive
export default memo(function MermaidGraph({ graph }: MermaidGraphProps) {
if (graph === "") {
return null;
Expand Down
11 changes: 0 additions & 11 deletions website/playground/src/romeWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,6 @@ self.addEventListener("message", async (e) => {
enabled: true,
rules: {
nursery: {
noNewSymbol: "error",
noDangerouslySetInnerHtml: "error",
noUnusedVariables: "error",
noUnreachable: "error",
useCamelCase: "error",
noRenderReturnValue: "error",
useButtonType: "error",
useOptionalChain: "error",
noUselessFragments: "error",
noVoidElementsWithChildren: "error",
noDangerouslySetInnerHtmlWithChildren: "error",
noConstAssign: "error",
},
},
Expand Down

0 comments on commit f7cc1d8

Please sign in to comment.