Skip to content

Commit

Permalink
Merge pull request #179 from marcalexiei/eslint
Browse files Browse the repository at this point in the history
chore + refactor: add eslint
  • Loading branch information
elycruz authored Jan 10, 2025
2 parents cf9a133 + 9e23011 commit 6712bd2
Show file tree
Hide file tree
Showing 12 changed files with 1,420 additions and 302 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:

runs-on: ${{ matrix.os }}

name: 'Build and test (OS: ${{ matrix.os }}, Node: ${{ matrix.node-version }})'
steps:
- uses: actions/checkout@v4

Expand All @@ -43,7 +44,7 @@ jobs:

strategy:
matrix:
script: ['format']
script: ['format', 'lint']

name: Code check (${{ matrix.script }})
steps:
Expand Down
20 changes: 20 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import avaPlugin from 'eslint-plugin-ava';

export default tseslint.config(
{
ignores: [
'dist',
'ts3.5',
'.tests-output',
'scripts',
'test/fixtures',
'coverage',
'eslint.config.mjs',
],
},
eslint.configs.recommended,
tseslint.configs.recommended,
avaPlugin.configs['flat/recommended'],
);
Loading

0 comments on commit 6712bd2

Please sign in to comment.