@hyperupcall/eslint-config 0.9.2 → 0.11.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/README.md CHANGED
@@ -5,7 +5,12 @@ Edwin's [ESLint](https://eslint.org) configuration.
5
5
  ## Install
6
6
 
7
7
  ```sh
8
- pnpm i -D eslint eslint-config-prettier eslint-plugin-import eslint-plugin-markdown @hyperupcall/eslint-config
8
+ pnpm i -D \
9
+ eslint eslint-config-prettier @hyperupcall/eslint-config \
10
+ eslint-plugin-import eslint-plugin-markdown eslint-plugin-promise \
11
+ eslint-plugin-n eslint-plugin-unicorn eslint-plugin-security \
12
+ @eslint-community/eslint-plugin-eslint-comments eslint-plugin-regexp \
13
+ eslint-plugin-perfectionist eslint-plugin-no-unsanitized eslint-mdx
9
14
  ```
10
15
 
11
16
  ## Usage
@@ -0,0 +1,47 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ function getDefaultExportFromCjs (x) {
4
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
+ }
6
+
7
+ var src = {
8
+ extends: [
9
+ 'eslint:recommended',
10
+ 'plugin:import/recommended',
11
+ 'plugin:markdown/recommended',
12
+ 'plugin:promise/recommended',
13
+ 'plugin:n/recommended',
14
+ 'plugin:unicorn/recommended',
15
+ // 'plugin:security/recommended-legacy',
16
+ 'plugin:@eslint-community/eslint-comments/recommended',
17
+ 'plugin:regexp/recommended',
18
+ 'eslint-config-prettier',
19
+ 'plugin:perfectionist/recommended-natural',
20
+ 'plugin:no-unsanitized/DOM',
21
+ 'plugin:mdx/recommended'
22
+ ],
23
+ env: {
24
+ 'shared-node-browser': true,
25
+ es2022: true
26
+ },
27
+ parserOptions: {
28
+ ecmaVersion: 2022,
29
+ sourceType: 'module'
30
+ },
31
+ overrides: [
32
+ {
33
+ files: [
34
+ '*.cjs'
35
+ ],
36
+ env: {
37
+ commonjs: true
38
+ },
39
+ parserOptions: {
40
+ sourceType: 'script'
41
+ }
42
+ }
43
+ ]
44
+ };
45
+ var index = /*@__PURE__*/ getDefaultExportFromCjs(src);
46
+
47
+ exports.default = index;
@@ -0,0 +1,45 @@
1
+ function getDefaultExportFromCjs (x) {
2
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3
+ }
4
+
5
+ var src = {
6
+ extends: [
7
+ 'eslint:recommended',
8
+ 'plugin:import/recommended',
9
+ 'plugin:markdown/recommended',
10
+ 'plugin:promise/recommended',
11
+ 'plugin:n/recommended',
12
+ 'plugin:unicorn/recommended',
13
+ // 'plugin:security/recommended-legacy',
14
+ 'plugin:@eslint-community/eslint-comments/recommended',
15
+ 'plugin:regexp/recommended',
16
+ 'eslint-config-prettier',
17
+ 'plugin:perfectionist/recommended-natural',
18
+ 'plugin:no-unsanitized/DOM',
19
+ 'plugin:mdx/recommended'
20
+ ],
21
+ env: {
22
+ 'shared-node-browser': true,
23
+ es2022: true
24
+ },
25
+ parserOptions: {
26
+ ecmaVersion: 2022,
27
+ sourceType: 'module'
28
+ },
29
+ overrides: [
30
+ {
31
+ files: [
32
+ '*.cjs'
33
+ ],
34
+ env: {
35
+ commonjs: true
36
+ },
37
+ parserOptions: {
38
+ sourceType: 'script'
39
+ }
40
+ }
41
+ ]
42
+ };
43
+ var index = /*@__PURE__*/ getDefaultExportFromCjs(src);
44
+
45
+ export { index as default };
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@hyperupcall/eslint-config",
3
- "version": "0.9.2",
3
+ "version": "0.11.0",
4
4
  "files": [
5
- ".eslintrc.cjs",
6
- ".eslintrc.mjs"
5
+ "./dist/eslintrc.cjs",
6
+ "./dist/eslintrc.mjs"
7
7
  ],
8
8
  "license": "MPL-2.0",
9
9
  "exports": {
10
- "import": "./.eslintrc.mjs",
11
- "require": "./.eslintrc.cjs"
10
+ "import": "./dist/eslintrc.mjs",
11
+ "require": "./dist/eslintrc.cjs"
12
12
  },
13
13
  "peerDependencies": {
14
14
  "eslint": ">=8.0.0",
@@ -17,12 +17,13 @@
17
17
  "devDependencies": {
18
18
  "@hyperupcall/markdownlint-config": "^0.3.2",
19
19
  "@hyperupcall/prettier-config": "^0.7.0",
20
+ "bunchee": "^4.1.1",
20
21
  "eslint": "^8.18.0",
21
22
  "eslint-config-prettier": "^8.5.0",
22
23
  "eslint-plugin-import": "^2.29.0",
23
24
  "eslint-plugin-markdown": "^3.0.1",
24
25
  "markdownlint": "^0.32.1",
25
- "prettier": "^3.1.0",
26
+ "prettier": "^3.1.1",
26
27
  "prettier-plugin-pkg": "^0.18.0"
27
28
  },
28
29
  "description": "Edwin's ESLint configuration.",
@@ -35,6 +36,7 @@
35
36
  "url": "https://github.com/fox-land/eslint-config-hyperupcall.git"
36
37
  },
37
38
  "scripts": {
39
+ "build": "bunchee",
38
40
  "lint": "eslint .",
39
41
  "format": "prettier --check ."
40
42
  }
package/.eslintrc.cjs DELETED
@@ -1,28 +0,0 @@
1
- /** @type {import('eslint').ESLint.ConfigData} */
2
- module.exports = {
3
- extends: [
4
- 'eslint:recommended',
5
- 'plugin:import/recommended',
6
- 'plugin:markdown/recommended',
7
- 'eslint-config-prettier',
8
- ],
9
- env: {
10
- 'shared-node-browser': true,
11
- es2022: true, // Supported by Node.js v18
12
- },
13
- parserOptions: {
14
- ecmaVersion: 2022, // TODO: Should not need this
15
- sourceType: 'module',
16
- },
17
- overrides: [
18
- {
19
- files: ['*.cjs'],
20
- env: {
21
- commonjs: true,
22
- },
23
- parserOptions: {
24
- sourceType: 'script',
25
- },
26
- },
27
- ],
28
- }
package/.eslintrc.mjs DELETED
@@ -1,28 +0,0 @@
1
- /** @type {import('eslint').ESLint.ConfigData} */
2
- export default {
3
- extends: [
4
- 'eslint:recommended',
5
- 'plugin:import/recommended',
6
- 'plugin:markdown/recommended',
7
- 'eslint-config-prettier',
8
- ],
9
- env: {
10
- 'shared-node-browser': true,
11
- es2022: true, // Supported by Node.js v18
12
- },
13
- parserOptions: {
14
- ecmaVersion: 2022, // TODO: Should not need this
15
- sourceType: 'module',
16
- },
17
- overrides: [
18
- {
19
- files: ['*.cjs'],
20
- env: {
21
- commonjs: true,
22
- },
23
- parserOptions: {
24
- sourceType: 'script',
25
- },
26
- },
27
- ],
28
- }