Skip to content

Commit 9d69734

Browse files
authored
Add TS Linting (#39)
1 parent e3539a2 commit 9d69734

File tree

12 files changed

+4110
-4138
lines changed

12 files changed

+4110
-4138
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
artifacts
33
cache
44
coverage
5+
typechain

.eslintrc.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,12 @@ module.exports = {
66
node: true,
77
},
88
plugins: ["@typescript-eslint"],
9-
extends: [
10-
"standard",
11-
"plugin:prettier/recommended",
12-
"plugin:node/recommended",
13-
],
9+
extends: ["standard", "plugin:prettier/recommended"],
1410
parser: "@typescript-eslint/parser",
1511
parserOptions: {
1612
ecmaVersion: 12,
1713
},
1814
rules: {
19-
"node/no-unsupported-features/es-syntax": [
20-
"error",
21-
{ ignores: ["modules"] },
22-
],
15+
camelcase: "off", // Disable the camelcase rule
2316
},
2417
};

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,13 @@ jobs:
1717
run: npm install
1818
- name: Run Tests
1919
run: npm run test
20+
lint:
21+
name: Run eslint
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout Code
25+
uses: actions/checkout@v2
26+
- name: Install NPM Dependencies
27+
run: npm install
28+
- name: Run eslint
29+
run: npm run lint

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{}
1+
{}

0 commit comments

Comments
 (0)