@speechanddebate/eslint-config-nsda 2.0.8 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,8 @@ import globals from 'globals';
2
2
 
3
3
  export default {
4
4
  languageOptions: {
5
+ ecmaVersion: 'latest',
6
+ sourceType: 'module',
5
7
  globals: {
6
8
  ...globals.browser,
7
9
  ...globals.node,
package/index.js CHANGED
@@ -68,6 +68,22 @@ const react = [
68
68
  ...base,
69
69
  ...airbnbWithReact,
70
70
 
71
+ // Fix issues with old AirBNB config clobbering the correct languageOptions
72
+ {
73
+ files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.mjs'],
74
+ },
75
+ {
76
+ languageOptions: {
77
+ parserOptions: {
78
+ ecmaFeatures: {
79
+ jsx: true,
80
+ },
81
+ },
82
+ ecmaVersion: 'latest',
83
+ sourceType: 'module',
84
+ },
85
+ },
86
+
71
87
  vitestPlugin,
72
88
  ...testingLibraryPlugin,
73
89
  importPlugin,
@@ -109,6 +125,21 @@ const typeChecked = tseslint.config(
109
125
  const typeCheckedWithReact = tseslint.config(
110
126
  ...base,
111
127
  ...airbnbWithReact,
128
+ // Fix issues with old AirBNB config clobbering the correct languageOptions
129
+ {
130
+ files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.mjs'],
131
+ },
132
+ {
133
+ languageOptions: {
134
+ parserOptions: {
135
+ ecmaFeatures: {
136
+ jsx: true,
137
+ },
138
+ },
139
+ ecmaVersion: 'latest',
140
+ sourceType: 'module',
141
+ },
142
+ },
112
143
 
113
144
  ...tseslint.configs.strictTypeChecked,
114
145
  ...tseslint.configs.stylisticTypeChecked,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speechanddebate/eslint-config-nsda",
3
- "version": "2.0.8",
3
+ "version": "2.0.10",
4
4
  "description": "NSDA ESLint config",
5
5
  "main": "index.js",
6
6
  "type": "module",