Skip to content

Commit

Permalink
add lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arteck committed Oct 31, 2023
1 parent b473065 commit 3630f47
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tsconfig.check.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Specialized tsconfig for type-checking js files
{
"extends": "./tsconfig.json",
"compilerOptions": {},
"include": [
"**/*.js",
"**/*.d.ts"
],
"exclude": [
"**/build",
"node_modules/",
"widgets/"
]
}
34 changes: 34 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Root tsconfig to set the settings and power editor support for all TS files
{
"compileOnSave": true,
"compilerOptions": {
// do not compile anything, this file is just to configure type checking
"noEmit": true,
// check JS files
"allowJs": true,
"checkJs": true,
"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
// this is necessary for the automatic typing of the adapter config
"resolveJsonModule": true,
// Set this to false if you want to disable the very strict rules (not recommended)
"strict": true,
// Or enable some of those features for more fine-grained control
// "strictNullChecks": true,
// "strictPropertyInitialization": true,
// "strictBindCallApply": true,
"noImplicitAny": false,
// "noUnusedLocals": true,
// "noUnusedParameters": true,
"useUnknownInCatchVariables": false,
"target": "es2020",
},
"include": [
"**/*.js",
"**/*.d.ts"
],
"exclude": [
"node_modules/**"
]
}

0 comments on commit 3630f47

Please sign in to comment.