-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: upgrade dependencies and rules
- Loading branch information
Showing
13 changed files
with
1,491 additions
and
1,436 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,29 +1,13 @@ | ||
/* | ||
* Copyright (c) 2021. | ||
* | ||
* File created to GLEN SOFT company. | ||
*/ | ||
|
||
module.exports = { | ||
extends: [ | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
require.resolve('./shared'), | ||
], | ||
rules: { | ||
// encourages use of dot notation whenever possible | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/dot-notation.md | ||
'dot-notation': 'off', | ||
'@typescript-eslint/dot-notation': ['error', { allowKeywords: true }], | ||
|
||
// disallow use of eval()-like methods | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-implied-eval.md | ||
'no-implied-eval': 'off', | ||
'@typescript-eslint/no-implied-eval': ['error'], | ||
|
||
// restrict what can be thrown as an exception | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-throw-literal.md | ||
'no-throw-literal': 'off', | ||
'@typescript-eslint/no-throw-literal': ['error'], | ||
'@typescript-eslint/return-await': ['error', 'in-try-catch'], | ||
}, | ||
}; |
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,10 +1,10 @@ | ||
{ | ||
"name": "eslint-config-airbnb-typescript-base", | ||
"version": "3.1.0", | ||
"description": "Airbnb Base Typescript config", | ||
"license": "MIT", | ||
"author": "José Manuel Casani Guerra <[email protected]>", | ||
"main": "index.js", | ||
"version": "3.0.1", | ||
"scripts": { | ||
"format": "yarn run format:package && yarn run format:prettier && yarn run format:eslint", | ||
"format:eslint": "eslint --fix ./ >/dev/null 2>&1 || true", | ||
|
@@ -16,28 +16,28 @@ | |
"validate": "yarn run lint" | ||
}, | ||
"dependencies": { | ||
"@typescript-eslint/eslint-plugin": "^5.7.0", | ||
"@typescript-eslint/parser": "^5.7.0", | ||
"@typescript-eslint/eslint-plugin": "^5.18.0", | ||
"@typescript-eslint/parser": "^5.18.0", | ||
"confusing-browser-globals": "^1.0.11", | ||
"eslint": "^8.5.0", | ||
"eslint-import-resolver-typescript": "^2.5.0", | ||
"eslint": "^8.13.0", | ||
"eslint-import-resolver-typescript": "^2.7.1", | ||
"eslint-import-resolver-webpack": "^0.13.2", | ||
"eslint-plugin-import": "^2.25.3", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-typescript-sort-keys": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"commitlint": "^15.0.0", | ||
"commitlint": "^16.2.3", | ||
"commitlint-config-gitmoji": "^2.2.5", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"husky": "^7.0.4", | ||
"lint-staged": "^12.1.2", | ||
"pinst": "^2.1.6", | ||
"prettier": "^2.5.1", | ||
"prettier-package-json": "^2.6.0", | ||
"typescript": "^4.5.4" | ||
"lint-staged": "^12.3.7", | ||
"pinst": "^3.0.0", | ||
"prettier": "^2.6.2", | ||
"prettier-package-json": "^2.6.3", | ||
"typescript": "^4.6.3" | ||
}, | ||
"lint-staged": { | ||
"*.{js,ts}": "eslint" | ||
}, | ||
"packageManager": "yarn@3.1.1" | ||
"packageManager": "yarn@3.2.0" | ||
} |
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
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,7 +1,4 @@ | ||
module.exports = { | ||
env: { | ||
node: true, | ||
}, | ||
rules: { | ||
// enforce return after a callback | ||
'callback-return': 'off', | ||
|
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
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
Oops, something went wrong.