We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37ab534 commit f48c7d9Copy full SHA for f48c7d9
1 file changed
packages/eslint-config/src/flat/configs/javascript.ts
@@ -6,8 +6,17 @@ import globals from 'globals'
6
export default function javascript(): Linter.FlatConfig[] {
7
return [
8
{
9
- name: 'eslint:recommended',
+ name: 'nuxt:javascript',
10
languageOptions: {
11
+ ecmaVersion: 2022,
12
+ parserOptions: {
13
+ ecmaFeatures: {
14
+ jsx: true,
15
+ },
16
17
+ sourceType: 'module',
18
19
20
globals: {
21
...globals.browser,
22
...globals.es2021,
@@ -17,6 +26,9 @@ export default function javascript(): Linter.FlatConfig[] {
26
window: 'readonly',
27
},
28
29
+ linterOptions: {
30
+ reportUnusedDisableDirectives: true,
31
32
...pluginESLint.configs.recommended,
33
34
]
0 commit comments