Skip to content

Commit 21b3d99

Browse files
authored
Merge pull request #4 from TENSIILE/feature/saborter-initialization
feat: adds functionality for integration with the Express framework
2 parents cd20b67 + 5d7fe06 commit 21b3d99

14 files changed

Lines changed: 6586 additions & 879 deletions

.eslintrc

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"root": true,
3+
"env": { "browser": true, "es2020": true, "jest": true },
4+
"extends": ["eslint:recommended", "airbnb", "plugin:import/typescript", "plugin:prettier/recommended"],
5+
"parser": "@typescript-eslint/parser",
6+
"ignorePatterns": [
7+
"**/dist/",
8+
"**/node_modules/",
9+
"**/*.json",
10+
"**/*.html",
11+
"/**/coverage/",
12+
"**/integrations/**/",
13+
"./vite.config.js"
14+
],
15+
"plugins": ["@typescript-eslint", "prettier"],
16+
"rules": {
17+
"no-continue": "off",
18+
"quotes": "off",
19+
"import/prefer-default-export": ["off"],
20+
"class-methods-use-this": ["off"],
21+
"func-names": ["off"],
22+
"no-plusplus": ["off"],
23+
"prefer-spread": ["off"],
24+
"consistent-return": ["off"],
25+
"newline-before-return": "warn",
26+
"default-case": ["off"],
27+
"comma-dangle": ["off"],
28+
"import/extensions": ["off"],
29+
"max-len": ["off"],
30+
"no-console": ["warn", { "allow": ["warn", "error"] }],
31+
"@typescript-eslint/lines-between-class-members": ["off", {}],
32+
"import/no-extraneous-dependencies": ["off"],
33+
"@typescript-eslint/no-unused-vars": ["off", {}],
34+
"no-unused-vars": ["off"],
35+
"prettier/prettier": [
36+
"error",
37+
{
38+
"arrowParens": "always",
39+
"endOfLine": "auto"
40+
}
41+
]
42+
},
43+
"overrides": [
44+
{
45+
"files": ["*.ts", "*.tsx"],
46+
"rules": {
47+
"no-undef": "off"
48+
}
49+
}
50+
]
51+
}

.husky/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
npm run format
2+
npm run verify
3+
npx lint-staged

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist
2+
coverage
3+
**/.git
4+
**/node_modules

.prettierrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"semi": true,
3+
"tabWidth": 2,
4+
"printWidth": 120,
5+
"singleQuote": true,
6+
"endOfLine": "lf",
7+
"trailingComma": "none",
8+
"jsxSingleQuote": true,
9+
"bracketSpacing": true,
10+
"useTabs": false,
11+
"jsxBracketSameLine": false,
12+
"arrowParens": "always"
13+
}

cspell.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"version": "0.2",
3+
"language": "en,ru",
4+
"words": ["Saborter", "saborter", "Laptev", "Vladislav", "tgz", "Сalls", "Interruptible"],
5+
"flagWords": [],
6+
"ignorePaths": [
7+
"node_modules/**",
8+
"dist/**",
9+
"build/**",
10+
".git/**",
11+
"coverage/**",
12+
"*.log",
13+
"package-lock.json",
14+
"./**/*.test.ts",
15+
"./cspell.json",
16+
"./integrations"
17+
],
18+
"dictionaries": ["typescript", "node", "softwareTerms", "en_US", "ru_RU"],
19+
"useGitignore": true,
20+
"patterns": [
21+
{
22+
"name": "markdown-links",
23+
"pattern": "\\(.*\\)",
24+
"description": "Ignore URLs in Markdown"
25+
},
26+
{
27+
"name": "html-entities",
28+
"pattern": "&\\w+;",
29+
"description": "Ignore HTML entities"
30+
}
31+
],
32+
"ignoreRegExpList": ["/\\[.*\\]\\(.*\\)/g", "/&[a-z]+;/g", "/0x[a-fA-F0-9]+/g", "/\\$[^{][\\w.]+/g"],
33+
"caseSensitive": false,
34+
"allowCompoundWords": true,
35+
"minWordLength": 3
36+
}

0 commit comments

Comments
 (0)