Skip to content

Commit

Permalink
feat: v2 preparations
Browse files Browse the repository at this point in the history
  • Loading branch information
abriginets committed Sep 22, 2023
1 parent 6aac63d commit 172c994
Show file tree
Hide file tree
Showing 44 changed files with 9,260 additions and 16,611 deletions.
5 changes: 0 additions & 5 deletions .babelrc

This file was deleted.

Empty file removed .coveralls.yml
Empty file.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

100 changes: 89 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,92 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended'
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
extends: [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:jest/recommended",
"plugin:prettier/recommended",
],
plugins: ["@typescript-eslint", "jest", "prettier"],
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
env: {
node: true,
es6: true,
jest: true,
},
rules: {
"eol-last": ["error", "always"],
"newline-before-return": "error",
"import/extensions": 0,
"import/no-extraneous-dependencies": [
"error",
{
devDependencies: false,
optionalDependencies: false,
peerDependencies: false,
},
],
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module'
"no-restricted-imports": "error",
semi: "error",
"comma-dangle": "off",
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
quotes: "off",
"@typescript-eslint/quotes": [
"error",
"single",
{
allowTemplateLiterals: true,
},
],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"arrow-parens": ["error", "always"],
indent: "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
},
],
"spaced-comment": ["error", "always"],
"no-multiple-empty-lines": [
"error",
{
max: 2,
maxEOF: 0,
},
],
"import/order": [
"error",
{
groups: [
["external", "internal", "builtin"],
["sibling", "parent"],
"index",
"object",
],
pathGroupsExcludedImportTypes: ["builtin"],
"newlines-between": "always",
alphabetize: {
order: "asc",
caseInsensitive: true,
},
},
],
},
settings: {
"import/resolver": {
node: {
extensions: [".js", ".ts", ".jsx", ".tsx"],
},
},
rules: {
'@typescript-eslint/member-delimiter-style': ['off'],
'@typescript-eslint/ban-ts-ignore': ['off']
}
};
},
};
11 changes: 1 addition & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,5 @@ node_modules/
.env
.env.test

# VS Code settings
.vscode/

# Build directories
server/dist
public/dist

benchmark/webserver.js

# Compiled templates
templates/compiled
dist
1 change: 1 addition & 0 deletions .tool-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 18.18.0
17 changes: 17 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.formatOnSave": true,
"editor.trimAutoWhitespace": true,
"files.insertFinalNewline": true,
"files.encoding": "utf8",
"typescript.tsdk": "node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"typescript.preferences.importModuleSpecifier": "relative",
"prettier.prettierPath": "./node_modules/prettier"
}
95 changes: 0 additions & 95 deletions benchmark/webserver.ts

This file was deleted.

File renamed without changes.
Loading

0 comments on commit 172c994

Please sign in to comment.