Skip to content

Commit

Permalink
feat: add eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Jul 6, 2019
1 parent 5ad7db0 commit 815132a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
9 changes: 8 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@
"prettier",
"prettier/@typescript-eslint"
],
"parserOptions": {
"project": "./tsconfig.base.json"
},
"plugins": [
"plantain"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-use-before-define": "off",
"no-case-declarations": "off",
"no-console": "off"
"no-console": "off",
"plantain/promise-not-await": "error"
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@typescript-eslint/parser": "^1.9.0",
"clean-scripts": "1.11.2",
"eslint-config-prettier": "6.0.0",
"eslint-plugin-plantain": "0.1.0",
"jasmine": "3.4.0",
"lerna": "3.15.0",
"markdownlint-cli": "0.17.0",
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@
regexpp "^2.0.1"
tsutils "^3.7.0"

"@typescript-eslint/experimental-utils@1.11.0":
"@typescript-eslint/experimental-utils@1.11.0", "@typescript-eslint/experimental-utils@^1.11.0":
version "1.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-1.11.0.tgz#594abe47091cbeabac1d6f9cfed06d0ad99eb7e3"
integrity sha512-7LbfaqF6B8oa8cp/315zxKk8FFzosRzzhF8Kn/ZRsRsnpm7Qcu25cR/9RnAQo5utZ2KIWVgaALr+ZmcbG47ruw==
Expand Down Expand Up @@ -2225,6 +2225,13 @@ eslint-plugin-node@~7.0.1:
resolve "^1.8.1"
semver "^5.5.0"

eslint-plugin-plantain@0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-plantain/-/eslint-plugin-plantain-0.1.0.tgz#ce4c18b7b1607fe6690980f91590f4868c63f4fa"
integrity sha512-XJyAqL9QrkHNoIijBBU2AvptGaLw7Pdzs3OqdZv+PayNNI0b2DwIdDCsmdpXkkbvAVGEq/8WMp9fAGORqd965A==
dependencies:
"@typescript-eslint/experimental-utils" "^1.11.0"

eslint-plugin-promise@~4.0.0:
version "4.0.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-4.0.1.tgz#2d074b653f35a23d1ba89d8e976a985117d1c6a2"
Expand Down

0 comments on commit 815132a

Please sign in to comment.