Skip to content

Commit

Permalink
chore: up eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaymatrosov committed Jan 6, 2025
1 parent 1ba75db commit 14c24c7
Show file tree
Hide file tree
Showing 7 changed files with 1,515 additions and 945 deletions.
90 changes: 0 additions & 90 deletions .eslintrc.yml

This file was deleted.

109 changes: 43 additions & 66 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import github from 'eslint-plugin-github'

export default [
github.getFlatConfigs().recommended,
...github.getFlatConfigs().typescript,
{
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
ignores: ['eslint.config.mjs'],
rules: {
'github/array-foreach': 'error',
'github/async-preventdefault': 'warn',
'github/no-then': 'error',
'github/no-blur': 'error',
'i18n-text/no-en': 'off'
},
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: false,
project: './tsconfig.json'
}
}
}
}
]
Loading

0 comments on commit 14c24c7

Please sign in to comment.