Skip to content

Commit

Permalink
(feat): years of work, not production-ready yet
Browse files Browse the repository at this point in the history
Co-Authored-By: Space_Fox <[email protected]>
  • Loading branch information
LoboMetalurgico and SpaceFox1 committed Feb 8, 2025
1 parent ab71156 commit 128275a
Show file tree
Hide file tree
Showing 61 changed files with 7,317 additions and 5,220 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

95 changes: 0 additions & 95 deletions .eslintrc

This file was deleted.

72 changes: 0 additions & 72 deletions .eslintrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Auto detect text files and perform LF normalization
* text=auto eol=lf
*.java text eol=lf
*.js text eol=lf
*.ts text eol=lf
*.js text eol=lf
*.java text eol=lf
*.md text eol=lf
*.xml text eol=lf
*.yml text eol=lf
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,8 @@ dist
# TernJS port file
.tern-port

# Ide files
.idea/
.vscode/

Configs/
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/gallium
lts/jod
7 changes: 0 additions & 7 deletions .prettierignore

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

## (WIP) v5.0.0: Aruna v5

## v4.3.5: Voice Update

- New:
Expand Down
121 changes: 121 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: ["build/**/*"],
}, ...compat.extends(
"standard",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
), {
plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
globals: {
...globals.commonjs,
...globals.node,
},

parser: tsParser,
ecmaVersion: 2020,
sourceType: "module",
},

rules: {
"@typescript-eslint/ban-ts-ignore": ["off"],
"@typescript-eslint/explicit-function-return-type": ["error"],
"@typescript-eslint/interface-name-prefix": ["off"],
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/no-unused-expressions": ["error"],
"@typescript-eslint/no-var-requires": ["off"],
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/no-non-null-assertion": ["off"],
"array-bracket-spacing": ["warn", "never"],
capIsNew: ["off"],
"comma-dangle": ["error", "always-multiline"],
"computed-property-spacing": "warn",

"default-case": ["error", {
commentPattern: "^no default$",
}],

"eol-last": ["error", "always"],

indent: ["warn", 2, {
SwitchCase: 1,
}],

"keyword-spacing": ["warn", {
before: true,
after: true,
}],

"linebreak-style": ["error", "unix"],

"max-len": ["warn", {
code: 250,
ignoreComments: true,
ignoreUrls: true,
}],

"new-cap": 0,
"no-async-promise-executor": ["off"],
"no-await-in-loop": "warn",
"no-caller": 2,
"no-compare-neg-zero": "error",
"no-cond-assign": [2, "except-parens"],
"no-empty-pattern": ["off"],
"no-template-curly-in-string": "error",
"no-unsafe-negation": "error",
"no-undef": ["error"],
"no-unused-vars": 1,

"no-empty": ["error", {
allowEmptyCatch: true,
}],

"no-console": "off",
"no-multi-spaces": "warn",

"no-use-before-define": [2, {
functions: false,
classes: false,
variables: false,
}],

"no-var": ["off"],
"no-prototype-builtins": ["off"],
"object-curly-spacing": ["error", "always"],

"prefer-const": ["warn", {
destructuring: "all",
}],

quotes: ["error", "single", {
allowTemplateLiterals: true,
}],

strict: ["error", "global"],
semi: ["error", "always"],
"spaced-comment": ["warn", "always"],
"sort-keys": ["off"],
"space-before-function-paren": ["off"],
"space-infix-ops": "warn",
},
}];
Loading

0 comments on commit 128275a

Please sign in to comment.