-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
29 lines (28 loc) · 929 Bytes
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import globals from "globals";
import pluginJs from "@eslint/js";
import jsdoc from 'eslint-plugin-jsdoc';
/** @type {import('eslint').Linter.Config[]} */
export default [
{files: ["**/*.js"], languageOptions: {sourceType: "commonjs"}},
{languageOptions: {
globals: globals.browser,
parserOptions: {
// 'latest' is recognized by ESLint 9. You can also use a numeric version like 2022 or 2023.
ecmaVersion: 'latest',
sourceType: 'module', // If you are using ES Modules (import/export).
},
},
rules: {
'max-len': 'off',
'new-cap': 'off',
'no-mixed-spaces-and-tabs': 'off',
'no-tabs': 'off',
'camelcase': 'off',
'jsdoc/check-types': 'error', // Ensures types are valid
'jsdoc/require-param-description': 'off'
// 'no-globoal-assign': 'warn',
},
},
pluginJs.configs.recommended,
jsdoc.configs["flat/recommended"],
];