Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Compile with TS and added linter
Browse files Browse the repository at this point in the history
  • Loading branch information
James Browning committed Feb 16, 2022
1 parent af6474f commit 569a261
Show file tree
Hide file tree
Showing 22 changed files with 1,724 additions and 80 deletions.
3 changes: 3 additions & 0 deletions plutus-chain-index/e2e-tests/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
.eslintrc.js
45 changes: 45 additions & 0 deletions plutus-chain-index/e2e-tests/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: "./tsconfig.json",
},
plugins: [
'@typescript-eslint',
'sort-imports-es6-autofix',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
settings: {
"import/resolver": {
"typescript": {}
}
},
rules: {
"no-unused-vars": 0,
"linebreak-style": [
2,
"unix"
],
"new-cap": 0,
"no-unused-expressions": 0,
"no-useless-constructor": 0,
"sort-imports-es6-autofix/sort-imports-es6": "warn",
"sort-imports": ["warn", { ignoreDeclarationSort: true }],
"@typescript-eslint/no-floating-promises": ["error"],
'@typescript-eslint/explicit-module-boundary-types': 0,
"max-len": ["error", { "code": 120 }],
"@typescript-eslint/ban-types": 0,
'@typescript-eslint/no-non-null-assertion': 0,
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-unused-vars": ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
"@typescript-eslint/no-var-requires": 0,
"template-tag-spacing": 0,
'promise/avoid-new': 0,
'consistent-return': 0, // typescript checks return types
"no-shadow": "off", // eslint compains about TS enums hence disable here and enable @typescript-eslint/no-shadow
"import/no-unresolved": 0
}
};
1 change: 1 addition & 0 deletions plutus-chain-index/e2e-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Update URL in environment file if needed

### Run tests:
- `nvm use`
- `npm i`
- `npm test`

Expand Down
Loading

0 comments on commit 569a261

Please sign in to comment.