Skip to content

Commit

Permalink
chore: eslint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Sep 26, 2024
1 parent b0ca065 commit 6a04684
Show file tree
Hide file tree
Showing 5 changed files with 1,338 additions and 1,551 deletions.
11 changes: 0 additions & 11 deletions .eslintrc.js

This file was deleted.

26 changes: 26 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import sweetAlert2EslintConfig from '@sweetalert2/eslint-config'
import reactPlugin from 'eslint-plugin-react'
import globals from 'globals'

export default [
...sweetAlert2EslintConfig,
reactPlugin.configs.flat.recommended,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-require-imports': 'off',
},
languageOptions: {
globals: {
...globals.node,
},
},
},
{
files: ['cypress/**/*.js'],
rules: {
'no-undef': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
},
},
]
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"dev": "vite",
"cypress:open": "cypress open",
"check-dts": "tsc src/sweetalert2-react-content.d.ts --lib dom,es6",
"lint": "eslint . --ext .js,.jsx,.d.ts && prettier . --check",
"lint-fix": "eslint . --ext .js,.jsx,.d.ts --fix && prettier . --write",
"lint": "eslint . && prettier . --check",
"lint-fix": "eslint . --fix && prettier . --write",
"test": "cypress run --headless",
"build": "rollup --config --bundleConfigAsCjs"
},
Expand Down Expand Up @@ -51,9 +51,9 @@
"@babel/preset-react": "^7.18.6",
"@babel/runtime": "^7.19.4",
"@rollup/plugin-babel": "^6.0.0",
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-commonjs": "^28.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-replace": "^5.0.0",
"@rollup/plugin-replace": "^6.0.0",
"@rollup/plugin-terser": "^0.4.0",
"@sweetalert2/eslint-config": "^1.1.3",
"@types/react": "^18.0.20",
Expand Down
12 changes: 0 additions & 12 deletions test/.eslintrc.js

This file was deleted.

Loading

0 comments on commit 6a04684

Please sign in to comment.