Skip to content

Commit

Permalink
Upgrade to Eslint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Oct 28, 2024
1 parent 201adb2 commit 140d32b
Show file tree
Hide file tree
Showing 7 changed files with 890 additions and 882 deletions.
25 changes: 0 additions & 25 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .ncurc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"upgrade": true,
"reject": ["eslint", "@testing-library/react", "react", "react-dom", "@types/react", "@types/react-dom"]
"reject": ["@testing-library/react", "react", "react-dom", "@types/react", "@types/react-dom"]
}
27 changes: 27 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended');
const react = require('eslint-plugin-react');
const eslint = require('@eslint/js');
const tseslint = require('typescript-eslint');

module.exports = [
eslintPluginPrettierRecommended,
eslint.configs.recommended,
...tseslint.configs.recommended,
{
files: ['**/*.{ts,tsx}'],
plugins: {
react,
},
languageOptions: {
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
rules: {
'prettier/prettier': 'error',
'@typescript-eslint/no-explicit-any': 'warn',
},
}
];
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,27 @@
},
"homepage": "https://github.com/unosquare/tubular-react-common#readme",
"dependencies": {
"tubular-common": "^6.9.0"
"tubular-common": "^6.10.0"
},
"devDependencies": {
"@babel/preset-env": "^7.25.7",
"@testing-library/jest-dom": "^6.5.0",
"@babel/preset-env": "^7.26.0",
"@eslint/js": "^9.13.0",
"@testing-library/jest-dom": "^6.6.2",
"@testing-library/react": "^12.1.2",
"@types/jest": "^29.5.13",
"eslint": "^8.57.0",
"eslint-config-unosquare": "0.20.0",
"@types/eslint__js": "^8.42.3",
"@types/jest": "^29.5.14",
"babel-jest": "^29.7.0",
"eslint": "^9.13.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"jest": "^29.7.0",
"babel-jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.3.3",
"striptags": "^3.2.0",
"ts-jest": "^29.2.5",
"typescript": "^5.6.2"
"typescript": "^5.6.3",
"typescript-eslint": "^8.11.0"
},
"peerDependencies": {
"@types/react": "^17.0.0",
Expand Down
Loading

0 comments on commit 140d32b

Please sign in to comment.