Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2022-11-12 11:46:37 +0300
committerGitHub <noreply@github.com>2022-11-12 11:46:37 +0300
commit05b7df055e3267e66457a9f84d8f7b271cf0af7d (patch)
treeb4aa5f4746ecc21ecd6b2cb7e9a3cc7446256e55
parent5208dd10c4f43b304ebeb75dcf508e016515a248 (diff)
Update site/.eslintrc.json (#37485)
-rw-r--r--site/.eslintrc.json39
1 files changed, 20 insertions, 19 deletions
diff --git a/site/.eslintrc.json b/site/.eslintrc.json
index 1158ba36a7..0a16f82f9a 100644
--- a/site/.eslintrc.json
+++ b/site/.eslintrc.json
@@ -1,15 +1,28 @@
{
+ "extends": "../.eslintrc.json",
"env": {
"browser": true,
"node": false
},
+ "parserOptions": {
+ "sourceType": "script"
+ },
"plugins": [
"markdown"
],
+ "rules": {
+ "no-new": "off",
+ "strict": "error",
+ "unicorn/no-array-for-each": "off",
+ "unicorn/numeric-separators-style": "off",
+ "unicorn/prefer-node-protocol": "off"
+ },
"overrides": [
{
// 2. Enable the Markdown processor for all .md files.
- "files": ["./**/*.md"],
+ "files": [
+ "./**/*.md"
+ ],
"processor": "markdown/markdown"
},
{
@@ -28,27 +41,15 @@
},
"rules": {
"no-array-for-each": "off",
+ "no-labels": "off",
+ "no-redeclare": "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-labels": "off",
- "no-labels": "off",
- "no-redeclare": "off"
+ "no-unused-vars": "off",
+ "unicorn/no-array-for-each": "off",
+ "unicorn/numeric-separators-style": "off"
}
}
- ],
- "parserOptions": {
- "sourceType": "script"
- },
- "extends": "../.eslintrc.json",
- "rules": {
- "no-new": "off",
- "prefer-template": "error",
- "strict": "error",
- "unicorn/no-array-for-each": "off",
- "unicorn/numeric-separators-style": "off",
- "unicorn/prefer-node-protocol": "off"
- }
+ ]
}