forked from dynamodb-toolbox/dynamodb-toolbox
-
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.
chore(deps): add typescript eslint (dynamodb-toolbox#372)
- Loading branch information
Showing
52 changed files
with
1,117 additions
and
724 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,54 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"node": true, | ||
"jest": true | ||
"es6": true, | ||
"node": true, | ||
"jest": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"root": true, | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single", | ||
{ "allowTemplateLiterals": true } | ||
], | ||
"semi": [ | ||
"error", | ||
"never" | ||
], | ||
"indent": [ | ||
"error", | ||
2, | ||
{ "SwitchCase": 1, "flatTernaryExpressions": true } | ||
] | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single", | ||
{ | ||
"allowTemplateLiterals": true | ||
} | ||
], | ||
"semi": [ | ||
"error", | ||
"never" | ||
], | ||
"indent": [ | ||
"error", | ||
2, | ||
{ | ||
"SwitchCase": 1, | ||
"flatTernaryExpressions": true | ||
} | ||
], | ||
// TODO: remove this rule when all the code is fully migrated to TS, atm it just produces a lot of noise | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
// TODO: remove this rule when all the code is fully migrated to TS, atm it just produces a lot of noise | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/ban-types": "warn" | ||
}, | ||
"globals": { | ||
"expect": true, | ||
"it": true | ||
"expect": true, | ||
"it": true | ||
} | ||
} |
Oops, something went wrong.