forked from mstable/mStable-contracts
-
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.
* Added a new bAsset status * Deprecated ts-lint and added new eslint methods * Removed duplicate identifier
- Loading branch information
1 parent
2681c23
commit 1cd4115
Showing
38 changed files
with
1,355 additions
and
283 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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# don't ever lint node_modules | ||
node_modules | ||
# don't lint build output (make sure it's set to your correct build folder name) | ||
dist | ||
# don't lint nyc coverage output | ||
coverage | ||
# no generated types | ||
types/generated | ||
test-utils/env_setup.ts |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module.exports = { | ||
"extends": [ | ||
"airbnb-typescript", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier", | ||
"prettier/@typescript-eslint" | ||
], | ||
"env": { | ||
"node": true, | ||
"browser": true, | ||
"jest": true | ||
}, | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
"settings": { | ||
'import/resolver': { | ||
"alias": { | ||
map: [ | ||
['@utils', './test-utils'], | ||
['types/generated', './types/generated/index'] | ||
], | ||
extensions: ['.ts', '.d.ts', '.js', '.jsx', '.json'] | ||
} | ||
} | ||
}, | ||
"rules": { | ||
"@typescript-eslint/no-use-before-define": 1 | ||
} | ||
}; |
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,16 +1 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"[javascript]": { | ||
"editor.formatOnSave": false | ||
}, | ||
"[handlebars]": { | ||
"editor.formatOnSave": false | ||
}, | ||
"eslint.autoFixOnSave": true, | ||
"eslint.alwaysShowStatus": true, | ||
"files.autoSave": "onFocusChange", | ||
"editor.detectIndentation": false, | ||
"solidity.compileUsingRemoteVersion": "^0.5.16", | ||
"solidity.packageDefaultDependenciesContractsDirectory": "", | ||
"solidity.packageDefaultDependenciesDirectory": "node_modules", | ||
} | ||
{} |
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
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
"migrate": "truffle migrate --network development --reset", | ||
"migrate:rinkeby": "truffle migrate --network rinkeby --reset", | ||
"lint": "yarn run lint-ts; yarn run lint-sol", | ||
"lint-ts": "tslint migrations/*.ts test/**/*.ts", | ||
"lint-ts": "yarn eslint ./test --ext .ts,.js --fix", | ||
"lint-sol": "solium -d contracts/ --fix ", | ||
"coverage": "node --max_old_space_size=6144 node_modules/truffle/build/cli.bundled.js run coverage --network coverage --solcoverjs './.solcover.js'", | ||
"script": "yarn truffle exec ./scripts/main.js", | ||
|
@@ -28,14 +28,25 @@ | |
"@types/lodash": "^4.14.138", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.7.5", | ||
"@typescript-eslint/eslint-plugin": "^2.21.0", | ||
"@typescript-eslint/eslint-plugin-tslint": "^2.21.0", | ||
"@typescript-eslint/parser": "^2.21.0", | ||
"chai": "^4.2.0", | ||
"chai-bn": "^0.2.0", | ||
"chalk": "^3.0.0", | ||
"copyfiles": "^2.1.1", | ||
"dayjs": "^1.8.20", | ||
"eslint": "^6.8.0", | ||
"eslint-config-airbnb-typescript": "^7.0.0", | ||
"eslint-config-prettier": "^6.10.0", | ||
"eslint-import-resolver-alias": "^1.1.2", | ||
"eslint-plugin-import": "^2.20.1", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"eslint-plugin-react": "^7.18.3", | ||
"eth-gas-reporter": "^0.2.14", | ||
"ethlint": "^1.2.5", | ||
"minimetoken": "ssh://[email protected]/mstable/minime.git#6348055a0a8f73d65d86a3a6845621bd4a8d6b15", | ||
"mocha": "^7.0.1", | ||
"openzeppelin-solidity": "^2.3.0", | ||
"openzeppelin-test-helpers": "0.3.1", | ||
"prettier": "^1.18.2", | ||
|
@@ -45,8 +56,6 @@ | |
"truffle-typings": "^1.0.8", | ||
"ts-node": "^8.4.1", | ||
"tsconfig-paths": "^3.9.0", | ||
"tslint": "^5.20.0", | ||
"tslint-no-unused-expression-chai": "0.0.3", | ||
"typechain": "1.0.4", | ||
"types-ethereumjs-util": "^0.0.8", | ||
"typescript": "^3.6.3", | ||
|
@@ -56,4 +65,4 @@ | |
"_moduleAliases": { | ||
"@utils": "transpiled/test-utils" | ||
} | ||
} | ||
} |
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.