Skip to content

Commit 50f5f85

Browse files
tweak the eslint.config.mobile.js to make sure the grapql static eslint rule to work (#197)
1 parent 111d550 commit 50f5f85

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/utils/constants.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,24 @@ module.exports = defineConfig([
3737
// Mobile eslint configuration file
3838
export const ESLINT_CONFIG_MOBILE_FILE = 'eslint.config.mobile.js';
3939
export const ESLINT_CONFIG_MOBILE_FILE_CONTENT = `
40-
const eslintJs = require("@eslint/js");
40+
const eslintJs = require('@eslint/js');
4141
const { defineConfig } = require("eslint/config");
4242
const lwcMobilePlugin = require("@salesforce/eslint-plugin-lwc-mobile");
4343
const lwcGraphAnalyzerPlugin = require("@salesforce/eslint-plugin-lwc-graph-analyzer");
4444
4545
module.exports = defineConfig([
4646
// Salesforce LWC Mobile plugin configuration
4747
{
48-
files: ["**/lwc/**/*.js"],
4948
plugins: {
50-
eslintJs,
5149
"@salesforce/lwc-mobile": lwcMobilePlugin,
5250
"@salesforce/lwc-graph-analyzer": lwcGraphAnalyzerPlugin
53-
},
54-
extends: [
55-
eslintJs.configs.recommended,
56-
lwcMobilePlugin.recommendedConfigs,
57-
lwcGraphAnalyzerPlugin.configs.recommended
58-
]
59-
}
51+
}
52+
},
53+
eslintJs.configs.recommended,
54+
lwcGraphAnalyzerPlugin.configs.recommended,
55+
...lwcMobilePlugin.recommendedConfigs
6056
]);
57+
6158
`;
6259

6360
// User eslint configuration file, contains the original eslint.config.js file content after ConfigureLintingToolsCommand's execution

0 commit comments

Comments
 (0)