eslint-config-tamia 9.2.1 → 9.2.3

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-config-tamia",
3
3
  "description": "Tâmia ESLint config",
4
- "version": "9.2.1",
4
+ "version": "9.2.3",
5
5
  "type": "module",
6
6
  "main": "index.mjs",
7
7
  "exports": {
@@ -5,7 +5,7 @@ import js from '@eslint/js';
5
5
  export default [
6
6
  js.configs.recommended,
7
7
  {
8
- files: ['**/*.{js,mjs,cjs,jsx,ts,tsx,astro}'],
8
+ files: ['**/*.{js,jsx,mjs,cjs,ts,tsx,mts,mtsx,astro}'],
9
9
  languageOptions: {
10
10
  globals: {
11
11
  ...globals.es2024,
package/rules/react.mjs CHANGED
@@ -4,7 +4,7 @@ import react from 'eslint-plugin-react';
4
4
  /** @type { import("eslint").Linter.FlatConfig[] } */
5
5
  export default [
6
6
  {
7
- files: ['**/*.{js,jsx,mjs,cjs,tsx}'],
7
+ files: ['**/*.{js,jsx,mjs,cjs,tsx,mts,mtsx,spec.js,test.js}'],
8
8
  ...react.configs.flat.recommended,
9
9
  languageOptions: {
10
10
  ...react.configs.flat.recommended.languageOptions,
@@ -17,7 +17,7 @@ const recommendedConfig = findConfig('typescript-eslint/recommended');
17
17
  export default [
18
18
  {
19
19
  // Only apply to files with TypeScript
20
- files: ['**/*.{ts,tsx,astro}'],
20
+ files: ['**/*.{ts,tsx,mts,mtsx,astro}'],
21
21
 
22
22
  // Copy the basic options from the recommended config
23
23
  languageOptions: baseConfig.languageOptions,
@@ -60,7 +60,7 @@ export default [
60
60
  {
61
61
  selector: 'property',
62
62
  // Null is a requirement
63
-
63
+
64
64
  format: null,
65
65
  },
66
66
  {
package/rules/unicorn.mjs CHANGED
@@ -14,6 +14,9 @@ export default [
14
14
  'unicorn/no-null': 'off',
15
15
  // I don't need this
16
16
  'unicorn/no-process-exit': 'off',
17
+ // Prevents explicitly exporting `undefined` as a value:
18
+ // `return x.length > 0 x : undefined`
19
+ 'unicorn/no-useless-undefined': 'off',
17
20
  // This breaks a lot of code, like `typeof window` to detect that
18
21
  // we're in the browser
19
22
  'unicorn/prefer-global-this': 'off',