mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-23 20:32:45 +00:00
56 lines
1.3 KiB
JSON
56 lines
1.3 KiB
JSON
{
|
|
"name": "expressjs.com",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"test": "eslint --ignore-path .gitignore --ignore-pattern _includes/readmes/ \"**/*.md\""
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "^8.54.0",
|
|
"eslint-config-standard": "^17.1.0",
|
|
"eslint-plugin-import": "^2.29.0",
|
|
"eslint-plugin-markdown": "^2.2.1",
|
|
"eslint-plugin-n": "^15.0.0",
|
|
"eslint-plugin-promise": "^6.0.0"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": [
|
|
"standard",
|
|
"plugin:markdown/recommended"
|
|
],
|
|
"plugins": [
|
|
"markdown"
|
|
],
|
|
"overrides": [
|
|
{
|
|
"files": "**/*.md",
|
|
"processor": "markdown/markdown"
|
|
},
|
|
{
|
|
"files": "**/*.md/*.js",
|
|
"rules": {
|
|
"array-callback-return": "off",
|
|
"no-var": "error",
|
|
"n/handle-callback-err": "off",
|
|
"object-shorthand": "error",
|
|
"prefer-arrow-callback": "error",
|
|
"prefer-template": "error"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"**/3x/*.md/*.js",
|
|
"**/4x/*.md/*.js",
|
|
"**/guide/migrating-4.md/*.js"
|
|
],
|
|
"rules": {
|
|
"no-var": "off",
|
|
"object-shorthand": "off",
|
|
"prefer-arrow-callback": "off",
|
|
"prefer-template": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|