react-eslint-standard 9.0.7 → 9.0.9

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/dist/index.d.ts CHANGED
@@ -1,8 +1,11 @@
1
1
  import { TSESLint } from '@typescript-eslint/utils';
2
2
 
3
+ interface Config extends Omit<TSESLint.FlatConfig.Config, 'linterOptions' | 'name' | 'processor'> {
4
+ globals?: TSESLint.SharedConfig.GlobalsConfig;
5
+ }
3
6
  declare function defineConfig(options?: {
4
7
  extends?: TSESLint.FlatConfig.Config[];
5
- config?: TSESLint.FlatConfig.Config;
8
+ config?: Config;
6
9
  }): TSESLint.FlatConfig.ConfigArray;
7
10
 
8
- export { defineConfig };
11
+ export { type Config, defineConfig };
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ const reactRules = {
13
13
  };
14
14
  function defineConfig(options) {
15
15
  const { extends: inherit, config } = options ?? {};
16
- const { files, ignores, languageOptions, plugins, rules } = config ?? {};
16
+ const { files, ignores, languageOptions, plugins, rules, globals, settings } = config ?? {};
17
17
  const inherits = inherit ?? [];
18
18
  return tseslint.config(
19
19
  eslint.configs.recommended,
@@ -27,9 +27,9 @@ function defineConfig(options) {
27
27
  files: files ?? ['**/*.{j,t}s', '**/*.{j,t}sx'],
28
28
  languageOptions: languageOptions ?? {
29
29
  parser: tseslint.parser,
30
+ globals: globals ?? {},
30
31
  parserOptions: {
31
32
  project: true,
32
- tsconfigRootDir: import.meta.dirname,
33
33
  ecmaVersion: 'latest',
34
34
  sourceType: 'module',
35
35
  ecmaFeatures: {
@@ -57,6 +57,7 @@ function defineConfig(options) {
57
57
  '**/*.ejs',
58
58
  '**/*.html',
59
59
  ],
60
+ settings: settings ?? {},
60
61
  },
61
62
  {
62
63
  name: 'vitest-eslint-standard',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-eslint-standard",
3
- "version": "9.0.7",
3
+ "version": "9.0.9",
4
4
  "description": "quickly start eslint in react",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "eslint-plugin-react": "^7.35.0",
27
- "typescript-eslint-standard": "^9.0.8"
27
+ "typescript-eslint-standard": "^9.0.14"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@rollup/plugin-commonjs": "^26.0.1",
@@ -34,7 +34,7 @@
34
34
  "@rollup/plugin-terser": "^0.4.4",
35
35
  "@rollup/plugin-typescript": "^11.1.6",
36
36
  "@types/node": "^20.14.12",
37
- "rollup": "^4.19.0",
37
+ "rollup": "^4.19.1",
38
38
  "rollup-plugin-dts": "^6.1.1",
39
39
  "tslib": "^2.6.3",
40
40
  "typescript": "^5.5.4",