Skip to content

Commit

Permalink
feat: support ESLint 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Nov 9, 2021
1 parent d143cba commit 3611766
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/node-4+.yml
Expand Up @@ -25,26 +25,45 @@ jobs:
matrix:
node-version: ${{ fromJson(needs.matrix.outputs.latest) }}
eslint:
- 8
- 7
- 6
- 5
- 4
- 3
exclude:
- node-version: 15
eslint: 8
- node-version: 13
eslint: 8
- node-version: 11
eslint: 8
- node-version: 11
eslint: 7
- node-version: 10
eslint: 8
- node-version: 9
eslint: 8
- node-version: 9
eslint: 7
- node-version: 8
eslint: 8
- node-version: 8
eslint: 7
- node-version: 7
eslint: 8
- node-version: 7
eslint: 7
- node-version: 7
eslint: 6
- node-version: 6
eslint: 8
- node-version: 6
eslint: 7
- node-version: 6
eslint: 6
- node-version: 5
eslint: 8
- node-version: 5
eslint: 7
- node-version: 5
Expand All @@ -55,6 +74,8 @@ jobs:
eslint: 4
- node-version: 5 # TODO: fix
eslint: 3
- node-version: 4
eslint: 8
- node-version: 4
eslint: 7
- node-version: 4
Expand Down
16 changes: 8 additions & 8 deletions package.json
Expand Up @@ -31,17 +31,17 @@
"jest": "jest --coverage __tests__/**/*"
},
"devDependencies": {
"@babel/cli": "^7.15.7",
"@babel/core": "^7.15.8",
"@babel/eslint-parser": "^7.15.8",
"@babel/plugin-transform-flow-strip-types": "^7.14.5",
"@babel/cli": "^7.16.0",
"@babel/core": "^7.16.0",
"@babel/eslint-parser": "^7.16.0",
"@babel/plugin-transform-flow-strip-types": "^7.16.0",
"aud": "^1.1.5",
"babel-jest": "^24.9.0",
"babel-preset-airbnb": "^5.0.0",
"eslint": "^3 || ^4 || ^5 || ^6 || ^7",
"eslint-config-airbnb-base": "^14.2.1",
"eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-eslint-plugin": "^4.0.2",
"eslint-plugin-flowtype": "^5.8.0",
"eslint-plugin-flowtype": "^5.8.0 || ^8.0.2",
"eslint-plugin-import": "^2.25.2",
"estraverse": "^5.3.0",
"expect": "^24.9.0",
Expand Down Expand Up @@ -74,7 +74,7 @@
"minimatch": "^3.0.4"
},
"peerDependencies": {
"eslint": "^3 || ^4 || ^5 || ^6 || ^7"
"eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8"
},
"jest": {
"coverageReporters": [
Expand Down
2 changes: 1 addition & 1 deletion src/util/schemas.js
Expand Up @@ -26,7 +26,7 @@ export const enumArraySchema = (enumeratedList = [], minItems = 0) => ({
* Factory function to generate an object schema
* with specified properties object
*/
export const generateObjSchema = (properties = {}, required) => ({
export const generateObjSchema = (properties = {}, required = undefined) => ({
type: 'object',
properties,
required,
Expand Down

0 comments on commit 3611766

Please sign in to comment.