File tree 4 files changed +13
-7
lines changed
4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ __debug_bin*
12
12
node_modules
13
13
package-lock.json
14
14
hack /coverprofile.txt
15
+ .eslintcache
Original file line number Diff line number Diff line change @@ -76,6 +76,9 @@ prettier:
76
76
helm-lint :
77
77
helm lint --strict ./charts
78
78
79
+ graphql-lint :
80
+ npx eslint --cache
81
+
79
82
setup-local :
80
83
GOOGLE_MANAGEMENT_PROJECT_ID=nais-local-dev go run ./cmd/setup_local -users 40 -teams 10 -owners 2 -members 4 -provision_pub_sub
81
84
Original file line number Diff line number Diff line change 1
1
import pluginJs from "@eslint/js" ;
2
- import * as graphql from "@graphql-eslint/eslint-plugin" ;
2
+ import graphql from "@graphql-eslint/eslint-plugin" ;
3
3
4
4
export default [
5
5
{
6
6
files : [ "**/*.js" ] ,
7
7
rules : pluginJs . configs . recommended . rules ,
8
8
} ,
9
9
{
10
- files : [ "internal/v1/ **/*.graphqls" ] ,
10
+ files : [ "internal/**/*.graphqls" ] ,
11
11
languageOptions : {
12
12
parser : graphql . parser ,
13
13
parserOptions : {
14
14
graphQLConfig : {
15
- schema : "./internal/v1/graphv1 /schema/*.graphqls" ,
15
+ schema : "./internal/graph /schema/*.graphqls" ,
16
16
} ,
17
17
} ,
18
18
} ,
19
19
plugins : {
20
- "@graphql-eslint" : { rules : graphql . rules } ,
20
+ "@graphql-eslint" : graphql ,
21
21
} ,
22
22
rules : {
23
- ...graphql . configs [ "flat/schema-recommended" ] ,
23
+ ...graphql . configs [ "flat/schema-recommended" ] . rules ,
24
+ "@graphql-eslint/description-style" : [ "off" ] ,
25
+ "@graphql-eslint/require-description" : [ "off" ] ,
24
26
"@graphql-eslint/strict-id-in-types" : [
25
27
"error" ,
26
28
{
Original file line number Diff line number Diff line change 1
1
{
2
2
"type" : " module" ,
3
3
"devDependencies" : {
4
- "@graphql-eslint/eslint-plugin" : " ^ 4.0.0-alpha.6 " ,
5
- "eslint" : " ^9.13 .0" ,
4
+ "@graphql-eslint/eslint-plugin" : " 4.0.0-alpha.13 " ,
5
+ "eslint" : " ^9.15 .0" ,
6
6
"prettier" : " ^3.3.3" ,
7
7
"prettier-plugin-sql-custom" : " git+https://github.com/nais/prettier-plugin-sql.git"
8
8
}
You can’t perform that action at this time.
0 commit comments