Skip to content

Commit ad5d77c

Browse files
committed
style: changing some linting settings
1 parent 727c933 commit ad5d77c

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/*.js
22
node_modules
33
lib
4+
src/**/*.json

.eslintrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"template": " Copyright 2022 Cognite AS"
2929
}]
3030
],
31+
"@typescript-eslint/no-explicit-any": "off",
3132
"consistent-return": "off",
3233
"no-underscore-dangle": "off",
3334
"@typescript-eslint/ban-ts-comment": "off",

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"sample:device": "ts-node -r tsconfig-paths/register samples/device.ts",
3434
"sample:devicewrefresh": "ts-node -r tsconfig-paths/register samples/device_w_refresh.ts",
3535
"sample:implicit": "ts-node -r tsconfig-paths/register samples/implicit.ts",
36+
"eslint": "eslint --max-warnings 0 --ext .ts '{src,samples}/**/*'",
3637
"test": "jest --silent --runInBand --coverage",
3738
"semantic-release": "semantic-release"
3839
},

prettier.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
singleQuote: true,
3-
traillingComma: 'all',
4-
arrowParams: 'avoid',
3+
trailingComma: 'all',
4+
arrowParens: 'avoid',
55
}

src/core/http/server.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright 2022 Cognite AS
22
import * as express from 'express';
33

4-
import { errorHandling } from '../../helper';
54
import { IRequestResponse, IServer } from '../../interfaces/common';
65

76
/**

0 commit comments

Comments
 (0)