Project: Switch to Prettier for code formatting
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// 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,
|
||||
]);
|
||||
Reference in New Issue
Block a user