Add jsdoc eslint plugin

pull/2/head
BakedPVP 4 years ago
parent 80c5d38463
commit 3140703a76

@ -14,7 +14,8 @@
}
},
"plugins": [
"react"
"react",
"jsdoc"
],
"env": {
"node": true,
@ -230,7 +231,41 @@
"rest-spread-spacing": [ "warn", "never" ],
"symbol-description": [ "warn" ],
"template-curly-spacing": [ "warn", "never" ],
"react/jsx-uses-react": "warn",
"react/jsx-uses-vars": 1
"react/jsx-uses-react": [ "warn" ],
"react/jsx-uses-vars": [ "warn" ],
"jsdoc/check-alignment": [ "warn" ],
"jsdoc/check-indentation": [ "warn" ],
"jsdoc/check-param-names": [ "warn" ],
"jsdoc/check-tag-names": [ "warn" ],
"jsdoc/check-types": [ "warn" ],
"jsdoc/implements-on-classes": [ "warn" ],
"jsdoc/newline-after-description": [ "warn" ],
"jsdoc/no-undefined-types": [ "warn" ],
"jsdoc/require-hyphen-before-param-description": [ "warn" ],
"jsdoc/require-jsdoc": [ "warn" ],
"jsdoc/require-param": [ "warn" ],
"jsdoc/require-param-description": [ "warn" ],
"jsdoc/require-param-name": [ "warn" ],
"jsdoc/require-param-type": [ "warn" ],
"jsdoc/require-returns": [ "warn" ],
"jsdoc/require-returns-check": [ "warn" ],
"jsdoc/require-returns-description": [ "warn" ],
"jsdoc/require-returns-type": [ "warn" ],
"jsdoc/valid-types": [ "warn" ]
},
"settings": {
"jsdoc": {
"tagNamePreference": {
"warn": "warn",
"bug": "bug",
"deprecated": "deprecated",
"hack": "hack",
"i18n": "i18n",
"note": "note",
"powercord": "powercord",
"todo": "todo",
"warning": "warning"
}
}
}
}

@ -65,5 +65,9 @@
"background": "#da4e4e",
"opacity": 0
}
}
},
"eslint.alwaysShowStatus": true,
"eslint.debug": true,
"eslint.format.enable": true,
"eslint.lintTask.enable": true
}
Loading…
Cancel
Save