Skip to content

Commit

Permalink
Release 1.0.0-ALPHA.6 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
LoboMetalurgico authored Nov 2, 2024
2 parents 650df56 + 33d9487 commit 668b9f9
Show file tree
Hide file tree
Showing 12 changed files with 5,079 additions and 2,008 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

96 changes: 0 additions & 96 deletions .eslintrc

This file was deleted.

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

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/**/*", "scripts/**/*"],
}, ...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
), {
plugins: {
"@typescript-eslint": typescriptEslint,
},

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

parser: tsParser,
ecmaVersion: "latest",
sourceType: "module",

parserOptions: {
project: "./tsconfig.json",
},
},

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", {
fixToUnknown: true,
ignoreRestArgs: true,
}],

"@typescript-eslint/no-unused-vars": ["warn", {
argsIgnorePattern: "^_",
}],

"@typescript-eslint/no-unused-expressions": ["error", {
allowTaggedTemplates: true,
}],

"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/no-non-null-assertion": ["off"],
"@typescript-eslint/no-duplicate-enum-values": "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": "off",
"no-unused-labels": "warn",
"no-unused-expressions": "off",

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

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

"no-use-before-define": ["off", {
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 668b9f9

Please sign in to comment.