eslint-config-plus-prettier 4.1.2 → 4.1.4
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/eslint.config.js +11 -9
- package/package.json +5 -4
package/eslint.config.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as tsEslintPlugin from "@typescript-eslint/eslint-plugin";
|
|
1
2
|
import * as parser from "@typescript-eslint/parser";
|
|
2
3
|
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
3
4
|
import unusedImports from "eslint-plugin-unused-imports";
|
|
@@ -10,10 +11,20 @@ export default {
|
|
|
10
11
|
plugins: {
|
|
11
12
|
"simple-import-sort": simpleImportSort,
|
|
12
13
|
"unused-imports": unusedImports,
|
|
14
|
+
"@typescript-eslint": tsEslintPlugin,
|
|
13
15
|
},
|
|
14
16
|
files: ["**/*.ts", "**/*.js"],
|
|
15
17
|
rules: {
|
|
16
18
|
"@typescript-eslint/no-floating-promises": ["off"],
|
|
19
|
+
"@typescript-eslint/no-unused-vars": [
|
|
20
|
+
"warn",
|
|
21
|
+
{
|
|
22
|
+
vars: "all",
|
|
23
|
+
varsIgnorePattern: "^_",
|
|
24
|
+
args: "after-used",
|
|
25
|
+
argsIgnorePattern: "^_",
|
|
26
|
+
},
|
|
27
|
+
],
|
|
17
28
|
"prefer-const": [
|
|
18
29
|
"error",
|
|
19
30
|
{
|
|
@@ -25,14 +36,5 @@ export default {
|
|
|
25
36
|
"simple-import-sort/exports": "error",
|
|
26
37
|
quotes: ["error", "double"],
|
|
27
38
|
"unused-imports/no-unused-imports": "warn",
|
|
28
|
-
"unused-imports/no-unused-vars": [
|
|
29
|
-
"warn",
|
|
30
|
-
{
|
|
31
|
-
vars: "all",
|
|
32
|
-
varsIgnorePattern: "^_",
|
|
33
|
-
args: "after-used",
|
|
34
|
-
argsIgnorePattern: "^_",
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
39
|
},
|
|
38
40
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-plus-prettier",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
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",
|
|
@@ -31,8 +31,9 @@
|
|
|
31
31
|
"package:lint": "npx npm-package-json-lint ."
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@typescript-eslint/
|
|
35
|
-
"eslint": "^
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^8.18.0",
|
|
35
|
+
"@typescript-eslint/parser": "^8.18.0",
|
|
36
|
+
"eslint": "^9.16.0",
|
|
36
37
|
"eslint-config-prettier": "^9.1.0",
|
|
37
38
|
"eslint-plugin-import": "^2.31.0",
|
|
38
39
|
"eslint-plugin-prettier": "^5.2.1",
|
|
@@ -40,6 +41,6 @@
|
|
|
40
41
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
41
42
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
42
43
|
"npm-package-json-lint": "^8.0.0",
|
|
43
|
-
"prettier": "^3.4.
|
|
44
|
+
"prettier": "^3.4.2"
|
|
44
45
|
}
|
|
45
46
|
}
|