File tree Expand file tree Collapse file tree 2 files changed +5
-19
lines changed Expand file tree Collapse file tree 2 files changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import js from '@eslint/js'
22import vue from 'eslint-plugin-vue'
33import vueParser from 'vue-eslint-parser'
44import prettierConfig from 'eslint-config-prettier'
5+ import globals from 'globals'
56
67export default [
78 // Base ESLint recommended rules
@@ -57,15 +58,7 @@ export default [
5758 {
5859 languageOptions : {
5960 globals : {
60- document : 'readonly' ,
61- window : 'readonly' ,
62- FileReader : 'readonly' ,
63- FormData : 'readonly' ,
64- URLSearchParams : 'readonly' ,
65- localStorage : 'readonly' ,
66- fetch : 'readonly' ,
67- alert : 'readonly' ,
68- console : 'readonly' ,
61+ ...globals . browser ,
6962 route : 'readonly'
7063 }
7164 } ,
@@ -76,6 +69,6 @@ export default [
7669
7770 // Ignore patterns
7871 {
79- ignores : [ 'node_modules/*' , 'vendor/*' , 'public/*' ]
72+ ignores : [ 'node_modules/*' , 'vendor/*' ]
8073 }
8174]
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import js from '@eslint/js'
22import vue from 'eslint-plugin-vue'
33import vueParser from 'vue-eslint-parser'
44import prettierConfig from 'eslint-config-prettier'
5+ import globals from 'globals'
56
67export default [
78 // Base ESLint recommended rules
@@ -57,15 +58,7 @@ export default [
5758 {
5859 languageOptions : {
5960 globals : {
60- document : 'readonly' ,
61- window : 'readonly' ,
62- FileReader : 'readonly' ,
63- FormData : 'readonly' ,
64- URLSearchParams : 'readonly' ,
65- localStorage : 'readonly' ,
66- fetch : 'readonly' ,
67- alert : 'readonly' ,
68- console : 'readonly' ,
61+ ...globals . browser ,
6962 route : 'readonly'
7063 }
7164 } ,
You can’t perform that action at this time.
0 commit comments