@willbooster/eslint-config-js 9.1.0 → 10.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/.eslintrc.json CHANGED
@@ -1,10 +1,16 @@
1
1
  {
2
- "extends": ["eslint:recommended", "plugin:import/recommended", "plugin:sort-class-members/recommended", "prettier"],
2
+ "extends": [
3
+ "eslint:recommended",
4
+ "plugin:import/recommended",
5
+ "plugin:sort-class-members/recommended",
6
+ "plugin:unicorn/recommended",
7
+ "prettier"
8
+ ],
3
9
  "plugins": ["sort-destructure-keys"],
4
10
  "parserOptions": {
5
- "ecmaVersion": 2021
11
+ "ecmaVersion": "latest"
6
12
  },
7
- "env": { "es2021": true },
13
+ "env": { "es2022": true },
8
14
  "rules": {
9
15
  "eqeqeq": "warn",
10
16
  "no-console": "off", // allow `console.log()`
@@ -21,6 +27,20 @@
21
27
  }
22
28
  }
23
29
  ],
24
- "sort-destructure-keys/sort-destructure-keys": "error"
30
+ "sort-destructure-keys/sort-destructure-keys": "error",
31
+ "unicorn/filename-case": [
32
+ "error",
33
+ {
34
+ "cases": {
35
+ "camelCase": true,
36
+ "pascalCase": true
37
+ }
38
+ }
39
+ ],
40
+ "unicorn/no-abusive-eslint-disable": "off",
41
+ "unicorn/no-array-reduce": "warn",
42
+ "unicorn/no-null": "warn",
43
+ "unicorn/no-process-exit": "off",
44
+ "unicorn/prefer-top-level-await": "warn"
25
45
  }
26
46
  }
package/README.md CHANGED
@@ -11,6 +11,7 @@ yarn add -D @willbooster/eslint-config-js \
11
11
  eslint-plugin-prettier \
12
12
  eslint-plugin-sort-class-members \
13
13
  eslint-plugin-sort-destructure-keys \
14
+ eslint-plugin-unicorn \
14
15
  prettier \
15
16
  @willbooster/prettier-config
16
17
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/eslint-config-js",
3
- "version": "9.1.0",
3
+ "version": "10.0.0",
4
4
  "description": "A ESLint config for JavaScript projects",
5
5
  "license": "Apache-2.0",
6
6
  "author": "WillBooster Inc.",
@@ -17,24 +17,27 @@
17
17
  "devDependencies": {
18
18
  "@types/eslint": "8.4.6",
19
19
  "@types/micromatch": "4.0.2",
20
- "@willbooster/prettier-config": "9.0.1",
21
- "eslint": "8.22.0",
20
+ "@willbooster/prettier-config": "9.1.0",
21
+ "eslint": "8.23.0",
22
22
  "eslint-config-prettier": "8.5.0",
23
23
  "eslint-plugin-import": "2.26.0",
24
- "eslint-plugin-sort-class-members": "1.14.1",
24
+ "eslint-plugin-sort-class-members": "1.15.2",
25
25
  "eslint-plugin-sort-destructure-keys": "1.4.0",
26
+ "eslint-plugin-unicorn": "43.0.2",
26
27
  "lint-staged": "13.0.3",
27
28
  "micromatch": "4.0.5",
28
29
  "prettier": "2.7.1",
29
30
  "sort-package-json": "1.57.0"
30
31
  },
31
32
  "peerDependencies": {
32
- "@willbooster/prettier-config": "9.0.1",
33
+ "@willbooster/prettier-config": "9.1.0",
33
34
  "eslint": ">=8",
34
35
  "eslint-config-prettier": ">=8",
35
36
  "eslint-plugin-import": ">=2",
36
37
  "eslint-plugin-sort-class-members": ">=1.14",
37
38
  "eslint-plugin-sort-destructure-keys": ">=1.4"
38
39
  },
39
- "gitHead": "865a18e97886b4051f555430f8fc0c89bd364001"
40
+ "publishConfig": {
41
+ "access": "public"
42
+ }
40
43
  }