@australiangreens/eslint-plugin-ag-internal 0.3.2 → 0.3.4

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/README.md CHANGED
@@ -31,10 +31,9 @@ export default defineConfig([
31
31
  files: ['**/*.ts', '**/*.tsx'],
32
32
  languageOptions: {
33
33
  globals: {
34
- ...globals.browser,
35
34
  ...globals.jest,
36
35
  ...globals.vitest,
37
- ...globals.node,
36
+ // globals.node and globals.browser will be merged in automatically
38
37
  },
39
38
  },
40
39
  },
@@ -54,6 +53,8 @@ _warnings_. This may be changed in the future.
54
53
 
55
54
  ### recommendedJsOnly
56
55
 
56
+ - Includes `globals.node`.
57
+
57
58
  - [eslint js plugin](https://www.npmjs.com/package/@eslint/js)'s recommended
58
59
  rules with some changes to `radix` and `no-plusplus`.
59
60
 
@@ -77,6 +78,8 @@ All the rules from recommendedJsOnly with the addition of the following:
77
78
 
78
79
  recommendedJsOnly with the addition of the following:
79
80
 
81
+ - Includes `globals.browser`.
82
+
80
83
  - [jsx-a11y plugin](https://www.npmjs.com/package/@types/eslint-plugin-jsx-a11y)'s
81
84
  strict rules with some extras that won't be enabled by default until a
82
85
  later version of the plugin.
@@ -1,7 +1,15 @@
1
1
  import jsEslint from '@eslint/js';
2
2
  import importPlugin from 'eslint-plugin-import';
3
+ import globals from 'globals';
3
4
  import { pluginName } from '../util.js';
4
5
  const javascriptRulesMinusImportPluginChange = [
6
+ {
7
+ languageOptions: {
8
+ globals: {
9
+ ...globals.node,
10
+ },
11
+ },
12
+ },
5
13
  jsEslint.configs.recommended,
6
14
  {
7
15
  name: `${pluginName()}/eslint`,
@@ -3,8 +3,16 @@ import reactPlugin from 'eslint-plugin-react';
3
3
  import reactHooksPlugin from 'eslint-plugin-react-hooks';
4
4
  import reactRefreshPlugin from 'eslint-plugin-react-refresh';
5
5
  import reactYouMightNotNeedAnEffectPlugin from 'eslint-plugin-react-you-might-not-need-an-effect';
6
+ import globals from 'globals';
6
7
  import { pluginName } from '../util.js';
7
8
  const config = [
9
+ {
10
+ languageOptions: {
11
+ globals: {
12
+ ...globals.browser,
13
+ },
14
+ },
15
+ },
8
16
  jsxA11yPlugin.flatConfigs.strict,
9
17
  {
10
18
  name: `${pluginName()}/jsx-a11y`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@australiangreens/eslint-plugin-ag-internal",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/australiangreens/eslint-plugin-ag-internal#readme",
@@ -41,13 +41,13 @@
41
41
  "eslint-plugin-react-refresh": "^0.4.23",
42
42
  "eslint-plugin-react-you-might-not-need-an-effect": "^0.5.5",
43
43
  "eslint-plugin-tsdoc": "^0.4.0",
44
- "typescript-eslint": "^8.45.0"
44
+ "typescript-eslint": "^8.45.0",
45
+ "globals": "^16.4.0"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@types/eslint-plugin-jsx-a11y": "^6.10.0",
48
49
  "@types/node": "^24.6.2",
49
50
  "eslint": "^9.36.0",
50
- "globals": "^16.4.0",
51
51
  "rimraf": "^6.0.1",
52
52
  "typescript": "^5.9.3"
53
53
  },