Skip to content

Commit 1c3589b

Browse files
committed
fix: lint
1 parent 983ff88 commit 1c3589b

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

create-config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@ export default function createConfig(options, ...userConfigs) {
1010
semi: true,
1111
quotes: "double",
1212
},
13+
ignores: ["**/components/ui/*", "**/tsconfig.json", "**/tsconfig.node.json", "**/tsconfig.app.json", "README.md"],
1314
...options,
14-
}, {
15-
files: ["tsconfig.json", "tsconfig.node.json", "tsconfig.app.json"],
16-
rules: {
17-
"jsonc/sort-keys": "off",
18-
},
1915
}, {
2016
rules: {
2117
"no-console": "off",

example/eslint.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
import createConfig from "../create-config.js";
22

3-
export default createConfig({
4-
ignores: ["src/components/ui/*"],
5-
});
3+
export default createConfig();

src/contexts/mqtt-connector.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export function MqttConnector({ children, url, options }: MqttConnectorProps) {
2222
};
2323
}, [url, options]);
2424
return (
25+
// disable this rule to make it compatible with React 18
26+
// eslint-disable-next-line react/no-context-provider
2527
<MqttContext.Provider value={mqttClient}>
2628
{children}
2729
</MqttContext.Provider>

0 commit comments

Comments
 (0)