Skip to content

Commit

Permalink
feat(eslint)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Nov 20, 2023
1 parent e9088f4 commit c9a2466
Show file tree
Hide file tree
Showing 5 changed files with 2,920 additions and 174 deletions.
28 changes: 28 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"extends": ["plugin:@typescript-eslint/recommended", "eslint:recommended", "plugin:import/recommended"],
"parserOptions": { "ecmaVersion": "latest" },
"overrides": [],
"rules": {
"no-constant-condition": ["error", { "checkLoops": false }],
"curly": [ "error", "multi-line", "consistent" ],
"@typescript-eslint/no-explicit-any": "off",
"no-template-curly-in-string": "error",
"no-use-before-define": "error",
"import/no-unresolved": "off",
"no-duplicate-case": "error",
"no-throw-literal": "error",
"no-self-compare": "error",
"no-unreachable": "error",
"no-unused-vars": "error",
"prefer-const": "error",
"no-console": "error",
"sort-vars": "error",
"no-empty": "error",
"no-undef": "error"
}
}
17 changes: 17 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@ jobs:
- name: prettier
run: npm run prettier:check

eslint:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install node dependencies
run: npm i

- name: eslint
run: npm run lint:check

compile:
runs-on: ubuntu-latest
steps:
Expand Down
Loading

0 comments on commit c9a2466

Please sign in to comment.