@hyperupcall/eslint-config 2.0.0 → 2.0.2

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.
@@ -0,0 +1,2 @@
1
+ rules:
2
+ header-trim: [2, 'always']
package/.cz.toml ADDED
@@ -0,0 +1,7 @@
1
+ [tool.commitizen]
2
+ name = 'cz_customize'
3
+ tag_format = 'v$version'
4
+ version_scheme = 'semver2'
5
+ version_provider = 'scm'
6
+ update_changelog_on_bump = true
7
+ major_version_zero = true
package/.ls-lint.yml ADDED
@@ -0,0 +1,31 @@
1
+ ls:
2
+ .vscode:
3
+ .*: 'exists:0'
4
+ .json: 'regex:(settings|launch|tasks|extensions|keybindings)'
5
+
6
+ assets:
7
+ .*: 'exists:0'
8
+ .png: 'kebab-case'
9
+ .jpg: 'kebab-case'
10
+ .jpeg: 'kebab-case'
11
+ .svg: 'kebab-case'
12
+ .ico: 'kebab-case'
13
+
14
+ docs:
15
+ .*: 'exists:0'
16
+ .md: 'kebab-case'
17
+
18
+ language-configuration:
19
+ .*: 'exists:0'
20
+ .language-configuration.json: 'kebab-case'
21
+
22
+ scripts:
23
+ .js: 'kebab-case'
24
+
25
+ syntaxes:
26
+ .*: 'exists:0'
27
+ .tmLanguage.json: 'kebab-case'
28
+
29
+ ignore:
30
+ - 'node_modules'
31
+ - '.git'
package/.yamlfmt.yaml ADDED
@@ -0,0 +1,17 @@
1
+ line_ending: 'lf'
2
+ doublestar: true
3
+ gitignore_excludes: false
4
+ exclude:
5
+ - "**/.data/**"
6
+ - '**/node_modules/**'
7
+ - '**/target/**'
8
+ formatter:
9
+ type: 'basic'
10
+ indent: 2
11
+ include_document_start: false
12
+ retain_line_breaks_single: true
13
+ disallow_anchors: false
14
+ indentless_arrays: true
15
+ trim_trailing_whitespace: true
16
+ eof_newline: true
17
+ force_quote_style: "single"
package/.yamllint.yaml ADDED
@@ -0,0 +1,9 @@
1
+ extends: 'default'
2
+ rules:
3
+ document-start: 'disable'
4
+ ignore:
5
+ - '.data/'
6
+ - 'vendor/'
7
+ - 'node_modules/'
8
+ - 'pnpm-lock.yaml'
9
+ - '.venv'
package/dev.toml ADDED
@@ -0,0 +1,5 @@
1
+ [rules]
2
+ 'nodejs/eslint/eslint-must-have-content' = 'off'
3
+ 'nodejs/eslint/eslint-must-not-have-dependencies' = 'off'
4
+ 'nodejs/prettier/package-json-must-have-correct-shape' = 'off'
5
+ 'nodejs/prettier/prettier-must-not-have-dependencies' = 'off'
package/index.js CHANGED
@@ -134,11 +134,20 @@ export default defineConfig([
134
134
  'error',
135
135
  {
136
136
  groups: ['r', 'g', 'b'],
137
- customGroups: {
138
- r: '^r$',
139
- g: '^g$',
140
- b: '^b$',
141
- },
137
+ customGroups: [
138
+ {
139
+ groupName: 'r',
140
+ elementNamePattern: '^r$',
141
+ },
142
+ {
143
+ groupName: 'g',
144
+ elementNamePattern: '^g$',
145
+ },
146
+ {
147
+ groupName: 'b',
148
+ elementNamePattern: '^b$',
149
+ },
150
+ ],
142
151
  useConfigurationIf: {
143
152
  allNamesMatchPattern: '^r|g|b$',
144
153
  },
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@hyperupcall/eslint-config",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "type": "module",
5
5
  "description": "Edwin's ESLint configuration.",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/fox-land/eslint-config-hyperupcall.git"
8
+ "url": "https://github.com/hyperupcall-projects/eslint-config"
9
9
  },
10
10
  "bugs": {
11
- "url": "https://github.com/fox-land/eslint-config-hyperupcall/issues"
11
+ "url": "https://github.com/hyperupcall-projects/eslint-config/issues"
12
12
  },
13
13
  "author": "Edwin Kofler <edwin@kofler.dev> (https://edwinkofler.com)",
14
14
  "license": "MPL-2.0",
@@ -20,7 +20,7 @@
20
20
  "@eslint/js": ">=9.0.0",
21
21
  "@eslint/json": ">=0.11.0",
22
22
  "@eslint/markdown": ">=6.0.0",
23
- "eslint": "^9.0.0",
23
+ "eslint": ">=9.0.0",
24
24
  "eslint-config-prettier": ">=9.1.0",
25
25
  "eslint-plugin-import-x": ">=4.0.0",
26
26
  "eslint-plugin-n": ">=17.0.0",
@@ -35,7 +35,7 @@
35
35
  "globals": "^17.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@hyperupcall/scripts-nodejs": "0.7.0",
38
+ "@hyperupcall/scripts-nodejs": "0.9.0",
39
39
  "@types/node": "^25.0.6",
40
40
  "typescript": "^5.9.3"
41
41
  },
@@ -45,8 +45,7 @@
45
45
  "prettier": "@hyperupcall/scripts-nodejs/config-prettier.js",
46
46
  "scripts": {
47
47
  "typecheck": "tsc --project ./tsconfig.json",
48
- "format": "prettier --check .",
49
- "format:fix": "prettier --write .",
50
- "lint": "eslint ."
48
+ "format": "hyperupcall-scripts-nodejs format",
49
+ "lint": "hyperupcall-scripts-nodejs lint"
51
50
  }
52
51
  }
@@ -1,4 +1,4 @@
1
1
  onlyBuiltDependencies:
2
2
  - unrs-resolver
3
3
  publicHoistPattern:
4
- - "prettier"
4
+ - 'prettier'
package/project.toml DELETED
@@ -1,2 +0,0 @@
1
- [repository-lint]
2
- ignoredChecks = ['nodejs/eslint']