Skip to content

Commit

Permalink
fix: linter issues (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkor authored Dec 16, 2024
1 parent e3f1a3f commit 1445ed9
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 26 deletions.
12 changes: 8 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,23 @@ module.exports = {
'error',
{
default: [
// Static fields
'public-static-field',
'protected-static-field',
'private-static-field',

// Instance fields
'public-instance-field',
'protected-instance-field',
'private-instance-field',

// Constructors
'constructor',

// Methods
'public-static-method',
'protected-static-method',
'private-static-method',
'public-abstract-method',
'protected-abstract-method',
'private-abstract-method',
'public-instance-method',
'protected-instance-method',
'private-instance-method'
Expand Down Expand Up @@ -116,7 +120,6 @@ module.exports = {
],
'@typescript-eslint/default-param-last': ['error'],
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/no-duplicate-imports': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/unified-signatures': 'error',
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
Expand Down Expand Up @@ -190,6 +193,7 @@ module.exports = {
'no-restricted-syntax': ['error', 'ForInStatement'],
'no-throw-literal': 'error',
'no-undef-init': 'error',
"no-duplicate-imports": "error",
'object-shorthand': 'error',
'one-var': ['error', 'never'],
'padding-line-between-statements': [
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"@commitlint/cli": "^18.4.0",
"@commitlint/config-conventional": "^18.4.0",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vercel/ncc": "^0.38.0",
"eslint": "^8.0.0",
"eslint-config-prettier": "^9.0.0",
Expand All @@ -42,7 +42,7 @@
"is-ci": "^3.0.1",
"lint-staged": "^15.0.0",
"prettier": "^3.0.0",
"typescript": "^5.0.0"
"typescript": "~5.3.3"
},
"commitlint": {
"extends": [
Expand All @@ -52,8 +52,7 @@
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write",
"git add"
"prettier --write"
]
}
}
30 changes: 19 additions & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"noImplicitAny": true,
"esModuleInterop": true
},
"exclude": ["node_modules", "**/*.test.ts"]
}
"compilerOptions": {
"target": "es2022",
"moduleResolution": "node",
"module": "commonjs",
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"noImplicitAny": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"lib": [
"ES2022"
]
},
"exclude": [
"node_modules"
]
}

0 comments on commit 1445ed9

Please sign in to comment.