@@ -95,12 +95,12 @@ const localRules = {
9595 'unicorn/no-unused-properties' : 'error' ,
9696 'unicorn/numeric-separators-style' : 'off' ,
9797 'unicorn/prefer-array-flat' : 'off' ,
98- 'unicorn/prefer-at' : 'off ' ,
98+ 'unicorn/prefer-at' : 'error ' ,
9999 'unicorn/prefer-dom-node-dataset' : 'off' ,
100100 'unicorn/prefer-global-this' : 'off' ,
101101 'unicorn/prefer-module' : 'off' ,
102102 'unicorn/prefer-query-selector' : 'off' ,
103- 'unicorn/prefer-spread' : 'off ' ,
103+ 'unicorn/prefer-spread' : 'error ' ,
104104 'unicorn/prefer-string-raw' : 'off' ,
105105 'unicorn/prefer-string-replace-all' : 'off' ,
106106 'unicorn/prefer-structured-clone' : 'off' ,
@@ -266,17 +266,14 @@ const eslintConfig = [
266266 }
267267 } ,
268268
269- // site/** — browser, script mode, older ecmaVersion
269+ // site/** — browser, script mode
270270 {
271271 files : [ 'site/**' ] ,
272272 languageOptions : {
273273 globals : {
274274 ...globals . browser
275275 } ,
276- sourceType : 'script' ,
277- parserOptions : {
278- ecmaVersion : 2019
279- }
276+ sourceType : 'script'
280277 } ,
281278 rules : {
282279 'no-new' : 'off' ,
@@ -296,10 +293,7 @@ const eslintConfig = [
296293 'site/src/plugins/*.js'
297294 ] ,
298295 languageOptions : {
299- sourceType : 'module' ,
300- parserOptions : {
301- ecmaVersion : 2020
302- }
296+ sourceType : 'module'
303297 } ,
304298 // These files may have eslint-disable directives for the old import plugin
305299 linterOptions : {
@@ -322,10 +316,7 @@ const eslintConfig = [
322316 'site/src/assets/examples/sidebars/sidebars.js'
323317 ] ,
324318 languageOptions : {
325- sourceType : 'module' ,
326- parserOptions : {
327- ecmaVersion : 2020
328- }
319+ sourceType : 'module'
329320 } ,
330321 rules : {
331322 'import/no-unresolved' : 'off'
0 commit comments