@hyperupcall/eslint-config 1.2.0 → 1.3.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/README.md CHANGED
@@ -6,8 +6,8 @@ Edwin's [ESLint](https://eslint.org) configuration.
6
6
 
7
7
  ```sh
8
8
  pnpm i -D \
9
- eslint eslint-config-prettier @hyperupcall/eslint-config \
10
- eslint-plugin-import eslint-plugin-markdown eslint-plugin-promise \
9
+ eslint @eslint/markdown @eslint/css @eslint/json eslint-config-prettier @hyperupcall/eslint-config \
10
+ eslint-plugin-import eslint-plugin-promise \
11
11
  eslint-plugin-n eslint-plugin-unicorn eslint-plugin-security \
12
12
  @eslint-community/eslint-plugin-eslint-comments eslint-plugin-regexp \
13
13
  eslint-plugin-perfectionist eslint-plugin-no-unsanitized eslint-plugin-mdx
@@ -15,10 +15,8 @@ pnpm i -D \
15
15
 
16
16
  ## Usage
17
17
 
18
- In `.eslintrc.json`:
18
+ In `eslint.config.js`:
19
19
 
20
- ```json
21
- {
22
- "extends": ["@hyperupcall/eslint-config"]
23
- }
20
+ ```js
21
+ export { default } from '@hyperupcall/eslint-config'
24
22
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperupcall/eslint-config",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "Edwin's ESLint configuration.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -23,7 +23,9 @@
23
23
  ],
24
24
  "peerDependencies": {
25
25
  "@eslint-community/eslint-plugin-eslint-comments": ">=4.0.0",
26
+ "@eslint/css": "^0.5.0",
26
27
  "@eslint/js": "^9.0.0",
28
+ "@eslint/json": "^0.11.0",
27
29
  "eslint": "^9.0.0",
28
30
  "eslint-config-prettier": ">=9.1.0",
29
31
  "eslint-plugin-import": ">=2.29.0",
@@ -38,38 +40,25 @@
38
40
  "eslint-plugin-unicorn": ">=55.0.0"
39
41
  },
40
42
  "devDependencies": {
41
- "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
42
- "@eslint/js": "^9.9.0",
43
- "@hyperupcall/eslint-config": "^0.11.0",
43
+ "@hyperupcall/eslint-config": "^1.2.0",
44
44
  "@hyperupcall/markdownlint-config": "^0.3.2",
45
- "@hyperupcall/prettier-config": "^0.8.0",
46
- "@rollup/plugin-node-resolve": "^15.3.0",
47
- "eslint": "^9.9.0",
48
- "eslint-config-prettier": "^9.1.0",
49
- "eslint-plugin-import": "^2.29.1",
50
- "eslint-plugin-markdown": "^5.1.0",
51
- "eslint-plugin-mdx": "^3.1.5",
52
- "eslint-plugin-n": "^17.10.2",
53
- "eslint-plugin-no-unsanitized": "^4.0.2",
54
- "eslint-plugin-perfectionist": "^3.2.0",
55
- "eslint-plugin-promise": "^7.1.0",
56
- "eslint-plugin-regexp": "^2.6.0",
57
- "eslint-plugin-security": "^3.0.1",
58
- "eslint-plugin-unicorn": "^55.0.0",
59
- "markdownlint": "^0.34.0",
60
- "prettier": "^3.3.3",
45
+ "@hyperupcall/prettier-config": "^0.9.1",
46
+ "@rollup/plugin-node-resolve": "^16.0.1",
47
+ "@types/node": "^22.15.17",
48
+ "markdownlint": "^0.37.4",
49
+ "prettier": "^3.5.3",
61
50
  "prettier-plugin-pkg": "^0.18.1",
62
- "rollup": "^4.24.4",
63
- "typescript": "^5.6.3"
51
+ "rollup": "^4.36.0",
52
+ "typescript": "^5.8.2"
64
53
  },
65
54
  "dependencies": {
66
- "globals": "^15.9.0"
55
+ "globals": "^16.0.0"
67
56
  },
68
57
  "markdownlint-cli2": {
69
58
  "extends": "./node_modules/@hyperupcall/markdownlint-config/.markdownlint.json"
70
59
  },
71
60
  "private": false,
72
- "prettier": "@hyperupcall/scripts-nodejs/config-prettier.js",
61
+ "prettier": "@hyperupcall/prettier-config",
73
62
  "scripts": {
74
63
  "build": "rm -rf ./output && rollup --config ./rollup.config.js && tsc --project ./tsconfig.json",
75
64
  "format": "prettier --check .",
package/output/index.cjs DELETED
@@ -1,65 +0,0 @@
1
- 'use strict';
2
-
3
- require('globals');
4
- var langJs = require('@eslint/js');
5
- var langMarkdown = require('@eslint/markdown');
6
- var langMdx = require('eslint-plugin-mdx');
7
- var pluginPromise = require('eslint-plugin-promise');
8
- var pluginNode = require('eslint-plugin-n');
9
- var pluginSecurity = require('eslint-plugin-security');
10
- var pluginComments = require('@eslint-community/eslint-plugin-eslint-comments/configs');
11
- var pluginUnicorn = require('eslint-plugin-unicorn');
12
- var pluginRegexp = require('eslint-plugin-regexp');
13
- var pluginNoUnsanitized = require('eslint-plugin-no-unsanitized');
14
- var pluginPerfectionist = require('eslint-plugin-perfectionist');
15
- var configPrettier = require('eslint-config-prettier');
16
-
17
- // TODO: import-x
18
-
19
- // const config = {
20
- // "extends": [
21
- // "plugin:import/recommended",
22
- // "plugin:mdx/recommended",
23
- // ],
24
- // "env": {
25
- // "shared-node-browser": true,
26
- // "es2022": true
27
- // },
28
- // "parserOptions": {
29
- // "ecmaVersion": 2022,
30
- // "sourceType": "module"
31
- // },
32
- // "overrides": [
33
- // {
34
- // "files": ["*.cjs"],
35
- // "env": {
36
- // "commonjs": true
37
- // },
38
- // "parserOptions": {
39
- // "sourceType": "script"
40
- // }
41
- // }
42
- // ]
43
- // }
44
-
45
- const config = [
46
- langJs.configs.recommended,
47
- ...langMarkdown.configs.recommended,
48
- {
49
- ...langMdx.flat,
50
- processor: langMdx.createRemarkProcessor({
51
- lintCodeBlocks: true,
52
- }),
53
- },
54
- pluginPromise.configs['flat/recommended'],
55
- pluginNode.configs["flat/recommended-script"],
56
- pluginSecurity.configs.recommended,
57
- pluginComments.recomended,
58
- pluginUnicorn.configs['flat/recommended'],
59
- pluginRegexp.configs["flat/recommended"],
60
- pluginNoUnsanitized.configs.recommended,
61
- pluginPerfectionist.configs['recommended-natural'],
62
- configPrettier
63
- ];
64
-
65
- module.exports = config;
package/output/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export default config;
2
- declare const config: any[];
package/output/index.mjs DELETED
@@ -1,63 +0,0 @@
1
- import 'globals';
2
- import langJs from '@eslint/js';
3
- import langMarkdown from '@eslint/markdown';
4
- import langMdx from 'eslint-plugin-mdx';
5
- import pluginPromise from 'eslint-plugin-promise';
6
- import pluginNode from 'eslint-plugin-n';
7
- import pluginSecurity from 'eslint-plugin-security';
8
- import pluginComments from '@eslint-community/eslint-plugin-eslint-comments/configs';
9
- import pluginUnicorn from 'eslint-plugin-unicorn';
10
- import pluginRegexp from 'eslint-plugin-regexp';
11
- import pluginNoUnsanitized from 'eslint-plugin-no-unsanitized';
12
- import pluginPerfectionist from 'eslint-plugin-perfectionist';
13
- import configPrettier from 'eslint-config-prettier';
14
-
15
- // TODO: import-x
16
-
17
- // const config = {
18
- // "extends": [
19
- // "plugin:import/recommended",
20
- // "plugin:mdx/recommended",
21
- // ],
22
- // "env": {
23
- // "shared-node-browser": true,
24
- // "es2022": true
25
- // },
26
- // "parserOptions": {
27
- // "ecmaVersion": 2022,
28
- // "sourceType": "module"
29
- // },
30
- // "overrides": [
31
- // {
32
- // "files": ["*.cjs"],
33
- // "env": {
34
- // "commonjs": true
35
- // },
36
- // "parserOptions": {
37
- // "sourceType": "script"
38
- // }
39
- // }
40
- // ]
41
- // }
42
-
43
- const config = [
44
- langJs.configs.recommended,
45
- ...langMarkdown.configs.recommended,
46
- {
47
- ...langMdx.flat,
48
- processor: langMdx.createRemarkProcessor({
49
- lintCodeBlocks: true,
50
- }),
51
- },
52
- pluginPromise.configs['flat/recommended'],
53
- pluginNode.configs["flat/recommended-script"],
54
- pluginSecurity.configs.recommended,
55
- pluginComments.recomended,
56
- pluginUnicorn.configs['flat/recommended'],
57
- pluginRegexp.configs["flat/recommended"],
58
- pluginNoUnsanitized.configs.recommended,
59
- pluginPerfectionist.configs['recommended-natural'],
60
- configPrettier
61
- ];
62
-
63
- export { config as default };