Skip to content

Commit

Permalink
Add linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Oct 7, 2024
1 parent 88dc9c3 commit 292a70a
Show file tree
Hide file tree
Showing 9 changed files with 1,524 additions and 164 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@
!.gitignore
!.gitattributes
!map.js
!eslint.config.mjs
41 changes: 41 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{
ignores: [
'examples/**',
'tap-snapshots/**',
'dist/**',
'eslint.config.mjs',
],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
files: ['**/test/**/*.ts'],
rules: {
'no-unexpected-multiline': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-ts-comment': [
'error',
{
minimumDescriptionLength: 0,
},
],
},
},
)
Loading

0 comments on commit 292a70a

Please sign in to comment.