mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
4b78a2106d
* chore: update browsers list * Re enable markdown & jsdoc linting. * Update links to `mermaid.live` Co-authored-by: sidharthv96 <sidharthv96@users.noreply.github.com>
53 lines
1.2 KiB
JSON
53 lines
1.2 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true,
|
|
"jest/globals": true,
|
|
"node": true
|
|
},
|
|
"parser": "@babel/eslint-parser",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"experimentalObjectRestSpread": true,
|
|
"jsx": true
|
|
},
|
|
"sourceType": "module"
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:jsdoc/recommended",
|
|
"plugin:json/recommended",
|
|
"plugin:markdown/recommended",
|
|
"plugin:prettier/recommended"
|
|
],
|
|
"plugins": ["html", "jest", "jsdoc", "json", "prettier"],
|
|
"rules": {
|
|
"no-prototype-builtins": "off",
|
|
"no-unused-vars": "off",
|
|
"jsdoc/check-indentation": "off",
|
|
"jsdoc/check-alignment": "off",
|
|
"jsdoc/check-line-alignment": "off",
|
|
"jsdoc/multiline-blocks": "off",
|
|
"jsdoc/newline-after-description": "off",
|
|
"jsdoc/tag-lines": "off",
|
|
"cypress/no-async-tests": "off",
|
|
"json/*": ["error", "allowComments"],
|
|
"no-empty": ["error", { "allowEmptyCatch": true }]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": "./**/*.html",
|
|
"rules": {
|
|
"no-undef": "off",
|
|
"jsdoc/require-jsdoc": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": "./**/*.md/*.html",
|
|
"rules": {
|
|
"prettier/prettier": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|