mirror of
https://github.com/grafana/grafana.git
synced 2024-12-22 23:23:49 -06:00
Chore: Make Eslint work with enterprise (#96539)
chore(eslint): make it work with enterprise
This commit is contained in:
parent
ba0f376da7
commit
754fce648c
@ -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: {
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user