Skip to content

Commit

Permalink
chore: upgrade ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Jun 9, 2024
1 parent 2116f32 commit c162dc2
Show file tree
Hide file tree
Showing 7 changed files with 515 additions and 713 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2.1.4
with:
node-version: '16.14'
node-version: '18.18'
registry-url: 'https://registry.npmjs.org'
always-auth: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2.1.4
with:
node-version: '16.14'
node-version: '18.18'
registry-url: 'https://registry.npmjs.org'
always-auth: true

Expand Down
38 changes: 38 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import eslint from '@eslint/js'
import eslintConfigPrettier from 'eslint-config-prettier'
import react from 'eslint-plugin-react'
import simpleImportSort from 'eslint-plugin-simple-import-sort'
import globals from 'globals'
import tseslint from 'typescript-eslint'

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
browser: true,
es2021: true,
node: true,
},
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
},
plugins: {
react,
'simple-import-sort': simpleImportSort,
},
rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'react-hooks/exhaustive-deps': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
},
},
eslintConfigPrettier,
)
Loading

0 comments on commit c162dc2

Please sign in to comment.