Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"root": true,
"env": { "browser": true, "es2020": true, "jest": true },
"extends": ["eslint:recommended", "airbnb", "plugin:import/typescript", "plugin:prettier/recommended"],
"parser": "@typescript-eslint/parser",
"ignorePatterns": [
"**/dist/",
"**/node_modules/",
"**/*.json",
"**/*.html",
"/**/coverage/",
"**/integrations/**/",
"./vite.config.js"
],
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"no-continue": "off",
"quotes": "off",
"import/prefer-default-export": ["off"],
"class-methods-use-this": ["off"],
"func-names": ["off"],
"no-plusplus": ["off"],
"prefer-spread": ["off"],
"consistent-return": ["off"],
"newline-before-return": "warn",
"default-case": ["off"],
"comma-dangle": ["off"],
"import/extensions": ["off"],
"max-len": ["off"],
"no-console": ["warn", { "allow": ["warn", "error"] }],
"@typescript-eslint/lines-between-class-members": ["off", {}],
"import/no-extraneous-dependencies": ["off"],
"@typescript-eslint/no-unused-vars": ["off", {}],
"no-unused-vars": ["off"],
"prettier/prettier": [
"error",
{
"arrowParens": "always",
"endOfLine": "auto"
}
]
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"no-undef": "off"
}
}
]
}
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
npm run format
npm run verify
npx lint-staged
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
coverage
**/.git
**/node_modules
13 changes: 13 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"semi": true,
"tabWidth": 2,
"printWidth": 120,
"singleQuote": true,
"endOfLine": "lf",
"trailingComma": "none",
"jsxSingleQuote": true,
"bracketSpacing": true,
"useTabs": false,
"jsxBracketSameLine": false,
"arrowParens": "always"
}
36 changes: 36 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "0.2",
"language": "en,ru",
"words": ["Saborter", "saborter", "Laptev", "Vladislav", "tgz", "Сalls", "Interruptible"],
"flagWords": [],
"ignorePaths": [
"node_modules/**",
"dist/**",
"build/**",
".git/**",
"coverage/**",
"*.log",
"package-lock.json",
"./**/*.test.ts",
"./cspell.json",
"./integrations"
],
"dictionaries": ["typescript", "node", "softwareTerms", "en_US", "ru_RU"],
"useGitignore": true,
"patterns": [
{
"name": "markdown-links",
"pattern": "\\(.*\\)",
"description": "Ignore URLs in Markdown"
},
{
"name": "html-entities",
"pattern": "&\\w+;",
"description": "Ignore HTML entities"
}
],
"ignoreRegExpList": ["/\\[.*\\]\\(.*\\)/g", "/&[a-z]+;/g", "/0x[a-fA-F0-9]+/g", "/\\$[^{][\\w.]+/g"],
"caseSensitive": false,
"allowCompoundWords": true,
"minWordLength": 3
}
Loading
Loading