@electrum-cash/eslint-config 1.1.0-development → 1.1.0-development.12710849243-development

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 General Protocols Pte Ltd
3
+ Copyright (c) 2026 Electrum-Cash Contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # @electrum-cash/eslint-config
2
2
 
3
- This repository contains an ESLint configuration for TypeScript projects in the `@electrum-cash/*` NPM package namespace. It is based on and extends the official Airbnb ESLint configuration and its TypeScript equivalent.
3
+ This repository contains an ESLint configuration for TypeScript projects in the `@electrum-cash/*` NPM package namespace. It is based on and extends a community maintained version of the official Airbnb ESLint configuration and its TypeScript equivalent.
4
4
 
5
- ## Dependencies
5
+ ## Installation
6
+
7
+ ### Dependencies
6
8
 
7
9
  Before you can use this you need to install the peer depenencies required by the configuration setup.
8
10
 
@@ -22,8 +24,16 @@ After installing the dependencies, you can install the module containing the con
22
24
  npm install --save-dev https://gitlab.com/electrum-cash/eslint-config
23
25
  ```
24
26
 
25
- and put the following `eslint.config.mjs` in your project root directory:
27
+ ### Configuration
28
+
29
+ Place the following `eslint.config.mjs` in your project root directory:
26
30
 
27
31
  ```ts
28
32
  export { default } from '@electrum-cash/eslint-config';
29
33
  ```
34
+
35
+ Then add the following instruction to the `scripts` section of the `package.json` file:
36
+
37
+ ```
38
+ "lint": "eslint"
39
+ ```
package/eslint.config.mjs CHANGED
@@ -151,7 +151,7 @@ export default
151
151
  // https://eslint.org/docs/rules/no-inline-comments
152
152
  'no-inline-comments': [ 'warn' ],
153
153
 
154
- // disabllow single-line blocks
154
+ // disallow single-line blocks
155
155
  // https://eslint.org/docs/rules/no-unexpected-multiline
156
156
  'no-unexpected-multiline': [ 'off' ],
157
157
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electrum-cash/eslint-config",
3
- "version": "1.1.0-development",
3
+ "version": "1.1.0-development.12710849243-development",
4
4
  "description": "ESLint configuration for Electrum Cash projects",
5
5
  "type": "module",
6
6
  "main": "eslint.config.mjs",
@@ -11,7 +11,11 @@
11
11
  "eslint.config.mjs"
12
12
  ],
13
13
  "scripts": {
14
- "syntax": "eslint eslint.config.mjs"
14
+ "build": "true",
15
+ "lint": "eslint",
16
+ "syntax": "true",
17
+ "spellcheck": "cspell eslint.config.mjs",
18
+ "test": "vitest --passWithNoTests --dir test/ --test-timeout=15000 --run --coverage"
15
19
  },
16
20
  "repository": {
17
21
  "type": "git",
@@ -31,19 +35,22 @@
31
35
  "@stylistic/eslint-plugin": "^4.4.1",
32
36
  "@typescript-eslint/eslint-plugin": "^8.53.0",
33
37
  "@typescript-eslint/parser": "^8.53.0",
38
+ "@vitest/coverage-v8": "^4.0.17",
39
+ "cspell": "^9.6.0",
34
40
  "eslint": "^9.39.2",
35
41
  "eslint-import-resolver-typescript": "^3.10.1",
36
42
  "eslint-plugin-import": "^2.32.0",
37
43
  "globals": "^17.0.0",
38
44
  "typescript": "^5.9.3",
39
- "typescript-eslint": "^8.53.0"
45
+ "typescript-eslint": "^8.53.0",
46
+ "vitest": "^4.0.17"
40
47
  },
41
48
  "peerDependencies": {
42
- "eslint": "^9.0.0",
43
- "typescript-eslint": "^8.0.0",
49
+ "@chalp/eslint-airbnb": "^1.3.0",
44
50
  "@stylistic/eslint-plugin": "^5.0.0",
45
51
  "@typescript-eslint/eslint-plugin": "^8.0.0",
46
52
  "@typescript-eslint/parser": "^8.0.0",
47
- "@chalp/eslint-airbnb": "^1.3.0"
53
+ "eslint": "^9.0.0",
54
+ "typescript-eslint": "^8.0.0"
48
55
  }
49
56
  }