mirror of
https://github.com/searxng/searxng.git
synced 2025-03-13 07:52:40 +00:00
35 lines
658 B
JavaScript
35 lines
658 B
JavaScript
|
import globals from "globals";
|
||
|
import pluginJs from "@eslint/js";
|
||
|
|
||
|
|
||
|
/** @type {import('eslint').Linter.Config[]} */
|
||
|
export default [
|
||
|
pluginJs.configs.recommended,
|
||
|
|
||
|
// global "ignores"
|
||
|
// https://eslint.org/docs/latest/use/configure/configuration-files#globally-ignoring-files-with-ignores
|
||
|
{
|
||
|
ignores: ["node_modules/", "dist/"]
|
||
|
},
|
||
|
|
||
|
{
|
||
|
files: [
|
||
|
"**/*.js",
|
||
|
],
|
||
|
linterOptions: {
|
||
|
reportUnusedDisableDirectives: "error",
|
||
|
// noInlineConfig: true
|
||
|
},
|
||
|
languageOptions: {
|
||
|
sourceType: "module",
|
||
|
globals: {
|
||
|
...globals.browser,
|
||
|
}
|
||
|
},
|
||
|
rules: {
|
||
|
indent: ["error", 2],
|
||
|
},
|
||
|
},
|
||
|
|
||
|
];
|