Skip to content

Commit

Permalink
chore(deps): add typescript eslint (dynamodb-toolbox#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
naorpeled authored Nov 18, 2022
1 parent 994e2d5 commit f405218
Show file tree
Hide file tree
Showing 52 changed files with 1,117 additions and 724 deletions.
70 changes: 44 additions & 26 deletions .eslintrc.json
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
}
}
Loading

0 comments on commit f405218

Please sign in to comment.