Visitar URL original
ESLint + Prettier + tsconfig by wmertens · Pull Request #1825 · nodegit/nodegit · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add tsconfig.json to allow TypeScript linting
  • Loading branch information
wmertens committed Jan 26, 2023
commit dd162720dfa0aed65a2e5296d598b45bded23247
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# auto-generated and third-party code
/vendor
/.travis
/.github
/build
/include
/generate/templates/templates/

# Don't try to check .d.ts files
**/*.ts

# Gitignore
/build/
/coverage/
Expand Down
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
"no-shadow": "warn",
"no-unused-vars": [
"error",
// allow unused vars starting with _
{
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true,
"varsIgnorePattern": "^_"
}
], // allow unused vars starting with _
],
"node/no-missing-require": "warn",
"prefer-const": "warn"
}
Expand Down
27 changes: 27 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"resolveJsonModule": true,
"downlevelIteration": true,
"jsx": "preserve",
// Check JS files too
"allowJs": true,
"checkJs": true,
// Used for temp builds
"outDir": "build"
},
"exclude": [
"build",
"coverage",
"dist",
"generate",
"include",
"lib/enums.js",
"lib/nodegit.js",
"node_modules",
"src",
"test",
"vendor"
]
}