@jiakun-zhao/eslint-config 3.0.0 → 3.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/index.cjs ADDED
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ const antfu = require('@antfu/eslint-config');
4
+ const localPkg = require('local-pkg');
5
+
6
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
7
+
8
+ const antfu__default = /*#__PURE__*/_interopDefaultCompat(antfu);
9
+
10
+ const index = antfu__default({
11
+ stylistic: {
12
+ overrides: {
13
+ "no-console": "warn",
14
+ // typescript
15
+ "ts/ban-ts-comment": "off",
16
+ // unused-imports
17
+ "unused-imports/no-unused-imports": "warn",
18
+ // jsx
19
+ "style/jsx-quotes": ["off", "prefer-single"],
20
+ "style/jsx-one-expression-per-line": "off"
21
+ }
22
+ },
23
+ vue: {
24
+ overrides: {
25
+ "vue/html-self-closing": "off",
26
+ "vue/singleline-html-element-content-newline": "off",
27
+ "vue/static-class-names-order": "warn"
28
+ }
29
+ },
30
+ astro: localPkg.isPackageExists("eslint-plugin-astro")
31
+ });
32
+
33
+ module.exports = index;
@@ -0,0 +1,3 @@
1
+ declare const _default: unknown;
2
+
3
+ export { _default as default };
@@ -0,0 +1,3 @@
1
+ declare const _default: unknown;
2
+
3
+ export { _default as default };
@@ -0,0 +1,3 @@
1
+ declare const _default: unknown;
2
+
3
+ export { _default as default };
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@jiakun-zhao/eslint-config",
3
3
  "type": "module",
4
- "version": "3.0.0",
5
- "packageManager": "pnpm@9.0.1",
4
+ "version": "3.1.0",
6
5
  "description": "Jiakun's ESLint config.",
7
6
  "author": "Jiakun Zhao <hi@zhaojiakun.com>",
8
7
  "license": "MIT",
@@ -10,7 +9,16 @@
10
9
  "keywords": [
11
10
  "eslint-config"
12
11
  ],
13
- "main": "dist/index.mjs",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.mjs",
16
+ "require": "./dist/index.cjs"
17
+ }
18
+ },
19
+ "main": "./dist/index.cjs",
20
+ "module": "./dist/index.mjs",
21
+ "types": "./dist/index.d.ts",
14
22
  "files": [
15
23
  "dist"
16
24
  ],