Skip to content

Commit

Permalink
chore(eslint): update eslint to v7.27.0
Browse files Browse the repository at this point in the history
Update needed to get the fix for "no-restricted-imports custom message for patterns"

See PR : eslint/eslint#14580

Now we can add a custom message for */generated/graphql patterns.
  • Loading branch information
topheman committed May 24, 2021
1 parent 0c5a1a7 commit dc49630
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 10 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.js
Expand Up @@ -68,7 +68,13 @@ module.exports = {
"no-restricted-imports": [
"error",
{
patterns: ["*/generated/graphql"],
patterns: [
{
group: ["*/generated/graphql"],
message:
"Don't import generated modules directly, import from src/libs/graphql",
},
],
},
],
},
Expand Down
30 changes: 22 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -45,7 +45,7 @@
"@typescript-eslint/parser": "^4.23.0",
"autoprefixer": "^10.2.5",
"babel-loader": "^8.2.2",
"eslint": "^7.26.0",
"eslint": "^7.27.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-typescript": "^2.4.0",
Expand Down

0 comments on commit dc49630

Please sign in to comment.