Skip to content

Commit

Permalink
build(eslint): restructure linting
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Apr 14, 2023
1 parent 0f0ef76 commit 79f2489
Show file tree
Hide file tree
Showing 3 changed files with 427 additions and 83 deletions.
26 changes: 14 additions & 12 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
{
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"es6": true,
"node": true,
"jest/globals": true
"es2022": true,
"jest": true
},
"extends": [
"airbnb",
"airbnb/hooks",
"prettier",
"plugin:jest/recommended",
"plugin:jsdoc/recommended"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2022
},
"plugins": [
"import",
"jest",
"jsdoc",
"json",
"node",
"prettier",
"react"
],
Expand All @@ -30,14 +40,6 @@
}
}
},
"extends": [
"react-app",
"airbnb",
"airbnb/hooks",
"prettier",
"plugin:jest/recommended",
"plugin:jsdoc/recommended"
],
"globals": {
"mockObjectProperty": "readonly",
"mountHook": "readonly",
Expand Down
16 changes: 6 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,19 @@
"dotenv-webpack": "^8.0.1",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.6.2",
"eslint": "8.36.0",
"eslint": "8.38.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.8.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsdoc": "^40.0.0",
"eslint-plugin-jsdoc": "^41.1.1",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-webpack-plugin": "^4.0.0",
"eslint-webpack-plugin": "^4.0.1",
"express": "^4.18.2",
"glob": "^10.0.0",
"jest": "29.5.0",
Expand All @@ -158,8 +157,5 @@
"swagger-ui-express": "^4.6.2",
"webpack-bundle-analyzer": "^4.8.0",
"yamljs": "^0.3.0"
},
"resolutions": {
"eslint-plugin-react": "7.32.2"
}
}
Loading

0 comments on commit 79f2489

Please sign in to comment.