Skip to content

Commit

Permalink
chore: migrate from istanbul to nyc coverage package and from tslint …
Browse files Browse the repository at this point in the history
…to eslint lint package (#654)

Signed-off-by: Ilona Shishov <[email protected]>
  • Loading branch information
IlonaShishov committed Oct 29, 2023
1 parent 2b35041 commit f2e8a6c
Show file tree
Hide file tree
Showing 37 changed files with 2,823 additions and 2,666 deletions.
56 changes: 56 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
module.exports = {
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": ["camelCase"]
},
{
"selector": ["class", "interface", "enum"],
"format": ["PascalCase"]
},
{
"selector": ["enumMember", "variable", "property", "method"],
"format": ["UPPER_CASE", "camelCase"],
"leadingUnderscore": "allow"
}
],
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/quotes": [
"error",
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-redeclare": "error",
"no-async-promise-executor": "off",
"no-redeclare": "off",
"no-duplicate-case": "error",
"no-shadow": "off",
"curly": "error",
"semi": "off",
"eqeqeq": ["error", "always"],
"quotes": "off",
"no-debugger": "error",
"no-empty": "error",
"no-var": "error",
"no-unsafe-finally": "error",
"new-parens": "error",
"no-throw-literal": "error",
}
}
30 changes: 17 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
# Dependency directories
**/node_modules
**/package-lock.json

# test data directories
test-workspace/

# nyc test coverage directories
coverage/
.nyc_output/
.vscode-test/

# npm config file
.npmrc

#others
dist
out
node_modules
ca-lsp-server.tar
ca-lsp-server/
*.vsix
.vscode-test/
.DS_Store
*.tar.*
coverage/
.history
target/
coverage/
.history
target/
test/resources/**/package-lock.json
test/resources/**/node_modules
.npmrc
test-workspace/
.history
2 changes: 0 additions & 2 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ node_modules/**
**/target
**/*.map
.gitignore
tsconfig.json
tslint.json
vsc-extension-quickstart.md
**/**.tar
**/**.tar.gz
Expand Down
16 changes: 0 additions & 16 deletions coverconfig.json

This file was deleted.

Loading

0 comments on commit f2e8a6c

Please sign in to comment.