eslint-config-plus-prettier 3.0.0-rc.1 → 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.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +1 -1
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 . --ext .ts,.js --fix",
18
- "lint:check": "eslint . --ext .ts,.js",
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 `.eslintrc.json` file with the following:
25
+ Add a `eslint.config.js` file with the following:
26
26
 
27
- ```json
28
- {
29
- "extends": "eslint-config-plus-prettier"
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-plus-prettier",
3
- "version": "3.0.0-rc.1",
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",