Skip to content

Commit

Permalink
Reduce CodeQL/Dependabot spam, ESLint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
DEVTomatoCake committed Jul 23, 2024
1 parent 50747c2 commit caf88ed
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 7 deletions.
24 changes: 20 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,31 @@ updates:
directory: "/"
schedule:
interval: "weekly"
day: "saturday"
time: "05:00"
timezone: "Europe/Berlin"
assignees:
- "DEVTomatoCake"
groups:
typescript-eslint:
eslint:
patterns:
- "@typescript-eslint/*"
- "@html-parser/eslint-plugin"
- "@html-parser/parser"
- "@stylistic/eslint-plugin-js"
- "eslint"
- "eslint-plugin-*"
- "@typescript-eslint/*"
vscode:
patterns:
- "@types/vscode"
- "@vscode/vsce"
- "@types/node"
- "@types/vscode"
- "@vscode/vsce"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "saturday"
time: "05:00"
timezone: "Europe/Berlin"
assignees:
- "DEVTomatoCake"
1 change: 0 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: "CodeQL"

on:
workflow_dispatch:
pull_request:

jobs:
analyze:
Expand Down
25 changes: 23 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = [
"default-param-last": 2,
"dot-notation": 2,
"func-name-matching": 2,
"func-style": 2,
"no-array-constructor": 2,
"no-compare-neg-zero": 2,
"no-const-assign": 2,
Expand All @@ -36,6 +37,7 @@ module.exports = [
"no-duplicate-case": 2,
"no-div-regex": 2,
"no-eq-null": 2,
"no-extra-boolean-cast": [2, {enforceForInnerExpressions: true}],
"no-extra-bind": 2,
"no-extend-native": 2,
"no-empty-pattern": 2,
Expand Down Expand Up @@ -102,6 +104,7 @@ module.exports = [
skipRegExps: true
}],
"no-constant-condition": 2,
"no-unsafe-negation": 2,
"no-undefined": 2,
"no-lone-blocks": 2,
"object-shorthand": 2,
Expand Down Expand Up @@ -137,7 +140,7 @@ module.exports = [
"@stylistic/js/no-trailing-spaces": 2,
"@stylistic/js/max-statements-per-line": 2,
"@stylistic/js/max-len": [2, {
code: 210
code: 200
}],
"@stylistic/js/quote-props": [2, "as-needed"],
"@stylistic/js/quotes": [2, "double", {
Expand All @@ -161,17 +164,27 @@ module.exports = [
"unicorn/empty-brace-spaces": 2,
"unicorn/error-message": 2,
"unicorn/new-for-builtins": 2,
"unicorn/catch-error-name": [2, {
name: "e",
ignore: [
"err",
"error",
/^\w+Error$/
]
}],
"unicorn/consistent-empty-array-spread": 2,
"unicorn/consistent-destructuring": 2,
"unicorn/consistent-function-scoping": 2,
"unicorn/no-array-method-this-argument": 2,
"unicorn/no-lonely-if": 2,
"unicorn/no-invalid-fetch-options": 2,
"unicorn/no-instanceof-array": 2,
"unicorn/no-magic-array-flat-depth": 2,
"unicorn/no-nested-ternary": 2,
"unicorn/no-new-buffer": 2,
"unicorn/no-console-spaces": 2,
"unicorn/no-for-loop": 2,
"unicorn/no-useless-undefined": 2,
"unicorn/no-zero-fractions": 2,
"unicorn/no-unreadable-iife": 2,
"unicorn/no-unnecessary-await": 2,
"unicorn/no-unreadable-array-destructuring": 2,
Expand All @@ -181,6 +194,7 @@ module.exports = [
"unicorn/no-useless-length-check": 2,
"unicorn/no-useless-spread": 2,
"unicorn/no-useless-promise-resolve-reject": 2,
"unicorn/no-zero-fractions": 2,
"unicorn/prefer-array-find": 2,
"unicorn/prefer-array-index-of": 2,
"unicorn/prefer-includes": 2,
Expand All @@ -194,16 +208,23 @@ module.exports = [
"unicorn/prefer-regexp-test": 2,
"unicorn/prefer-set-has": 2,
"unicorn/prefer-set-size": 2,
"unicorn/prefer-keyboard-event-key": 2,
"unicorn/prefer-negative-index": 2,
"unicorn/prefer-node-protocol": 2,
"unicorn/prefer-number-properties": [1, {
checkInfinity: true
}],
"unicorn/prefer-prototype-methods": 2,
"unicorn/prefer-string-trim-start-end": 2,
"unicorn/prefer-string-starts-ends-with": 2,
"unicorn/prefer-structured-clone": 2,
"unicorn/throw-new-error": 2,
"unicorn/require-number-to-fixed-digits-argument": 2,
"unicorn/switch-case-braces": [2, "avoid"],
"unicorn/text-encoding-identifier-case": 2,
"unicorn/no-await-in-promise-methods": 2,
"unicorn/no-single-promise-in-promise-methods": 2,
"unicorn/no-negation-in-equality-check": 2,

"sonarjs/no-extra-arguments": 2,
"sonarjs/no-empty-collection": 2,
Expand Down

0 comments on commit caf88ed

Please sign in to comment.