Skip to content

Commit b6dbd23

Browse files
Lint Fix (#1408)
Lint bug Fix
1 parent f01815b commit b6dbd23

File tree

15 files changed

+31
-33
lines changed

15 files changed

+31
-33
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ typings/
2424
_config.yml
2525
.classpath
2626
.DS_Store
27-
.eslintrc.json
2827
.gitattributes
2928
.gitignore
3029
.idea

.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"plugin:@angular-eslint/template/process-inline-templates"
2424
],
2525
"rules": {
26+
"@angular-eslint/component-selector": ["error", { "prefix": "rtl", "style": "kebab-case", "type": "element" }],
27+
"@angular-eslint/directive-selector": ["error", { "style": "camelCase", "type": "attribute" }],
2628
"@angular-eslint/consistent-component-styles": "off",
2729
"@angular-eslint/prefer-on-push-component-change-detection": "off",
2830
"@angular-eslint/prefer-standalone": "off",
@@ -190,8 +192,6 @@
190192
],
191193
"rules": {
192194
"@angular-eslint/arrow-body-style": "off",
193-
"@angular-eslint/component-selector": ["error", { "prefix": "rtl", "style": "kebab-case", "type": "element" }],
194-
"@angular-eslint/directive-selector": ["error", { "style": "camelCase", "type": "attribute" }],
195195
"@angular-eslint/template/accessibility-elements-content": "off",
196196
"@angular-eslint/template/accessibility-interactive-supports-focus": "off",
197197
"@angular-eslint/template/button-has-type": "off",

.github/workflows/checks.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,9 @@ jobs:
5959
if: steps.cache-npm-packages.outputs.cache-hit != 'true'
6060
run: npm ci --legacy-peer-deps
6161

62-
- name: Lint Scripts
62+
- name: Lint Src and Server
6363
run: npm run lint
6464

65-
- name: Lint Server Script
66-
run: npm run lintServer
67-
6865
test:
6966
name: Test
7067
runs-on: ubuntu-latest

.vscode/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"eslint.enable": true,
3+
"eslint.validate": [
4+
"typescript",
5+
"HTML"
6+
],
7+
"eslint.options": {
8+
"configFile": ".eslintrc.json"
9+
},
10+
"editor.codeActionsOnSave": {
11+
"source.fixAll.eslint": "explicit"
12+
}
13+
}

angular.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,6 @@
111111
],
112112
"scripts": []
113113
}
114-
},
115-
"lint": {
116-
"builder": "@angular-eslint/builder:lint",
117-
"options": {
118-
"eslintConfig": ".eslintrc.json",
119-
"lintFilePatterns": [
120-
"src/**/*.ts",
121-
"src/**/*.html"
122-
]
123-
}
124114
}
125115
}
126116
}

backend/controllers/cln/getInfo.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import request from 'request-promise';
2-
import { Database } from '../../utils/database.js';
32
import { Logger } from '../../utils/logger.js';
43
import { Common } from '../../utils/common.js';
54
import { CLWSClient } from './webSocketClient.js';
65
let options = null;
76
const logger = Logger;
87
const common = Common;
98
const clWsClient = CLWSClient;
10-
const databaseService = Database;
119
export const getInfo = (req, res, next) => {
1210
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'GetInfo', msg: 'Getting Core Lightning Node Information..' });
1311
common.logEnvVariables(req);

backend/controllers/eclair/getInfo.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import request from 'request-promise';
2-
import { Database } from '../../utils/database.js';
32
import { Logger } from '../../utils/logger.js';
43
import { Common } from '../../utils/common.js';
54
import { ECLWSClient } from './webSocketClient.js';
65
let options = null;
76
const logger = Logger;
87
const common = Common;
98
const eclWsClient = ECLWSClient;
10-
const databaseService = Database;
119
export const getInfo = (req, res, next) => {
1210
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'GetInfo', msg: 'Getting Eclair Node Information..' });
1311
common.logEnvVariables(req);

backend/controllers/lnd/getInfo.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import request from 'request-promise';
2-
import { Database } from '../../utils/database.js';
32
import { Logger } from '../../utils/logger.js';
43
import { Common } from '../../utils/common.js';
54
import { LNDWSClient } from './webSocketClient.js';
65
let options = null;
76
const logger = Logger;
87
const common = Common;
98
const lndWsClient = LNDWSClient;
10-
const databaseService = Database;
119
export const getInfo = (req, res, next) => {
1210
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'GetInfo', msg: 'Getting LND Node Information..' });
1311
common.logEnvVariables(req);

eslint.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { FlatCompat } from '@eslint/eslintrc';
2+
import { dirname } from 'path';
3+
import { fileURLToPath } from 'url';
4+
5+
const compat = new FlatCompat({
6+
baseDirectory: dirname(fileURLToPath(import.meta.url))
7+
});
8+
9+
export default [
10+
...compat.extends('./.eslintrc.json')
11+
];

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)