eslint-config-plus-prettier 1.5.1 → 1.5.3

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 (3) hide show
  1. package/README.md +5 -3
  2. package/index.js +3 -1
  3. package/package.json +12 -5
package/README.md CHANGED
@@ -10,8 +10,10 @@ Standard config for ESLint and Prettier. Also includes an optional TSConfig.
10
10
  Add the following scripts to your `package.json`:
11
11
 
12
12
  "scripts": {
13
+ "format": "prettier --write .",
14
+ "format:check": "prettier --check .",
13
15
  "lint": "eslint . --ext .ts,.js --fix",
14
- "format": "prettier --write ."
16
+ "lint:check": "eslint . --ext .ts,.js"
15
17
  }
16
18
 
17
19
  ### Configure ESLint
@@ -54,5 +56,5 @@ Add a `tsconfig.json` file with the following:
54
56
  npm run lint
55
57
  npm run format
56
58
 
57
- - Linting will check for errors and fix formatting in `.ts` and `.js` files.
58
- - Formatting will apply format rules to all possible files.
59
+ - `lint` will check for errors and fix formatting in `.ts` and `.js` files.
60
+ - `format` will apply format rules to all possible files.
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  module.exports = {
2
2
  root: true,
3
3
  parser: "@typescript-eslint/parser",
4
+ plugins: ["simple-import-sort"],
4
5
  rules: {
5
6
  "@typescript-eslint/no-floating-promises": ["off"],
6
7
  "prefer-const": [
@@ -10,7 +11,8 @@ module.exports = {
10
11
  ignoreReadBeforeAssign: false,
11
12
  },
12
13
  ],
13
- "sort-imports": ["off"],
14
+ "simple-import-sort/imports": "error",
15
+ "simple-import-sort/exports": "error",
14
16
  quotes: ["error", "double"],
15
17
  },
16
18
  };
package/package.json CHANGED
@@ -1,25 +1,32 @@
1
1
  {
2
2
  "name": "eslint-config-plus-prettier",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "Standard config for ESLint and Prettier",
5
- "main": "index.js",
5
+ "license": "ISC",
6
+ "author": "aimee rivers",
6
7
  "files": [
7
8
  "index.js",
8
9
  ".prettierrc.json",
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
- "format": "prettier --write ."
17
+ "lint:check": "eslint . --ext .ts,.js",
18
+ "package:lint": "npx npm-package-json-lint ."
19
+ },
20
+ "devDependencies": {
21
+ "npm-package-json-lint": "8.0.0"
14
22
  },
15
- "author": "aimee rivers",
16
- "license": "ISC",
17
23
  "peerDependencies": {
18
24
  "@typescript-eslint/parser": "^7.11.0",
19
25
  "eslint-config-prettier": "^9.1.0",
20
26
  "eslint-plugin-import": "^2.29.1",
21
27
  "eslint-plugin-prettier": "^5.1.3",
22
28
  "eslint-plugin-promise": "^6.2.0",
29
+ "eslint-plugin-simple-import-sort": "^12.1.0",
23
30
  "prettier": "^3.2.5"
24
31
  }
25
32
  }