summaryrefslogtreecommitdiffstats
path: root/site/.eslintrc.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-24 12:33:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-24 12:33:51 +0000
commit3ea39841c8049525e31e9f4d6300f0c60cdb42de (patch)
tree855de60a8872eafb5911acd303aedcdbfe713a73 /site/.eslintrc.json
parentInital commit. (diff)
downloadbootstrap-html-3ea39841c8049525e31e9f4d6300f0c60cdb42de.tar.xz
bootstrap-html-3ea39841c8049525e31e9f4d6300f0c60cdb42de.zip
Adding upstream version 5.2.3+dfsg.upstream/5.2.3+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'site/.eslintrc.json')
-rw-r--r--site/.eslintrc.json54
1 files changed, 54 insertions, 0 deletions
diff --git a/site/.eslintrc.json b/site/.eslintrc.json
new file mode 100644
index 0000000..1158ba3
--- /dev/null
+++ b/site/.eslintrc.json
@@ -0,0 +1,54 @@
+{
+ "env": {
+ "browser": true,
+ "node": false
+ },
+ "plugins": [
+ "markdown"
+ ],
+ "overrides": [
+ {
+ // 2. Enable the Markdown processor for all .md files.
+ "files": ["./**/*.md"],
+ "processor": "markdown/markdown"
+ },
+ {
+ // In v2, configuration for fenced code blocks is separate from the
+ // containing Markdown file. Each code block has a virtual filename
+ // appended to the Markdown file's path.
+ "files": [
+ "./**/*.md/*.js"
+ ],
+ // Configuration for fenced code blocks goes with the override for
+ // the code block's virtual filename, for example:
+ "parserOptions": {
+ "ecmaFeatures": {
+ "impliedStrict": true
+ }
+ },
+ "rules": {
+ "no-array-for-each": "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"
+ }
+ }
+ ],
+ "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"
+ }
+}