Skip to content

Commit

Permalink
Major refactor to standardize the code with prettier and strict eslin…
Browse files Browse the repository at this point in the history
…t rules
  • Loading branch information
TfTHacker committed Dec 3, 2023
1 parent 6d44096 commit 217c6de
Show file tree
Hide file tree
Showing 33 changed files with 2,924 additions and 1,634 deletions.
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# EditorConfig: https://EditorConfig.org

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_style = space
indent_size = 2

[*.md]
max_line_length = 90
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
24 changes: 22 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,22 @@
npm node_modules
build
# first use !negation to whitelist stuff that was ignored by default
# directories
!.github/
!.config/
# files
!.commitlintrc.cjs
!.prettierrc.json
!.remarkrc.cjs

# ignoring css still
# *.css

# Dependency directories
node_modules/
jspm_packages/
pnpm-lock.yaml
package-lock.json

.vscode/

# Obsidian
main.js
36 changes: 17 additions & 19 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"no-prototype-builtins": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"no-prototype-builtins": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
Loading

0 comments on commit 217c6de

Please sign in to comment.