Skip to content

Commit

Permalink
Merge pull request #485 from shapeshift/add-eslint-3
Browse files Browse the repository at this point in the history
feat: add-eslint
  • Loading branch information
cjthompson authored Apr 8, 2022
2 parents 3defcea + 2ee303b commit 805617c
Show file tree
Hide file tree
Showing 184 changed files with 4,712 additions and 3,542 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ orbs:
no_output_timeout: 30m
name: Build packages
command: yarn build
- run:
name: Lint
command: yarn lint
- run:
name: Run unit tests
command: yarn test --runInBand --coverage=false
Expand Down
1 change: 1 addition & 0 deletions .eslintignore
82 changes: 82 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:jest/recommended"
],
"plugins": [
"@typescript-eslint",
"prettier",
"jest",
"simple-import-sort"
],
"env": {
"node": true,
"browser": true,
"jest/globals": true
},
"globals": {
"process": "readonly"
},
"rules": {
"prettier/prettier": "error",
"no-console": [
"error",
{
"allow": [
"warn",
"error",
"info",
"debug",
"group",
"groupEnd",
"time",
"timeEnd"
]
}
],
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/no-shadow": [
"error"
],
"jest/no-standalone-expect": [
"error",
{
"additionalTestBlockFunctions": [
"beforeAll",
"beforeEach",
"afterEach",
"afterAll"
]
}
],
// TODO: We need to fix these rules later
"@typescript-eslint/no-explicit-any": "off",
"simple-import-sort/imports": [
"error"
]
},
"overrides": [
{
"files": [
"**/*.test.{j,t}s"
],
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-var-requires": "off"
}
},
{
"files": [
"integration/**"
],
"rules": {
"jest/no-export": "off"
}
}
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
!/.circleci
!/.circleci/**
!/.codeclimate.yml
!/.eslintignore
!/.eslintrc
!/.gitbook.yaml
!/.github/
!/.github/**
Expand Down
Loading

1 comment on commit 805617c

@vercel
Copy link

@vercel vercel bot commented on 805617c Apr 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

hdwallet – ./

hdwallet-git-master-shapeshift.vercel.app
hdwallet-shapeshift.vercel.app

Please sign in to comment.