@exadev/eslint-config 1.1.0 → 1.1.1
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/index.cjs +2 -41
- package/dist/index.d.cts +1 -3
- package/dist/index.d.ts +1 -4
- package/dist/index.js +1 -44
- package/dist/plugin-BBix8yMe.js +45 -0
- package/dist/plugin-jELHVCCw.cjs +46 -0
- package/dist/plugin.cjs +2 -0
- package/dist/plugin.d.cts +4 -0
- package/dist/plugin.d.ts +5 -0
- package/dist/plugin.js +2 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,41 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const plugin = {
|
|
4
|
-
meta: {
|
|
5
|
-
name: "@exadev/eslint-config",
|
|
6
|
-
version: "1.1.0",
|
|
7
|
-
namespace: "exadev"
|
|
8
|
-
},
|
|
9
|
-
rules: {
|
|
10
|
-
"no-non-barrel-index": require("./rules/no-non-barrel-index.cjs"),
|
|
11
|
-
"no-non-barrel-reexport": require("./rules/no-non-barrel-reexport.cjs"),
|
|
12
|
-
"no-pointless-reassignment": require("./rules/no-pointless-reassignment.cjs"),
|
|
13
|
-
"no-side-effects-in-index": require("./rules/no-side-effects-in-index.cjs")
|
|
14
|
-
},
|
|
15
|
-
configs: {}
|
|
16
|
-
};
|
|
17
|
-
const { configs } = plugin;
|
|
18
|
-
if (configs === void 0) throw new Error("Unreachable: configs was just initialized to {} in the object literal above.");
|
|
19
|
-
Object.assign(configs, {
|
|
20
|
-
recommended: {
|
|
21
|
-
plugins: { exadev: plugin },
|
|
22
|
-
linterOptions: { noInlineConfig: true },
|
|
23
|
-
rules: {
|
|
24
|
-
"exadev/no-non-barrel-index": "error",
|
|
25
|
-
"exadev/no-non-barrel-reexport": "error",
|
|
26
|
-
"exadev/no-pointless-reassignment": "error",
|
|
27
|
-
"exadev/no-side-effects-in-index": "error",
|
|
28
|
-
"@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "never" }]
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
barrel: {
|
|
32
|
-
plugins: { exadev: plugin },
|
|
33
|
-
rules: {
|
|
34
|
-
"exadev/no-non-barrel-index": "error",
|
|
35
|
-
"exadev/no-non-barrel-reexport": "error",
|
|
36
|
-
"exadev/no-side-effects-in-index": "error"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
//#endregion
|
|
41
|
-
module.exports = plugin;
|
|
1
|
+
const require_plugin = require("./plugin-jELHVCCw.cjs");
|
|
2
|
+
module.exports = require_plugin.plugin;
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,45 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import noNonBarrelReexport from "./rules/no-non-barrel-reexport.js";
|
|
3
|
-
import noPointlessReassignment from "./rules/no-pointless-reassignment.js";
|
|
4
|
-
import noSideEffectsInIndex from "./rules/no-side-effects-in-index.js";
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/index.ts
|
|
7
|
-
const plugin = {
|
|
8
|
-
meta: {
|
|
9
|
-
name: "@exadev/eslint-config",
|
|
10
|
-
version: "1.1.0",
|
|
11
|
-
namespace: "exadev"
|
|
12
|
-
},
|
|
13
|
-
rules: {
|
|
14
|
-
"no-non-barrel-index": noNonBarrelIndex,
|
|
15
|
-
"no-non-barrel-reexport": noNonBarrelReexport,
|
|
16
|
-
"no-pointless-reassignment": noPointlessReassignment,
|
|
17
|
-
"no-side-effects-in-index": noSideEffectsInIndex
|
|
18
|
-
},
|
|
19
|
-
configs: {}
|
|
20
|
-
};
|
|
21
|
-
const { configs } = plugin;
|
|
22
|
-
if (configs === void 0) throw new Error("Unreachable: configs was just initialized to {} in the object literal above.");
|
|
23
|
-
Object.assign(configs, {
|
|
24
|
-
recommended: {
|
|
25
|
-
plugins: { exadev: plugin },
|
|
26
|
-
linterOptions: { noInlineConfig: true },
|
|
27
|
-
rules: {
|
|
28
|
-
"exadev/no-non-barrel-index": "error",
|
|
29
|
-
"exadev/no-non-barrel-reexport": "error",
|
|
30
|
-
"exadev/no-pointless-reassignment": "error",
|
|
31
|
-
"exadev/no-side-effects-in-index": "error",
|
|
32
|
-
"@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "never" }]
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
barrel: {
|
|
36
|
-
plugins: { exadev: plugin },
|
|
37
|
-
rules: {
|
|
38
|
-
"exadev/no-non-barrel-index": "error",
|
|
39
|
-
"exadev/no-non-barrel-reexport": "error",
|
|
40
|
-
"exadev/no-side-effects-in-index": "error"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
//#endregion
|
|
1
|
+
import { t as plugin } from "./plugin-BBix8yMe.js";
|
|
45
2
|
export { plugin as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import noNonBarrelIndex from "./rules/no-non-barrel-index.js";
|
|
2
|
+
import noNonBarrelReexport from "./rules/no-non-barrel-reexport.js";
|
|
3
|
+
import noPointlessReassignment from "./rules/no-pointless-reassignment.js";
|
|
4
|
+
import noSideEffectsInIndex from "./rules/no-side-effects-in-index.js";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/plugin.ts
|
|
7
|
+
const plugin = {
|
|
8
|
+
meta: {
|
|
9
|
+
name: "@exadev/eslint-config",
|
|
10
|
+
version: "1.1.1",
|
|
11
|
+
namespace: "exadev"
|
|
12
|
+
},
|
|
13
|
+
rules: {
|
|
14
|
+
"no-non-barrel-index": noNonBarrelIndex,
|
|
15
|
+
"no-non-barrel-reexport": noNonBarrelReexport,
|
|
16
|
+
"no-pointless-reassignment": noPointlessReassignment,
|
|
17
|
+
"no-side-effects-in-index": noSideEffectsInIndex
|
|
18
|
+
},
|
|
19
|
+
configs: {}
|
|
20
|
+
};
|
|
21
|
+
const { configs } = plugin;
|
|
22
|
+
if (configs === void 0) throw new Error("Unreachable: configs was just initialized to {} in the object literal above.");
|
|
23
|
+
Object.assign(configs, {
|
|
24
|
+
recommended: {
|
|
25
|
+
plugins: { exadev: plugin },
|
|
26
|
+
linterOptions: { noInlineConfig: true },
|
|
27
|
+
rules: {
|
|
28
|
+
"exadev/no-non-barrel-index": "error",
|
|
29
|
+
"exadev/no-non-barrel-reexport": "error",
|
|
30
|
+
"exadev/no-pointless-reassignment": "error",
|
|
31
|
+
"exadev/no-side-effects-in-index": "error",
|
|
32
|
+
"@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "never" }]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
barrel: {
|
|
36
|
+
plugins: { exadev: plugin },
|
|
37
|
+
rules: {
|
|
38
|
+
"exadev/no-non-barrel-index": "error",
|
|
39
|
+
"exadev/no-non-barrel-reexport": "error",
|
|
40
|
+
"exadev/no-side-effects-in-index": "error"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
export { plugin as t };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//#endregion
|
|
2
|
+
//#region src/plugin.ts
|
|
3
|
+
const plugin = {
|
|
4
|
+
meta: {
|
|
5
|
+
name: "@exadev/eslint-config",
|
|
6
|
+
version: "1.1.1",
|
|
7
|
+
namespace: "exadev"
|
|
8
|
+
},
|
|
9
|
+
rules: {
|
|
10
|
+
"no-non-barrel-index": require("./rules/no-non-barrel-index.cjs"),
|
|
11
|
+
"no-non-barrel-reexport": require("./rules/no-non-barrel-reexport.cjs"),
|
|
12
|
+
"no-pointless-reassignment": require("./rules/no-pointless-reassignment.cjs"),
|
|
13
|
+
"no-side-effects-in-index": require("./rules/no-side-effects-in-index.cjs")
|
|
14
|
+
},
|
|
15
|
+
configs: {}
|
|
16
|
+
};
|
|
17
|
+
const { configs } = plugin;
|
|
18
|
+
if (configs === void 0) throw new Error("Unreachable: configs was just initialized to {} in the object literal above.");
|
|
19
|
+
Object.assign(configs, {
|
|
20
|
+
recommended: {
|
|
21
|
+
plugins: { exadev: plugin },
|
|
22
|
+
linterOptions: { noInlineConfig: true },
|
|
23
|
+
rules: {
|
|
24
|
+
"exadev/no-non-barrel-index": "error",
|
|
25
|
+
"exadev/no-non-barrel-reexport": "error",
|
|
26
|
+
"exadev/no-pointless-reassignment": "error",
|
|
27
|
+
"exadev/no-side-effects-in-index": "error",
|
|
28
|
+
"@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "never" }]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
barrel: {
|
|
32
|
+
plugins: { exadev: plugin },
|
|
33
|
+
rules: {
|
|
34
|
+
"exadev/no-non-barrel-index": "error",
|
|
35
|
+
"exadev/no-non-barrel-reexport": "error",
|
|
36
|
+
"exadev/no-side-effects-in-index": "error"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
Object.defineProperty(exports, "plugin", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function() {
|
|
44
|
+
return plugin;
|
|
45
|
+
}
|
|
46
|
+
});
|
package/dist/plugin.cjs
ADDED
package/dist/plugin.d.ts
ADDED
package/dist/plugin.js
ADDED