Skip to content

Commit

Permalink
chore: replace eslint-plugin-graphql with @graphl-eslint/eslint-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Feb 10, 2022
1 parent 75a6d69 commit 7a17d98
Show file tree
Hide file tree
Showing 4 changed files with 299 additions and 90 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -44,7 +44,6 @@
"docsearch.js": "^2.6.3",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-graphql": "^4.0.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
Expand Down
17 changes: 12 additions & 5 deletions packages/@vue/cli-ui/.eslintrc.js
Expand Up @@ -11,10 +11,6 @@ module.exports = {
name: 'off'
},

plugins: [
'graphql'
],

rules: {
'vue/html-self-closing': 'error',
'vue/no-use-v-if-with-v-for': 'warn',
Expand All @@ -28,5 +24,16 @@ module.exports = {
babelOptions: {
cwd: __dirname
}
}
},

overrides: [
{
files: ['*.graphql'],
parser: '@graphql-eslint/eslint-plugin',
plugins: ['@graphql-eslint'],
rules: {
'@graphql-eslint/known-type-names': 'error'
}
}
]
}
2 changes: 1 addition & 1 deletion packages/@vue/cli-ui/package.json
Expand Up @@ -65,6 +65,7 @@
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@graphql-eslint/eslint-plugin": "^3.8.0",
"@vue/cli-plugin-babel": "^5.0.0-rc.3",
"@vue/cli-plugin-e2e-cypress": "^5.0.0-rc.3",
"@vue/cli-plugin-eslint": "^5.0.0-rc.3",
Expand All @@ -79,7 +80,6 @@
"cross-env": "^7.0.3",
"date-fns": "^2.17.0",
"eslint": "^7.32.0",
"eslint-plugin-graphql": "^4.0.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
Expand Down

0 comments on commit 7a17d98

Please sign in to comment.