eslint-config-plus-prettier 3.0.0-rc.0 → 3.0.0
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 +7 -7
- package/index.d.ts +1 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -14,20 +14,20 @@ Add the following scripts to your `package.json`:
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"format": "prettier --write .",
|
|
16
16
|
"format:check": "prettier --check .",
|
|
17
|
-
"lint": "eslint
|
|
18
|
-
"lint:check": "eslint
|
|
17
|
+
"lint": "eslint --fix",
|
|
18
|
+
"lint:check": "eslint",
|
|
19
19
|
"package:lint": "npx npm-package-json-lint ."
|
|
20
20
|
}
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
### Configure ESLint
|
|
24
24
|
|
|
25
|
-
Add a
|
|
25
|
+
Add a `eslint.config.js` file with the following:
|
|
26
26
|
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
```javascript
|
|
28
|
+
import config from "eslint-config-plus-prettier";
|
|
29
|
+
|
|
30
|
+
export default [config];
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
Consider adding a `.eslintignore` file to avoid trying to lint compiled code in the `dist` folder:
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module "eslint-config-plus-prettier";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-plus-prettier",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Standard config for ESLint, Prettier and Package Lint. Also includes an optional TSConfig.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "aimee rivers",
|
|
@@ -8,10 +8,14 @@
|
|
|
8
8
|
".npmpackagejsonlintrc.json",
|
|
9
9
|
".prettierrc.json",
|
|
10
10
|
"eslint.config.js",
|
|
11
|
+
"index.d.ts",
|
|
11
12
|
"tsconfig.json"
|
|
12
13
|
],
|
|
13
14
|
"exports": {
|
|
14
|
-
".":
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./eslint.config.js",
|
|
17
|
+
"types": "./index.d.ts"
|
|
18
|
+
},
|
|
15
19
|
"./.npmpackagejsonlintrc.json": "./.npmpackagejsonlintrc.json",
|
|
16
20
|
"./.prettierrc.json": "./.prettierrc.json",
|
|
17
21
|
"./tsconfig.json": "./tsconfig.json"
|