28 lines
699 B
JavaScript
28 lines
699 B
JavaScript
// The Lucia project.
|
|
// Copyright 2026-2026 DSP, inc. All rights reserved.
|
|
// Authors:
|
|
// imacat.yang@dsp.im (imacat), 2026/3/6
|
|
/**
|
|
* @module eslint.config
|
|
* ESLint flat configuration for Vue, Cypress, and
|
|
* Prettier integration.
|
|
*/
|
|
|
|
import js from "@eslint/js";
|
|
import pluginVue from "eslint-plugin-vue";
|
|
import pluginCypress from "eslint-plugin-cypress";
|
|
import skipFormatting from "@vue/eslint-config-prettier";
|
|
|
|
export default [
|
|
{
|
|
files: ["**/*.{js,mjs,cjs,ts,vue}"],
|
|
...js.configs.recommended,
|
|
},
|
|
...pluginVue.configs["flat/essential"],
|
|
skipFormatting,
|
|
{
|
|
files: ["cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}"],
|
|
...pluginCypress.configs.recommended,
|
|
},
|
|
];
|