@hyperupcall/eslint-config 0.9.2 → 0.10.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,10 @@ 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 eslint \
9
+ eslint-config-prettier \
10
+ eslint-plugin-import eslint-plugin-markdown eslint-plugin-promise eslint-plugin-n eslint-plugin-unicorn eslint-plugin-security @eslint-community/eslint-plugin-eslint-comments \
11
+ @hyperupcall/eslint-config
9
12
  ```
10
13
 
11
14
  ## Usage
@@ -0,0 +1,43 @@
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
+ 'eslint-config-prettier'
18
+ ],
19
+ env: {
20
+ 'shared-node-browser': true,
21
+ es2022: true
22
+ },
23
+ parserOptions: {
24
+ ecmaVersion: 2022,
25
+ sourceType: 'module'
26
+ },
27
+ overrides: [
28
+ {
29
+ files: [
30
+ '*.cjs'
31
+ ],
32
+ env: {
33
+ commonjs: true
34
+ },
35
+ parserOptions: {
36
+ sourceType: 'script'
37
+ }
38
+ }
39
+ ]
40
+ };
41
+ var index = /*@__PURE__*/ getDefaultExportFromCjs(src);
42
+
43
+ exports.default = index;
@@ -0,0 +1,41 @@
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
+ 'eslint-config-prettier'
16
+ ],
17
+ env: {
18
+ 'shared-node-browser': true,
19
+ es2022: true
20
+ },
21
+ parserOptions: {
22
+ ecmaVersion: 2022,
23
+ sourceType: 'module'
24
+ },
25
+ overrides: [
26
+ {
27
+ files: [
28
+ '*.cjs'
29
+ ],
30
+ env: {
31
+ commonjs: true
32
+ },
33
+ parserOptions: {
34
+ sourceType: 'script'
35
+ }
36
+ }
37
+ ]
38
+ };
39
+ var index = /*@__PURE__*/ getDefaultExportFromCjs(src);
40
+
41
+ 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.10.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
- }