@ffflorian/eslint-config 0.12.1 → 0.12.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.
Files changed (2) hide show
  1. package/index.ts +4 -3
  2. package/package.json +2 -2
package/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import js from '@eslint/js';
2
2
  import importPlugin from 'eslint-plugin-import';
3
3
  import oxlint from 'eslint-plugin-oxlint';
4
- import perfectionist from 'eslint-plugin-perfectionist';
4
+ import {configs as perfectionistConfigs} from 'eslint-plugin-perfectionist';
5
5
  import {defineConfig, globalIgnores} from 'eslint/config';
6
6
  import globals from 'globals';
7
7
  import {configs as tseslintConfigs} from 'typescript-eslint';
@@ -14,11 +14,12 @@ export default defineConfig([
14
14
  extends: [
15
15
  importPlugin.flatConfigs.recommended,
16
16
  importPlugin.flatConfigs.typescript,
17
- perfectionist.configs['recommended-alphabetical'],
17
+ perfectionistConfigs['recommended-alphabetical'],
18
18
  ],
19
19
  files: ['**/*.{js,mjs,cjs,ts,mts,cts}'],
20
20
  languageOptions: {
21
21
  globals: {
22
+ ...globals.browser,
22
23
  ...globals.node,
23
24
  },
24
25
  },
@@ -50,7 +51,7 @@ export default defineConfig([
50
51
  'no-sequences': 'error',
51
52
  'no-sparse-arrays': 'error',
52
53
  'no-trailing-spaces': 'error',
53
- 'no-undef': 'error',
54
+ 'no-undef': 'off',
54
55
  'no-unneeded-ternary': 'error',
55
56
  'no-unused-expressions': 'error',
56
57
  'no-unused-vars': 'off',
package/package.json CHANGED
@@ -51,6 +51,6 @@
51
51
  "lint": "eslint -c index.ts ."
52
52
  },
53
53
  "repository": "https://github.com/ffflorian/config",
54
- "version": "0.12.1",
55
- "gitHead": "e16ad8b4a1bfafa56aeb169c8d371bfce5e9523d"
54
+ "version": "0.12.3",
55
+ "gitHead": "8850e9eb333cdf4cef52055c189d954c57ac1b08"
56
56
  }