eslint-config-plus-prettier 1.5.2 → 1.5.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 +5 -4
- package/package.json +13 -7
package/README.md
CHANGED
|
@@ -5,13 +5,14 @@ Standard config for ESLint and Prettier. Also includes an optional TSConfig.
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
npm install --save-dev eslint-config-plus-prettier
|
|
8
|
-
npx install-peerdeps --dev eslint-config-plus-prettier
|
|
9
8
|
|
|
10
9
|
Add the following scripts to your `package.json`:
|
|
11
10
|
|
|
12
11
|
"scripts": {
|
|
12
|
+
"format": "prettier --write .",
|
|
13
|
+
"format:check": "prettier --check .",
|
|
13
14
|
"lint": "eslint . --ext .ts,.js --fix",
|
|
14
|
-
"
|
|
15
|
+
"lint:check": "eslint . --ext .ts,.js"
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
### Configure ESLint
|
|
@@ -54,5 +55,5 @@ Add a `tsconfig.json` file with the following:
|
|
|
54
55
|
npm run lint
|
|
55
56
|
npm run format
|
|
56
57
|
|
|
57
|
-
-
|
|
58
|
-
-
|
|
58
|
+
- `lint` will check for errors and fix formatting in `.ts` and `.js` files.
|
|
59
|
+
- `format` will apply format rules to all possible files.
|
package/package.json
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-plus-prettier",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"description": "Standard config for ESLint and Prettier",
|
|
5
|
-
"
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"author": "aimee rivers",
|
|
6
7
|
"files": [
|
|
7
|
-
"index.js",
|
|
8
8
|
".prettierrc.json",
|
|
9
|
+
"index.js",
|
|
9
10
|
"tsconfig.json"
|
|
10
11
|
],
|
|
12
|
+
"main": "index.js",
|
|
11
13
|
"scripts": {
|
|
14
|
+
"format": "prettier --write .",
|
|
15
|
+
"format:check": "prettier --check .",
|
|
12
16
|
"lint": "eslint . --ext .ts,.js --fix",
|
|
13
|
-
"
|
|
17
|
+
"lint:check": "eslint . --ext .ts,.js",
|
|
18
|
+
"package:lint": "npx npm-package-json-lint ."
|
|
14
19
|
},
|
|
15
|
-
"
|
|
16
|
-
"license": "ISC",
|
|
17
|
-
"peerDependencies": {
|
|
20
|
+
"dependencies": {
|
|
18
21
|
"@typescript-eslint/parser": "^7.11.0",
|
|
19
22
|
"eslint-config-prettier": "^9.1.0",
|
|
20
23
|
"eslint-plugin-import": "^2.29.1",
|
|
@@ -22,5 +25,8 @@
|
|
|
22
25
|
"eslint-plugin-promise": "^6.2.0",
|
|
23
26
|
"eslint-plugin-simple-import-sort": "^12.1.0",
|
|
24
27
|
"prettier": "^3.2.5"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"npm-package-json-lint": "8.0.0"
|
|
25
31
|
}
|
|
26
32
|
}
|