@bigbinary/neeto-commons-frontend 4.13.34 → 4.13.35
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.
|
@@ -1,34 +1,29 @@
|
|
|
1
1
|
import path from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
2
3
|
|
|
3
|
-
import
|
|
4
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
5
|
import { defineConfig } from "eslint/config";
|
|
5
6
|
|
|
7
|
+
import orderConfig from "./imports/order.mjs";
|
|
8
|
+
|
|
6
9
|
import commonConfiguration from "../../eslint/index.mjs";
|
|
7
10
|
import globalsConfig from "../../eslint/globals.mjs";
|
|
8
11
|
import enforcedConfig from "../../eslint/imports/enforced.mjs";
|
|
9
|
-
import orderConfig from "../../eslint/imports/order.mjs";
|
|
10
12
|
import overridesConfig from "../../eslint/overrides.mjs";
|
|
11
13
|
import promiseConfig from "../../eslint/promise.mjs";
|
|
12
14
|
import reactConfig from "../../eslint/react.mjs";
|
|
13
15
|
|
|
16
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
17
|
+
const __dirname = path.dirname(__filename);
|
|
18
|
+
const compat = new FlatCompat({ baseDirectory: __dirname });
|
|
19
|
+
|
|
14
20
|
export default defineConfig([
|
|
15
|
-
js.configs.recommended,
|
|
16
21
|
...commonConfiguration,
|
|
22
|
+
...compat.extends("plugin:@bigbinary/neeto/nanos-recommended"),
|
|
17
23
|
globalsConfig,
|
|
18
24
|
orderConfig,
|
|
19
25
|
overridesConfig,
|
|
20
26
|
enforcedConfig,
|
|
21
27
|
reactConfig,
|
|
22
28
|
promiseConfig,
|
|
23
|
-
{
|
|
24
|
-
rules: {
|
|
25
|
-
"@bigbinary/neeto/webpack-aliases-and-jsconfig-paths-should-be-in-sync": [
|
|
26
|
-
"error",
|
|
27
|
-
{
|
|
28
|
-
jsconfigFilePath: path.resolve("./jsconfig.json"),
|
|
29
|
-
aliasFilePath: path.resolve("./resolve.js"),
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
29
|
]);
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import
|
|
1
|
+
import path from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
|
|
4
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
2
5
|
import { defineConfig } from "eslint/config";
|
|
3
6
|
|
|
7
|
+
import orderConfig from "./imports/order.mjs";
|
|
8
|
+
|
|
4
9
|
import commonConfiguration from "../../eslint/index.mjs";
|
|
5
10
|
import globalsConfig from "../../eslint/globals.mjs";
|
|
6
11
|
import enforcedConfig from "../../eslint/imports/enforced.mjs";
|
|
7
|
-
import orderConfig from "../../eslint/imports/order.mjs";
|
|
8
12
|
import overridesConfig from "../../eslint/overrides.mjs";
|
|
9
13
|
import promiseConfig from "../../eslint/promise.mjs";
|
|
10
14
|
import reactConfig from "../../eslint/react.mjs";
|
|
11
15
|
|
|
16
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
17
|
+
const __dirname = path.dirname(__filename);
|
|
18
|
+
const compat = new FlatCompat({ baseDirectory: __dirname });
|
|
19
|
+
|
|
12
20
|
export default defineConfig([
|
|
13
|
-
js.configs.recommended,
|
|
14
21
|
...commonConfiguration,
|
|
22
|
+
...compat.extends("plugin:@bigbinary/neeto/nextjs-recommended"),
|
|
15
23
|
globalsConfig,
|
|
16
24
|
orderConfig,
|
|
17
25
|
overridesConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.35",
|
|
4
4
|
"description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|