From 185ddf1eaf82e08586be6c7689507ee924d9dd47 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 19 Aug 2022 13:15:48 +0000 Subject: update to bootstrap 5.2 and fixes --- vendor/twbs/bootstrap/site/.eslintrc.json | 94 ++++++++++++++----------------- 1 file changed, 43 insertions(+), 51 deletions(-) (limited to 'vendor/twbs/bootstrap/site/.eslintrc.json') diff --git a/vendor/twbs/bootstrap/site/.eslintrc.json b/vendor/twbs/bootstrap/site/.eslintrc.json index 0660ebbaf..7cca4bc20 100644 --- a/vendor/twbs/bootstrap/site/.eslintrc.json +++ b/vendor/twbs/bootstrap/site/.eslintrc.json @@ -1,61 +1,53 @@ { - "root": true, + "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": { - "ecmaVersion": 5, "sourceType": "script" }, - "extends": [ - "plugin:unicorn/recommended", - "xo", - "xo/browser" - ], + "extends": "../.eslintrc.json", "rules": { - "arrow-body-style": "off", - "capitalized-comments": "off", - "comma-dangle": [ - "error", - "never" - ], - "indent": [ - "error", - 2, - { - "MemberExpression": "off", - "SwitchCase": 1 - } - ], - "multiline-ternary": [ - "error", - "always-multiline" - ], "no-new": "off", - "no-var": "off", - "object-curly-spacing": [ - "error", - "always" - ], - "object-shorthand": "off", - "operator-linebreak": [ - "error", - "after" - ], - "prefer-arrow-callback": "off", - "prefer-destructuring": "off", - "semi": [ - "error", - "never" - ], + "prefer-template": "error", "strict": "error", "unicorn/no-array-for-each": "off", - "unicorn/no-array-method-this-argument": "off", - "unicorn/no-for-loop": "off", - "unicorn/no-null": "off", - "unicorn/numeric-separators-style": "off", - "unicorn/prefer-array-flat": "off", - "unicorn/prefer-dom-node-dataset": "off", - "unicorn/prefer-module": "off", - "unicorn/prefer-prototype-methods": "off", - "unicorn/prefer-query-selector": "off", - "unicorn/prevent-abbreviations": "off" + "unicorn/numeric-separators-style": "off" } } -- cgit v1.2.3