forked from matheuss/google-translate-api
-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
8,359 additions
and
17,550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
extends: | ||
- eslint:recommended | ||
- plugin:@typescript-eslint/recommended | ||
|
||
parser: '@typescript-eslint/parser' | ||
|
||
plugins: | ||
- '@typescript-eslint' | ||
|
||
env: | ||
node: true | ||
es2020: true | ||
|
||
rules: | ||
no-console: error | ||
complexity: [error, { max: 6 }] | ||
max-depth: [error, { max: 2 }] | ||
max-nested-callbacks: [error, { max: 2 }] | ||
max-params: [error, { max: 4 }] | ||
max-statements: [error, { max: 10 }, { ignoreTopLevelFunctions: false }] | ||
max-len: [error, { code: 120, ignoreUrls: true }] | ||
max-lines: [error, { max: 200, skipComments: true, skipBlankLines: true }] | ||
semi: [error, always] | ||
no-multiple-empty-lines: [error, { max: 1 }] | ||
space-before-function-paren: [error, { anonymous: always, named: never, asyncArrow: always }] | ||
no-constant-condition: [error, { checkLoops: false }] | ||
'@typescript-eslint/explicit-module-boundary-types': 0 | ||
'@typescript-eslint/no-non-null-assertion': 0 | ||
'@typescript-eslint/no-unused-vars': [error, { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,10 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
.DS_Store | ||
.vscode | ||
.idea | ||
|
||
# Dependency directories | ||
# npm | ||
node_modules | ||
jspm_packages | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
.idea | ||
npm-debug.log | ||
|
||
/check.js | ||
/dist | ||
/check.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
# Exit on any error | ||
set -euo pipefail | ||
|
||
npx lint-staged | ||
# dont run test before commit to not trigger google limits | ||
# npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
# Exit on any error | ||
set -euo pipefail | ||
|
||
npm run lint | ||
npm test |
Oops, something went wrong.