mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 11:12:11 +01:00
- Update access denied messages to use HTML entities. - Add autoComplete attributes to forms for better user experience. - Improve trend calculations in sessionMetrics function. - Update MetricCard props to accept React nodes for icons. - Integrate Next.js Image component in Sidebar for optimization. - Adjust ESLint rules for better code quality. - Add new properties for trends in MetricsResult interface. - Bump version to 0.2.0 in package.json.
41 lines
925 B
JavaScript
41 lines
925 B
JavaScript
import js from "@eslint/js";
|
|
import { FlatCompat } from "@eslint/eslintrc";
|
|
import path from "path";
|
|
import { fileURLToPath } from "url";
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = path.dirname(__filename);
|
|
const compat = new FlatCompat({
|
|
baseDirectory: __dirname,
|
|
});
|
|
|
|
const eslintConfig = [
|
|
js.configs.recommended,
|
|
...compat.extends(
|
|
"next/core-web-vitals",
|
|
"plugin:@typescript-eslint/recommended"
|
|
),
|
|
{
|
|
ignores: [
|
|
"node_modules/",
|
|
".next/",
|
|
".vscode/",
|
|
"out/",
|
|
"build/",
|
|
"dist/",
|
|
"coverage/",
|
|
],
|
|
rules: {
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
|
"react/no-unescaped-entities": "warn",
|
|
"no-console": "off",
|
|
"no-trailing-spaces": "warn",
|
|
"prefer-const": "error",
|
|
"no-unused-vars": "warn",
|
|
},
|
|
},
|
|
];
|
|
|
|
export default eslintConfig;
|