Hi All,Im on MAC system and have being doing some development on custom datasource plugin in the grafana’s default folder which is /usr/local/var/lib/grafana/plugins/.But I have another project which is present in another folder.When i try moving the another project in the the grafana’s default path and trying yarn dev
i getting linting issues(but im not facing this linting issue in the second projects original path).
Failed to load plugin ‘react’ declared in ‘–config’: Cannot find module ‘eslint-plugin-react’
This is the .eslintrc.js file contents
module.exports = {
parser: ‘@typescript-eslint/parser’, // Specifies the ESLint parser
extends: [
‘plugin:react/recommended’, // Uses the recommended rules from @eslint-plugin-react
‘plugin:@typescript-eslint/recommended’, // Uses the recommended rules from @typescript-eslint/eslint-plugin
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: ‘module’, // Allows for the use of imports
},
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
“@typescript-eslint/explicit-function-return-type”: “off”,
“@typescript-eslint/no-explicit-any”: “off”,
‘@typescript-eslint/explicit-member-accessibility’: [2, { overrides: { constructors: ‘no-public’ } }]
},
settings: {
react: {
version: ‘detect’, // Tells eslint-plugin-react to automatically detect the version of React to use
},
},
};
So i wanted to know either how to resolve this issue in the grafana’s default path,or is there a way to make grafana point to other folder in the system to look for plugins?