Skip to content

Commit

Permalink
chore: update lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianwessel committed Feb 24, 2024
1 parent ea2a889 commit 2b3b316
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
16 changes: 12 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,30 @@
"plugin:prettier/recommended",
"plugin:vitest/recommended",
"plugin:import-esm/recommended"
],
"overrides": [{
"files":["*.ts"],
"rules": {
"@typescript-eslint/prefer-nullish-coalescing": "error"
}
}

],
"parser":"@typescript-eslint/parser",
"parserOptions":{
"ecmaVersion":"latest",
"sourceType":"module",
"extraFileExtensions":[".json"]
"project": "tsconfig.json"
},
"plugins":[
"import-esm",
"vitest",
"@typescript-eslint",
"simple-import-sort",
"import",
"json"
"json",
"@typescript-eslint"
],
"ignorePatterns":["**/dist"],
"ignorePatterns":["**/dist","website/doc/public/**"],
"rules":{
"simple-import-sort/imports":"error",
"simple-import-sort/exports":"error",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"scripts": {
"start": "npm run dev -w examples/fullexample",
"build": "npm run build --workspaces --if-present",
"lint": "eslint . --ext .ts,.json --cache . --fix",
"lint:fix": "eslint . --ext .ts,.json --cache .",
"lint": "eslint . --cache . --fix",
"lint:fix": "eslint . --cache .",
"test": "vitest -c vite.config.all.ts",
"test:unit": "vitest -c vite.config.ts",
"test:integration": "vitest -c vite.config.integration.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/natsbridge/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"strictNullChecks": true,
"outDir": "./dist",
"declaration": true,
"sourceMap": false,
Expand Down
1 change: 1 addition & 0 deletions packages/redis-config-store/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"strictNullChecks": true,
"outDir": "./dist",
"declaration": true,
"sourceMap": false,
Expand Down
1 change: 1 addition & 0 deletions packages/redis-state-store/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"declaration": true,
"sourceMap": false,
"declarationMap": true,
"strictNullChecks": true,
"types": [
"vitest/globals",
"node"
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 18",
"compilerOptions": {
"strictNullChecks": true,
"outDir": "dist",
"strict": true,
"module": "es2022",
Expand Down Expand Up @@ -30,5 +31,5 @@
"exclude": [
"node_modules",
"dist"
],
]
}

0 comments on commit 2b3b316

Please sign in to comment.