Skip to content

Commit

Permalink
ci: #145 eslint setup (#156)
Browse files Browse the repository at this point in the history
* removed tslint

* add eslint

* add default config

* setup default config and npm run command

* add command to node.js.yml

* set rules to support current codebase

* remove unused tslint.json

* include sample files in eslint command
  • Loading branch information
miquelbeltran authored Apr 29, 2024
1 parent aec342f commit 1650c25
Show file tree
Hide file tree
Showing 5 changed files with 1,160 additions and 445 deletions.
1 change: 1 addition & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm test
- run: npm run eslint
21 changes: 21 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// @ts-check

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
// TODO: Remove ignored rules and fix the code
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-var-requires": "off",
"no-undef": "off",
"no-unreachable": "off",
"no-useless-catch": "off",
}
}
);
Loading

0 comments on commit 1650c25

Please sign in to comment.