1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-20 12:21:35 +02:00

Update site/.eslintrc.json (#37485)

This commit is contained in:
XhmikosR
2022-11-12 10:46:37 +02:00
committed by GitHub
parent 5208dd10c4
commit 05b7df055e

View File

@@ -1,15 +1,28 @@
{ {
"extends": "../.eslintrc.json",
"env": { "env": {
"browser": true, "browser": true,
"node": false "node": false
}, },
"parserOptions": {
"sourceType": "script"
},
"plugins": [ "plugins": [
"markdown" "markdown"
], ],
"rules": {
"no-new": "off",
"strict": "error",
"unicorn/no-array-for-each": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-node-protocol": "off"
},
"overrides": [ "overrides": [
{ {
// 2. Enable the Markdown processor for all .md files. // 2. Enable the Markdown processor for all .md files.
"files": ["./**/*.md"], "files": [
"./**/*.md"
],
"processor": "markdown/markdown" "processor": "markdown/markdown"
}, },
{ {
@@ -28,27 +41,15 @@
}, },
"rules": { "rules": {
"no-array-for-each": "off", "no-array-for-each": "off",
"no-labels": "off",
"no-redeclare": "off",
"no-undef": "off", "no-undef": "off",
"no-unused-vars": "off",
"unicorn/no-array-for-each": "off",
"unicorn/numeric-separators-style": "off",
"no-unused-expressions": "off", "no-unused-expressions": "off",
"no-unused-labels": "off", "no-unused-labels": "off",
"no-labels": "off", "no-unused-vars": "off",
"no-redeclare": "off"
}
}
],
"parserOptions": {
"sourceType": "script"
},
"extends": "../.eslintrc.json",
"rules": {
"no-new": "off",
"prefer-template": "error",
"strict": "error",
"unicorn/no-array-for-each": "off", "unicorn/no-array-for-each": "off",
"unicorn/numeric-separators-style": "off", "unicorn/numeric-separators-style": "off"
"unicorn/prefer-node-protocol": "off"
} }
} }
]
}