@paratco/eslint-config 0.4.2 → 0.4.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 +47 -47
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
# `@paratco/eslint-config`
|
|
2
|
-
|
|
3
|
-
Paratco ESLint configs
|
|
4
|
-
|
|
5
|
-
- Typescript
|
|
6
|
-
- React (optional)
|
|
7
|
-
|
|
8
|
-
### Installation
|
|
9
|
-
|
|
10
|
-
NPM:
|
|
11
|
-
```bash
|
|
12
|
-
npm install --save-dev @paratco/eslint-config eslint prettier typescript-eslint
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Yarn:
|
|
16
|
-
```bash
|
|
17
|
-
yarn add -D @paratco/eslint-config eslint prettier typescript-eslint
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
### Usage (Flat config):
|
|
21
|
-
|
|
22
|
-
Node.JS:
|
|
23
|
-
```javascript
|
|
24
|
-
import paratcoEslintConfig from "@paratco/eslint-config";
|
|
25
|
-
|
|
26
|
-
export default [
|
|
27
|
-
...paratcoEslintConfig.node,
|
|
28
|
-
];
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
React:
|
|
32
|
-
```javascript
|
|
33
|
-
import paratcoEslintConfig from "@paratco/eslint-config";
|
|
34
|
-
|
|
35
|
-
export default [
|
|
36
|
-
...paratcoEslintConfig.react,
|
|
37
|
-
];
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
Base (JS + TS rules):
|
|
41
|
-
```javascript
|
|
42
|
-
import paratcoEslintConfig from "@paratco/eslint-config";
|
|
43
|
-
|
|
44
|
-
export default [
|
|
45
|
-
...paratcoEslintConfig.base,
|
|
46
|
-
];
|
|
47
|
-
```
|
|
1
|
+
# `@paratco/eslint-config`
|
|
2
|
+
|
|
3
|
+
Paratco ESLint configs
|
|
4
|
+
|
|
5
|
+
- Typescript
|
|
6
|
+
- React (optional)
|
|
7
|
+
|
|
8
|
+
### Installation
|
|
9
|
+
|
|
10
|
+
NPM:
|
|
11
|
+
```bash
|
|
12
|
+
npm install --save-dev @paratco/eslint-config eslint prettier typescript-eslint
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Yarn:
|
|
16
|
+
```bash
|
|
17
|
+
yarn add -D @paratco/eslint-config eslint prettier typescript-eslint
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Usage (Flat config):
|
|
21
|
+
|
|
22
|
+
Node.JS:
|
|
23
|
+
```javascript
|
|
24
|
+
import paratcoEslintConfig from "@paratco/eslint-config";
|
|
25
|
+
|
|
26
|
+
export default [
|
|
27
|
+
...paratcoEslintConfig.node,
|
|
28
|
+
];
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
React:
|
|
32
|
+
```javascript
|
|
33
|
+
import paratcoEslintConfig from "@paratco/eslint-config";
|
|
34
|
+
|
|
35
|
+
export default [
|
|
36
|
+
...paratcoEslintConfig.react,
|
|
37
|
+
];
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Base (JS + TS rules):
|
|
41
|
+
```javascript
|
|
42
|
+
import paratcoEslintConfig from "@paratco/eslint-config";
|
|
43
|
+
|
|
44
|
+
export default [
|
|
45
|
+
...paratcoEslintConfig.base,
|
|
46
|
+
];
|
|
47
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paratco/eslint-config",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Paratco",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
"format": "prettier --write src/"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"eslint": "^9.
|
|
23
|
+
"eslint": "^9.5.0",
|
|
24
24
|
"prettier": "^3.3.2",
|
|
25
|
-
"typescript-eslint": "^7.
|
|
25
|
+
"typescript-eslint": "^7.14.1"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@eslint/compat": "^1.0
|
|
29
|
-
"@eslint/js": "^9.
|
|
28
|
+
"@eslint/compat": "^1.1.0",
|
|
29
|
+
"@eslint/js": "^9.5.0",
|
|
30
30
|
"@types/eslint__js": "^8.42.3",
|
|
31
31
|
"eslint-config-prettier": "^9.1.0",
|
|
32
32
|
"eslint-plugin-react": "^7.34.2",
|
|
33
33
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
34
34
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
35
|
-
"globals": "^15.
|
|
35
|
+
"globals": "^15.6.0"
|
|
36
36
|
}
|
|
37
37
|
}
|