@devapoo-dev/eslint-config 1.1.13 → 1.1.14

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.mjs +4 -0
  2. package/package.json +2 -2
package/index.mjs CHANGED
@@ -2,6 +2,7 @@ import antfu from '@antfu/eslint-config';
2
2
  import checkFile from 'eslint-plugin-check-file';
3
3
  import prettier from 'eslint-plugin-prettier/recommended';
4
4
  import tailwindcss from 'eslint-plugin-tailwindcss';
5
+ import reactRefresh from 'eslint-plugin-react-refresh';
5
6
 
6
7
  /** @doc Glob Tester: https://globster.xyz/ */
7
8
  export const JS_GLOB = '**/*.{,m,c}js{,x}';
@@ -146,6 +147,9 @@ export function createConfig(options, ...userConfigs) {
146
147
  */
147
148
  {
148
149
  ...(options?.remix && {
150
+ plugins: {
151
+ 'react-refresh': reactRefresh,
152
+ },
149
153
  rules: {
150
154
  // preconfigured rules from eslint-plugin-react-refresh https://github.com/ArnaudBarre/eslint-plugin-react-refresh/tree/main/src
151
155
  'react-refresh/only-export-components': [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devapoo-dev/eslint-config",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "type": "module",
5
5
  "main": "index.mjs",
6
6
  "types": "index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "tailwindcss": "^4.2.2"
17
17
  },
18
18
  "devDependencies": {
19
- "@devapoo-dev/tsconfig": "0.0.10"
19
+ "@devapoo-dev/tsconfig": "0.0.11"
20
20
  },
21
21
  "scripts": {
22
22
  "lint": "eslint .",