mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Refine env specifications, only inject jest for tests
This commit is contained in:
@@ -2,16 +2,13 @@
|
||||
"root": true,
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:compat/recommended",
|
||||
"plugin:vue/recommended",
|
||||
"plugin:vuejs-accessibility/recommended",
|
||||
"plugin:compat/recommended"
|
||||
"plugin:vuejs-accessibility/recommended"
|
||||
],
|
||||
"env": {
|
||||
"browser": true,
|
||||
"commonjs": true,
|
||||
"es6": true,
|
||||
"node": true,
|
||||
"jest": true
|
||||
"es6": true
|
||||
},
|
||||
"rules": {
|
||||
// Standard rules
|
||||
@@ -61,6 +58,12 @@
|
||||
},
|
||||
"ignorePatterns": ["dist", "src/libs", "src/nls", "src/legacy"],
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["**/*.test.js", "**/*.test.ts"],
|
||||
"env": {
|
||||
"jest": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["**/*.vue"],
|
||||
"parser": "vue-eslint-parser",
|
||||
|
||||
Reference in New Issue
Block a user