feat: upgrade yarn, add linting packages

This commit is contained in:
Sergey Krylov 2024-04-08 05:36:17 +03:00
parent 139a4a6766
commit 4908398d68
9 changed files with 6027 additions and 2048 deletions

3
.commitlintrc Normal file
View File

@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}

10
.editorconfig Normal file
View File

@ -0,0 +1,10 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
[*.{js,json,yml}]
charset = utf-8
indent_style = space
indent_size = 2

34
.gitignore vendored
View File

@ -1,2 +1,32 @@
node_modules
.idea
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
/public/CHANGELOG.md
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# ide
/.vscode
/.idea
.yarn/*
!.yarn/releases
!.yarn/plugins

1
.husky/commit-msg Normal file
View File

@ -0,0 +1 @@
npx --no -- commitlint --edit $1

8
.versionrc Normal file
View File

@ -0,0 +1,8 @@
{
"header": "# ksv741 Eslint Config",
"releaseCommitMessageFormat": "build: v{{currentTag}}",
"types": [
{"type": "feat", "section": "🚀 New Features"},
{"type": "fix", "section": "\uD83D\uDEE0\uFE0F Bug Fixes"}
]
}

893
.yarn/releases/yarn-4.1.1.cjs vendored Executable file

File diff suppressed because one or more lines are too long

7
.yarnrc.yml Normal file
View File

@ -0,0 +1,7 @@
nodeLinker: node-modules
npmAuthToken: "${NODE_AUTH_TOKEN-fallback}"
npmPublishRegistry: "https://registry.npmjs.org"
yarnPath: .yarn/releases/yarn-4.1.1.cjs

View File

@ -24,7 +24,11 @@
},
"version": "0.0.1",
"devDependencies": {
"eslint": "8.56.0"
"@commitlint/cli": "19.2.1",
"@commitlint/config-conventional": "19.1.0",
"eslint": "8.56.0",
"husky": "9.0.11",
"standard-version": "9.5.0"
},
"main": "index.js",
"engines": {
@ -62,6 +66,8 @@
"./jest": "./js-ts-jest.js"
},
"scripts": {
"release": "standard-version",
"release:rc": "standard-version --prerelease rc",
"prepare": "husky"
}
}

7111
yarn.lock

File diff suppressed because it is too large Load Diff