@robinbobin/eslint-config-react 0.0.1
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/eslint.config.js +15 -0
- package/js/eslint.config.d.ts +2 -0
- package/package.json +42 -0
package/eslint.config.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import parentConfig from '@robinbobin/eslint-config'
|
|
2
|
+
import { defineConfig } from 'eslint/config'
|
|
3
|
+
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
|
+
|
|
5
|
+
export default defineConfig([
|
|
6
|
+
...parentConfig,
|
|
7
|
+
reactHooks.configs.flat.recommended,
|
|
8
|
+
{
|
|
9
|
+
rules: {
|
|
10
|
+
'react-hooks/exhaustive-deps': 'error',
|
|
11
|
+
'react-hooks/incompatible-library': 'error',
|
|
12
|
+
'react-hooks/unsupported-syntax': 'error'
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
])
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Ruben Shalimov <r_shalimov@inbox.ru>",
|
|
3
|
+
"bugs": {
|
|
4
|
+
"url": "https://github.com/RobinBobin/eslint-config-react/issues"
|
|
5
|
+
},
|
|
6
|
+
"description": "My ESLint config for React (Native) projects",
|
|
7
|
+
"devDependencies": {
|
|
8
|
+
"@robinbobin/eslint-config": "^0.0.2",
|
|
9
|
+
"@robinbobin/prettier-config": "^0.0.3",
|
|
10
|
+
"@robinbobin/ts-config": "^0.0.4",
|
|
11
|
+
"eslint": "^9.38.0",
|
|
12
|
+
"eslint-plugin-react-hooks": "^7.0.1"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"default": "./eslint.config.js",
|
|
17
|
+
"types": "./js/eslint.config.d.ts"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"eslint.config.js",
|
|
22
|
+
"js"
|
|
23
|
+
],
|
|
24
|
+
"homepage": "https://github.com/RobinBobin/eslint-config-react#readme",
|
|
25
|
+
"keywords": [
|
|
26
|
+
"eslint",
|
|
27
|
+
"eslintconfig",
|
|
28
|
+
"react"
|
|
29
|
+
],
|
|
30
|
+
"name": "@robinbobin/eslint-config-react",
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"@robinbobin/eslint-config": "^0.0.2",
|
|
33
|
+
"eslint-plugin-react-hooks": "^7.0.1"
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/RobinBobin/eslint-config-react.git"
|
|
38
|
+
},
|
|
39
|
+
"type": "module",
|
|
40
|
+
"version": "0.0.1",
|
|
41
|
+
"scripts": {}
|
|
42
|
+
}
|