Skip to content

Commit

Permalink
plugin initialization works
Browse files Browse the repository at this point in the history
  • Loading branch information
haifeng-li-at-salesforce committed May 13, 2024
1 parent de97ab0 commit 3438ec9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
19 changes: 0 additions & 19 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,6 @@
"root": true,
"extends": ["eslint:recommended", "plugin:@salesforce/lwc-mobile/recommended"],

"plugins": ["@salesforce/lwc-mobile", "@graphql-eslint"],
"overrides": [
{
"files": ["graphqlBatchTest.js"],
"processor": "@graphql-eslint/graphql"
},
{
"files": ["*.graphql"],
"parser": "@graphql-eslint/eslint-plugin",

"parserOptions": {
"skipGraphQLConfig": true
},
"rules": {
"@salesforce/lwc-mobile/enforce-foo-bar": "warn",
"@salesforce/lwc-mobile/no-more-than-2-fields": "warn"
}
}
],
"env": {
"jest": true,
"node": true
Expand Down
20 changes: 19 additions & 1 deletion src/configs/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,23 @@
import type { ClassicConfig } from '@typescript-eslint/utils/ts-eslint';

export = {
plugins: ['@salesforce/lwc-mobile']
plugins: ['@salesforce/lwc-mobile', '@graphql-eslint'],
overrides: [
{
files: ['graphqlBatchTest.js'],
processor: '@graphql-eslint/graphql'
},
{
files: ['*.graphql'],
parser: '@graphql-eslint/eslint-plugin',

parserOptions: {
skipGraphQLConfig: true
},
rules: {
'@salesforce/lwc-mobile/enforce-foo-bar': 'warn',
'@salesforce/lwc-mobile/no-more-than-2-fields': 'warn'
}
}
]
} satisfies ClassicConfig.Config;

0 comments on commit 3438ec9

Please sign in to comment.