Skip to content

Commit

Permalink
chore: Clean up source code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Göran Sander committed Mar 8, 2024
1 parent e5ceae9 commit 6baccc0
Show file tree
Hide file tree
Showing 25 changed files with 9,096 additions and 8,996 deletions.
78 changes: 39 additions & 39 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
version: "2" # required to adjust maintainability checks
version: '2' # required to adjust maintainability checks
plugins:
eslint:
enabled: true
fixme:
enabled: true
markdownlint:
enabled: true
nodesecurity:
enabled: true
eslint:
enabled: true
fixme:
enabled: true
markdownlint:
enabled: true
nodesecurity:
enabled: true

checks:
argument-count:
config:
threshold: 6
complex-logic:
config:
threshold: 4
file-lines:
config:
threshold: 350
method-complexity:
config:
threshold: 20
method-count:
config:
threshold: 20
method-lines:
config:
threshold: 125
nested-control-flow:
config:
threshold: 4
return-statements:
config:
threshold: 4
similar-code:
enabled: false
identical-code:
config:
threshold: # language-specific defaults. an override will affect all languages.
argument-count:
config:
threshold: 6
complex-logic:
config:
threshold: 4
file-lines:
config:
threshold: 350
method-complexity:
config:
threshold: 20
method-count:
config:
threshold: 20
method-lines:
config:
threshold: 125
nested-control-flow:
config:
threshold: 4
return-statements:
config:
threshold: 4
similar-code:
enabled: false
identical-code:
config:
threshold: # language-specific defaults. an override will affect all languages.

exclude_patterns:
- "**/node_modules/"
- '**/node_modules/'
4 changes: 2 additions & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ parserOptions:
babelOptions:
plugins:
- '@babel/plugin-syntax-import-assertions'
parser: '@babel/eslint-parser'
parser: '@babel/eslint-parser'
rules:
prettier/prettier: error
import/no-unresolved: 2
import/no-commonjs: 2
import/extensions: [2, "ignorePackages"]
import/extensions: [2, 'ignorePackages']
plugins:
- prettier
- import
Expand Down
68 changes: 34 additions & 34 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
repos:
- repo: https://github.com/gitguardian/ggshield
rev: v1.12.0
hooks:
- id: ggshield
language_version: python3
stages: [commit]
- repo: https://github.com/gitguardian/ggshield
rev: v1.12.0
hooks:
- id: ggshield
language_version: python3
stages: [commit]

# - repo: https://github.com/pre-commit/mirrors-jshint
# rev: '' # Use the sha / tag you want to point at
# hooks:
# - id: jshint
# - repo: https://github.com/pre-commit/mirrors-jshint
# rev: '' # Use the sha / tag you want to point at
# hooks:
# - id: jshint

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1" # Use the sha / tag you want to point at
hooks:
- id: prettier
exclude: |
(?x)^(
.github/.*|
src/config/.*|
src/CHANGELOG.md|
src/config/.*|
changelog.md
)$
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v2.7.1' # Use the sha / tag you want to point at
hooks:
- id: prettier
exclude: |
(?x)^(
.github/.*|
src/config/.*|
src/CHANGELOG.md|
src/config/.*|
changelog.md
)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0 # Use the ref you want to point at
hooks:
- id: check-case-conflict
- id: check-json
exclude: |
(?x)^(
.vscode/launch.json
)$
- id: check-xml
- id: check-yaml
- id: detect-private-key
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0 # Use the ref you want to point at
hooks:
- id: check-case-conflict
- id: check-json
exclude: |
(?x)^(
.vscode/launch.json
)$
- id: check-xml
- id: check-yaml
- id: detect-private-key
6 changes: 5 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
dist
node_modules/**
node_modules/**
vis-network.min.js
package-lock.json
CHANGELOG.md

2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"src":"3.15.1"}
{ "src": "3.15.1" }
Loading

0 comments on commit 6baccc0

Please sign in to comment.