Skip to content

Commit

Permalink
feat: downgrade eslint version to support community setups
Browse files Browse the repository at this point in the history
since eslint v9 is released, there are some packages like eslint-config-airbnb that is a boilerplate setup community contribution that doesn't support eslint v9 yet.
follow more on airbnb/javascript#2961
  • Loading branch information
notfrancois committed Oct 30, 2024
1 parent c34700f commit 44ce62f
Show file tree
Hide file tree
Showing 3 changed files with 434 additions and 473 deletions.
6 changes: 4 additions & 2 deletions base.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
parserOptions: {
ecmaVersion: 2020,
ecmaVersion: 2022,
},
extends: [
'airbnb-base',
Expand All @@ -18,8 +18,10 @@ module.exports = {
'no-return-await': 'error',
'object-shorthand': ['error', 'always', { avoidExplicitReturnArrows: true }],
'class-methods-use-this': 'off',
// 'max-classes-per-file': 'warn',
'max-classes-per-file': 'warn',
'default-param-last': 'warn',
'no-template-curly-in-string': 'warn',
'no-unused-vars': 'warn',
eqeqeq: 'error',
},
};
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ctdesarrollo/eslint-config",
"version": "1.0.0",
"description": "CT eslint configurations",
"version": "1.0.1",
"description": "CT Desarrollo Eslint configurations",
"main": "base.js",
"repository": {
"type": "git",
Expand All @@ -11,7 +11,7 @@
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"prepare": "husky install"
"prepare": "husky"
},
"lint-staged": {
"*.{md,css,scss}": [
Expand All @@ -22,25 +22,25 @@
]
},
"dependencies": {
"@babel/eslint-parser": "^7.25.9",
"@typescript-eslint/eslint-plugin": "^8.11.0",
"@typescript-eslint/parser": "^8.11.0",
"eslint": "^9.13.0",
"@babel/eslint-parser": "^7.25.1",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"eslint": "^8.57.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-check-file": "^2.8.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest-dom": "^5.4.0",
"eslint-plugin-jsx-a11y": "^6.10.1",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^8.7.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-check-file": "^2.5.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest-dom": "^4.0.3",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-testing-library": "^6.4.0",
"husky": "^9.1.6",
"eslint-plugin-react": "^7.33.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^5.10.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"typescript": "^5.6.3"
Expand Down
Loading

0 comments on commit 44ce62f

Please sign in to comment.