@willbooster/eslint-config-js 10.0.6 → 10.2.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 +4 -2
- package/package.json +13 -13
package/.eslintrc.json
CHANGED
|
@@ -13,9 +13,11 @@
|
|
|
13
13
|
"env": { "es2022": true },
|
|
14
14
|
"rules": {
|
|
15
15
|
"eqeqeq": "warn",
|
|
16
|
-
"no-console": "off", //
|
|
17
|
-
"no-unused-vars": ["warn", { "ignoreRestSiblings": true }], //
|
|
16
|
+
"no-console": "off", // Allow `console.log()`.
|
|
17
|
+
"no-unused-vars": ["warn", { "ignoreRestSiblings": true }], // Allow unused vars in object destructuring.
|
|
18
18
|
"object-shorthand": "error",
|
|
19
|
+
"one-var": ["error", "never"], // We prefer one variable declaration per line.
|
|
20
|
+
"spaced-comment": "error", // Enforce consistency of spacing after the start of a comment // or /*.
|
|
19
21
|
"import/newline-after-import": "error",
|
|
20
22
|
"import/no-duplicates": "error",
|
|
21
23
|
"import/order": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/eslint-config-js",
|
|
3
|
-
"version": "10.0
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"description": "A ESLint config for JavaScript projects",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "WillBooster Inc.",
|
|
@@ -11,26 +11,26 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"cleanup": "yarn format && yarn lint-fix",
|
|
13
13
|
"format": "sort-package-json && yarn prettify",
|
|
14
|
-
"lint": "eslint --color \"./{src,
|
|
14
|
+
"lint": "eslint --color \"./{scripts,src,tests}/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}\"",
|
|
15
15
|
"lint-fix": "yarn lint --fix",
|
|
16
|
-
"prettify": "prettier --color --write \"**/{.*/,}*.{cjs,css,htm,html,js,json,json5,jsx,md,mjs,scss,ts,tsx,vue,yaml,yml}\" \"!**/test-fixtures/**\"",
|
|
16
|
+
"prettify": "prettier --cache --color --write \"**/{.*/,}*.{cjs,css,cts,htm,html,js,json,json5,jsx,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}\" \"!**/test-fixtures/**\"",
|
|
17
17
|
"test": "yarn lint"
|
|
18
18
|
},
|
|
19
19
|
"prettier": "@willbooster/prettier-config",
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@types/eslint": "8.
|
|
21
|
+
"@types/eslint": "8.44.2",
|
|
22
22
|
"@types/micromatch": "4.0.2",
|
|
23
23
|
"@willbooster/prettier-config": "9.1.1",
|
|
24
|
-
"eslint": "8.
|
|
25
|
-
"eslint-config-prettier": "
|
|
26
|
-
"eslint-plugin-import": "2.
|
|
27
|
-
"eslint-plugin-sort-class-members": "1.
|
|
28
|
-
"eslint-plugin-sort-destructure-keys": "1.
|
|
29
|
-
"eslint-plugin-unicorn": "
|
|
30
|
-
"lint-staged": "
|
|
24
|
+
"eslint": "8.47.0",
|
|
25
|
+
"eslint-config-prettier": "9.0.0",
|
|
26
|
+
"eslint-plugin-import": "2.28.1",
|
|
27
|
+
"eslint-plugin-sort-class-members": "1.18.0",
|
|
28
|
+
"eslint-plugin-sort-destructure-keys": "1.5.0",
|
|
29
|
+
"eslint-plugin-unicorn": "48.0.1",
|
|
30
|
+
"lint-staged": "14.0.1",
|
|
31
31
|
"micromatch": "4.0.5",
|
|
32
|
-
"prettier": "
|
|
33
|
-
"sort-package-json": "
|
|
32
|
+
"prettier": "3.0.2",
|
|
33
|
+
"sort-package-json": "2.5.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@willbooster/prettier-config": "9.1.1",
|