26 lines
740 B
JavaScript
26 lines
740 B
JavaScript
// SPDX-FileCopyrightText: Night Theme Switcher Contributors
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
import { defineConfig } from "eslint/config";
|
|
import { jsdoc } from "eslint-plugin-jsdoc";
|
|
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
|
|
|
export default defineConfig([
|
|
{
|
|
files: ["**/*.{js,mjs,cjs}"],
|
|
plugins: { js },
|
|
extends: ["js/recommended"],
|
|
languageOptions: { globals: { NTS: "writable", ...globals.browser } },
|
|
rules: {
|
|
"no-empty": ["error", { allowEmptyCatch: true }],
|
|
"no-unused-vars": ["error", { argsIgnorePattern: "_" }],
|
|
},
|
|
},
|
|
jsdoc({
|
|
config: "flat/recommended",
|
|
}),
|
|
eslintConfigPrettier,
|
|
]);
|