Chore: Make Eslint work with enterprise (#96539)

chore(eslint): make it work with enterprise
This commit is contained in:
Jack Westbrook 2024-11-26 11:09:27 +01:00 committed by GitHub
parent ba0f376da7
commit 754fce648c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -78,6 +78,10 @@ module.exports = [
settings: {
'import/internal-regex': '^(app/)|(@grafana)',
'import/external-module-folders': ['node_modules', '.yarn'],
// Silences a warning when linting enterprise code
react: {
version: 'detect',
},
},
rules: {

View File

@ -27,7 +27,7 @@
"test:coverage:changes": "jest --coverage --changedSince=origin/main",
"test:accessibility-report": "./scripts/generate-a11y-report.sh",
"lint": "yarn run lint:ts && yarn run lint:sass",
"lint:ts": "eslint . --cache",
"lint:ts": "eslint ./ ./public/app/extensions/ --cache --no-error-on-unmatched-pattern",
"lint:sass": "yarn stylelint '{public/sass,packages}/**/*.scss' --cache",
"test:ci": "mkdir -p reports/junit && JEST_JUNIT_OUTPUT_DIR=reports/junit jest --ci --reporters=default --reporters=jest-junit -w ${TEST_MAX_WORKERS:-100%}",
"lint:fix": "yarn lint:ts --fix",