@devapoo-dev/eslint-config 1.1.12 → 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.
- package/index.mjs +4 -0
- package/package.json +4 -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,20 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devapoo-dev/eslint-config",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@antfu/eslint-config": "^8.2.0",
|
|
9
|
+
"@eslint-react/eslint-plugin": "^4.2.3",
|
|
9
10
|
"eslint": "9",
|
|
10
11
|
"eslint-config-prettier": "^10.1.8",
|
|
11
12
|
"eslint-plugin-check-file": "^3.3.1",
|
|
12
13
|
"eslint-plugin-prettier": "^5.5.5",
|
|
14
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
13
15
|
"eslint-plugin-tailwindcss": "^3.18.3",
|
|
14
16
|
"tailwindcss": "^4.2.2"
|
|
15
17
|
},
|
|
16
18
|
"devDependencies": {
|
|
17
|
-
"@devapoo-dev/tsconfig": "0.0.
|
|
19
|
+
"@devapoo-dev/tsconfig": "0.0.11"
|
|
18
20
|
},
|
|
19
21
|
"scripts": {
|
|
20
22
|
"lint": "eslint .",
|