Skip to content

Commit

Permalink
fix: temporarily remove eslint-config-airbnb
Browse files Browse the repository at this point in the history
  • Loading branch information
th0rgall committed Jan 21, 2025
1 parent 5e34c0a commit 9d8a513
Show file tree
Hide file tree
Showing 4 changed files with 3,207 additions and 187 deletions.
24 changes: 18 additions & 6 deletions api/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"root": true,
"extends": ["airbnb/base", "plugin:prettier/recommended"],
"plugins": ["prettier"],
"extends": [
"plugin:prettier/recommended"
],
"plugins": [
"prettier"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false
Expand All @@ -11,8 +15,13 @@
"node": true
},
"rules": {
"prettier/prettier": ["error"],
"comma-dangle": ["error", "never"],
"prettier/prettier": [
"error"
],
"comma-dangle": [
"error",
"never"
],
"no-underscore-dangle": 0,
"no-console": "warn",
"no-unused-expressions": [
Expand All @@ -21,7 +30,10 @@
"allowTernary": true
}
],
"no-return-assign": [2, "except-parens"],
"no-return-assign": [
2,
"except-parens"
],
"no-param-reassign": [
"error",
{
Expand Down Expand Up @@ -57,4 +69,4 @@
// It is often more convenient and clear to directly use snake-cased variables from API results such as SendGrid
"camelcase": "off"
}
}
}
11 changes: 1 addition & 10 deletions api/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const compat = new FlatCompat({
});

module.exports = [
...compat.extends('airbnb/base', 'plugin:prettier/recommended'),
...compat.extends('plugin:prettier/recommended'),
{
plugins: {
prettier
Expand Down Expand Up @@ -82,16 +82,7 @@ module.exports = [
'`with` is disallowed in strict mode because it makes code impossible to predict and optimize.'
}
],

'no-await-in-loop': 'warn',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': [
'error',
{
// allow dev deps importing in the eslint config
devDependencies: ['**/eslint.config.*']
}
],
camelcase: 'off'
}
}
Expand Down
17 changes: 10 additions & 7 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"node": "20"
},
"dependencies": {
"@babel/eslint-parser": "^7.25.9",
"@babel/eslint-parser": "^7.26.5",
"@google-cloud/firestore": "^7.10.0",
"@sendgrid/client": "^8.1.4",
"@sendgrid/mail": "^8.1.4",
Expand All @@ -38,20 +38,23 @@
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.13.0",
"@faker-js/faker": "^9.1.0",
"@types/luxon": "^3.4.2",
"@types/mocha": "^10.0.9",
"eslint": "^9.13.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"firebase-functions-test": "^3.3.0",
"globals": "^15.11.0",
"jest": "^29.7.0",
"mocha": "^10.7.3",
"prettier": "^3.3.3",
"prettier": "^3.4.2",
"proxyquire": "^2.1.3",
"sinon": "^19.0.2"
},
Expand Down
Loading

0 comments on commit 9d8a513

Please sign in to comment.