aboutsummaryrefslogtreecommitdiffhomepage
path: root/eslint.config.js
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-09-28 22:58:20 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-09-28 22:58:28 +0800
commite30d7f3e27336258f1027d1c1ae94c3d15668066 (patch)
tree9a4bde80785fbd533d0437d3573e1633b73cbf50 /eslint.config.js
parent5c3d2d056018912ccc623a922af9685e4f3d05d6 (diff)
chore: add lint for jsdoc
Diffstat (limited to 'eslint.config.js')
-rw-r--r--eslint.config.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/eslint.config.js b/eslint.config.js
index 8887ce7..7ac6782 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -3,6 +3,7 @@ import js from "@eslint/js";
3import importPlugin from "eslint-plugin-import"; 3import importPlugin from "eslint-plugin-import";
4import promisePlugin from "eslint-plugin-promise"; 4import promisePlugin from "eslint-plugin-promise";
5import nodePlugin from "eslint-plugin-node"; 5import nodePlugin from "eslint-plugin-node";
6import jsdoc from 'eslint-plugin-jsdoc';
6 7
7export default [ 8export default [
8 js.configs.recommended, 9 js.configs.recommended,
@@ -35,5 +36,14 @@ export default [
35 'array-callback-return': 'error', 36 'array-callback-return': 'error',
36 'no-unexpected-multiline': 'warn', 37 'no-unexpected-multiline': 'warn',
37 }, 38 },
38 } 39 },
40 {
41 files: ['src/*js'],
42 plugins: {
43 jsdoc,
44 },
45 rules: {
46 'jsdoc/require-description': 'warn'
47 }
48 },
39]; 49];