Skip to content

Commit 43ac601

Browse files
authored
chore: update eslint setup and sync boilerplate changes (#605)
1 parent 4e5af98 commit 43ac601

File tree

15 files changed

+510
-507
lines changed

15 files changed

+510
-507
lines changed

.boilerplate-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fbb58dd35ba36ecc8dad791268120463b53a6815
1+
d769f2d57af542dd1ef245dc3594d9e5ac6e31dc

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ on:
66

77
jobs:
88
release:
9-
name: '/'
9+
name: 'Release'
1010
uses: technology-studio/github-workflows/.github/workflows/_release.yml@main
1111
secrets: inherit

.github/workflows/resolve-yarn-lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
resolve-yarn-lock-on-comment:
9-
name: '/'
9+
name: 'Resolve yarn.lock'
1010
if: contains(github.event.comment.body, '/resolve yarn.lock')
1111
uses: technology-studio/github-workflows/.github/workflows/_resolve-yarn-lock.yml@main
1212
secrets: inherit

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,5 @@ android/keystores/debug.keystore
7171
# generated by bob
7272
lib/
7373
coverage
74+
75+
*.tgz

.husky/pre-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
yarn git-hook
2-
1+
yarn -s lint-staged

.husky/prepare-commit-msg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
yarn commitlint --edit || exec < /dev/tty && yarn txo-cz --hook > /dev/null 2>&1 || true
2-

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/*
1+
22.13.1

__tests__/Setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @Copyright: Technology Studio
55
**/
66

7-
import './Config/LogConfig'
7+
import 'Config/LogConfig'
88

99
// Mock your external modules here if needed
1010
// jest

__tests__/tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
{
22
"extends": "../tsconfig-base.json",
33
"compilerOptions": {
4+
"rootDir": "../",
5+
"baseUrl": "../",
6+
"paths": {
7+
"Config/*": ["./__tests__/Config/*"],
8+
"Data/*": ["./__tests__/Data/*"],
9+
"Utils/*": ["./__tests__/Utils/*"],
10+
"src": ["./src"],
11+
"src/*": ["./src/*"]
12+
}
413
},
514
"include": [
615
"./**/*.ts"

eslint-ci-rules.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
"@stylistic/space-before-function-paren",
3+
"@typescript-eslint/no-magic-numbers",
4+
"eslint-comments/require-description",
5+
"@stylistic/max-statements-per-line",
6+
"@stylistic/jsx-quotes",
7+
"@stylistic/operator-linebreak",
8+
"@stylistic/quotes",
9+
"@typescript-eslint/no-unnecessary-condition"
10+
]

0 commit comments

Comments
 (0)