Skip to content

Commit

Permalink
Merge pull request #6 from FyraLabs/rewrite
Browse files Browse the repository at this point in the history
[*] Yes.
  • Loading branch information
lleyton authored Apr 2, 2023
2 parents cdae2e4 + 290ca9b commit a6605c8
Show file tree
Hide file tree
Showing 23 changed files with 2,229 additions and 1,524 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
45 changes: 45 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
module.exports = {
env: {
commonjs: true,
es6: true,
node: true
},
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
globals: {
NodeJS: true,
BigInt: true
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module'
},
plugins: ['@typescript-eslint'],
rules: {
'prettier/prettier': 'warn',
'no-cond-assign': [2, 'except-parens'],
'no-unused-vars': 0,
'@typescript-eslint/no-unused-vars': 1,
'no-empty': [
'error',
{
allowEmptyCatch: true
}
],
'prefer-const': [
'warn',
{
destructuring: 'all'
}
],
'spaced-comment': 'warn'
},
overrides: [
{
files: ['slash-up.config.js'],
env: {
node: true
}
}
]
};
26 changes: 14 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# files
.vscode
.env
.env.local
package-lock.json
# Packages
node_modules/
yarn.lock
bot.db
bot.db-journal
.DS_Store
package_lock.json

# Log files
logs/
*.log

# folders
build
node_modules
data
# Miscellaneous
.tmp/
.vscode/**/*
.idea/**/*
!.vscode/extensions.json
.env
dist/
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"trailingComma": "none",
"printWidth": 120
}
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"deepscan.vscode-deepscan",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"editorconfig.editorconfig"
]
}
Loading

0 comments on commit a6605c8

Please sign in to comment.