punimtag/viewer-frontend/eslint.config.mjs
Tanya c8b6245625
Some checks failed
CI / skip-ci-check (pull_request) Successful in 1m41s
CI / lint-and-type-check (pull_request) Failing after 2m26s
CI / python-lint (pull_request) Failing after 2m8s
CI / test-backend (pull_request) Successful in 3m55s
CI / build (pull_request) Successful in 4m48s
CI / secret-scanning (pull_request) Successful in 1m49s
CI / dependency-scan (pull_request) Successful in 1m46s
CI / sast-scan (pull_request) Successful in 2m58s
CI / workflow-summary (pull_request) Failing after 1m40s
chore: Update linting rules for Python and frontend configurations
This commit enhances the linting configurations by adding additional flake8 error codes to ignore in both the CI workflow and the Python linting command in package.json. It also modifies the ESLint configuration for the admin frontend to remove the report for unused disable directives, streamlining the linting process and reducing false positives.
2026-01-16 15:16:39 -05:00

29 lines
673 B
JavaScript

import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
]),
{
linterOptions: {
reportUnusedDisableDirectives: false,
},
rules: {
'max-len': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'no-unused-vars': 'warn',
},
},
]);
export default eslintConfig;