@mlaursen/eslint-config 7.0.0 → 7.1.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/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/frontend.d.ts +2 -2
- package/dist/frontend.js +2 -2
- package/dist/testing-library.js +2 -10
- package/dist/typescript.d.ts +4 -1
- package/dist/typescript.js +4 -1
- package/package.json +17 -16
package/dist/base.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { type TSESLint } from "@typescript-eslint/utils";
|
|
|
4
4
|
* ```js
|
|
5
5
|
* import { config, configs } from "@mlaursen/eslint-config";
|
|
6
6
|
*
|
|
7
|
-
* export default configs.base;
|
|
7
|
+
* export default config(...configs.base);
|
|
8
8
|
* ```
|
|
9
9
|
*/
|
|
10
10
|
export declare const base: TSESLint.FlatConfig.ConfigArray;
|
package/dist/base.js
CHANGED
package/dist/frontend.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { type TSESLint } from "@typescript-eslint/utils";
|
|
|
6
6
|
*
|
|
7
7
|
* export default config(
|
|
8
8
|
* gitignore(import.meta.url),
|
|
9
|
-
* ...configs.
|
|
9
|
+
* ...configs.frontend
|
|
10
10
|
* );
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
@@ -18,7 +18,7 @@ export declare const frontend: TSESLint.FlatConfig.ConfigArray;
|
|
|
18
18
|
*
|
|
19
19
|
* export default config(
|
|
20
20
|
* gitignore(import.meta.url),
|
|
21
|
-
* ...configs.
|
|
21
|
+
* ...configs.frontendTypeChecking(import.meta.dirname)
|
|
22
22
|
* );
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
package/dist/frontend.js
CHANGED
|
@@ -35,7 +35,7 @@ import { typescript, typescriptTypeChecking } from "./typescript.js";
|
|
|
35
35
|
*
|
|
36
36
|
* export default config(
|
|
37
37
|
* gitignore(import.meta.url),
|
|
38
|
-
* ...configs.
|
|
38
|
+
* ...configs.frontend
|
|
39
39
|
* );
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
@@ -47,7 +47,7 @@ export var frontend = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__
|
|
|
47
47
|
*
|
|
48
48
|
* export default config(
|
|
49
49
|
* gitignore(import.meta.url),
|
|
50
|
-
* ...configs.
|
|
50
|
+
* ...configs.frontendTypeChecking(import.meta.dirname)
|
|
51
51
|
* );
|
|
52
52
|
* ```
|
|
53
53
|
*/
|
package/dist/testing-library.js
CHANGED
|
@@ -9,16 +9,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { fixupPluginRules } from "@eslint/compat";
|
|
13
12
|
import testingLibraryPlugin from "eslint-plugin-testing-library";
|
|
14
13
|
import { BASE_NAME, TEST_FILES } from "./constants.js";
|
|
15
|
-
var testingLibrary = {
|
|
16
|
-
files: TEST_FILES,
|
|
17
|
-
plugins: {
|
|
18
|
-
// @ts-expect-error There is a bad typing atm
|
|
19
|
-
"testing-library": fixupPluginRules(testingLibraryPlugin),
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
14
|
/**
|
|
23
15
|
* @example
|
|
24
16
|
* ```ts
|
|
@@ -36,7 +28,7 @@ var testingLibrary = {
|
|
|
36
28
|
* both.
|
|
37
29
|
*/
|
|
38
30
|
export var testingLibraryReact = [
|
|
39
|
-
__assign(
|
|
31
|
+
__assign({ name: "".concat(BASE_NAME, "/testing-library/react"), files: TEST_FILES }, testingLibraryPlugin.configs["flat/react"]),
|
|
40
32
|
];
|
|
41
33
|
/**
|
|
42
34
|
* @example
|
|
@@ -54,5 +46,5 @@ export var testingLibraryReact = [
|
|
|
54
46
|
* both.
|
|
55
47
|
*/
|
|
56
48
|
export var testingLibraryDom = [
|
|
57
|
-
__assign(
|
|
49
|
+
__assign({ name: "".concat(BASE_NAME, "/testing-library/dom"), files: TEST_FILES }, testingLibraryPlugin.configs["flat/dom"]),
|
|
58
50
|
];
|
package/dist/typescript.d.ts
CHANGED
|
@@ -14,7 +14,10 @@ export declare const typescript: TSESLint.FlatConfig.ConfigArray;
|
|
|
14
14
|
* // @ts-check
|
|
15
15
|
* import { config, configs, gitignore } from "@mlaursen/eslint-config";
|
|
16
16
|
*
|
|
17
|
-
* export default config(
|
|
17
|
+
* export default config(
|
|
18
|
+
* gitignore(import.meta.url),
|
|
19
|
+
* ...configs.typescriptTypeChecking(import.meta.dirname)
|
|
20
|
+
* );
|
|
18
21
|
* ```
|
|
19
22
|
*/
|
|
20
23
|
export declare const typescriptTypeChecking: (tsconfigRootDir: string) => TSESLint.FlatConfig.ConfigArray;
|
package/dist/typescript.js
CHANGED
|
@@ -96,7 +96,10 @@ export var typescript = __spreadArray(__spreadArray(__spreadArray([], __read(bas
|
|
|
96
96
|
* // @ts-check
|
|
97
97
|
* import { config, configs, gitignore } from "@mlaursen/eslint-config";
|
|
98
98
|
*
|
|
99
|
-
* export default config(
|
|
99
|
+
* export default config(
|
|
100
|
+
* gitignore(import.meta.url),
|
|
101
|
+
* ...configs.typescriptTypeChecking(import.meta.dirname)
|
|
102
|
+
* );
|
|
100
103
|
* ```
|
|
101
104
|
*/
|
|
102
105
|
export var typescriptTypeChecking = function (tsconfigRootDir) { return __spreadArray(__spreadArray(__spreadArray([], __read(typescript), false), __read(tseslint.configs.strictTypeCheckedOnly), false), [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mlaursen/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.1.0",
|
|
5
5
|
"description": "An eslint config used by mlaursen for most projects.",
|
|
6
6
|
"repository": "https://github.com/mlaursen/eslint-config.git",
|
|
7
7
|
"author": "Mikkel Laursen <mlaursen03@gmail.com>",
|
|
@@ -21,31 +21,32 @@
|
|
|
21
21
|
"typescript"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@eslint/compat": "^1.2.
|
|
25
|
-
"@eslint/js": "^9.
|
|
26
|
-
"@next/eslint-plugin-next": "^15.
|
|
27
|
-
"@
|
|
24
|
+
"@eslint/compat": "^1.2.8",
|
|
25
|
+
"@eslint/js": "^9.24.0",
|
|
26
|
+
"@next/eslint-plugin-next": "^15.3.0",
|
|
27
|
+
"@types/eslint-plugin-jsx-a11y": "^6.10.0",
|
|
28
|
+
"@typescript-eslint/utils": "^8.30.1",
|
|
28
29
|
"eslint-plugin-jest": "^28.11.0",
|
|
29
30
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
30
31
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
31
|
-
"eslint-plugin-react": "^7.37.
|
|
32
|
+
"eslint-plugin-react": "^7.37.5",
|
|
32
33
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
33
34
|
"eslint-plugin-testing-library": "^7.1.1",
|
|
34
|
-
"typescript-eslint": "^8.
|
|
35
|
+
"typescript-eslint": "^8.30.1"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@changesets/cli": "^2.
|
|
38
|
-
"@inquirer/prompts": "^7.4.
|
|
39
|
-
"@octokit/core": "^6.1.
|
|
40
|
-
"@types/node": "^22.
|
|
41
|
-
"dotenv": "^16.
|
|
42
|
-
"eslint": "^9.
|
|
38
|
+
"@changesets/cli": "^2.29.2",
|
|
39
|
+
"@inquirer/prompts": "^7.4.1",
|
|
40
|
+
"@octokit/core": "^6.1.5",
|
|
41
|
+
"@types/node": "^22.14.1",
|
|
42
|
+
"dotenv": "^16.5.0",
|
|
43
|
+
"eslint": "^9.24.0",
|
|
43
44
|
"husky": "^9.1.7",
|
|
44
|
-
"inquirer": "^12.5.
|
|
45
|
-
"lint-staged": "^15.5.
|
|
45
|
+
"inquirer": "^12.5.2",
|
|
46
|
+
"lint-staged": "^15.5.1",
|
|
46
47
|
"prettier": "^3.5.3",
|
|
47
48
|
"tsx": "^4.19.3",
|
|
48
|
-
"typescript": "^5.8.
|
|
49
|
+
"typescript": "^5.8.3"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
52
|
"eslint": ">= 9.0.0",
|