mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-19 14:46:36 +02:00
Add separate yarn lint command
This commit is contained in:
parent
8f27e03b40
commit
03eadf0288
|
@ -7,7 +7,8 @@
|
|||
"../package.json",
|
||||
"../src/types/socket-events.d.ts",
|
||||
"./js/helpers/fullnamemap.json",
|
||||
"./js/helpers/simplemap.json"
|
||||
"./js/helpers/simplemap.json",
|
||||
"../src/helper.ts"
|
||||
] /* If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. When a 'files' property is specified, only those files and those specified by 'include' are included. */,
|
||||
// "exclude": [],
|
||||
"compilerOptions": {
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
"lint:eslint": "eslint . --report-unused-disable-directives --color",
|
||||
"lint:prettier": "prettier --list-different \"**/*.*\"",
|
||||
"lint:stylelint": "stylelint --color \"client/**/*.css\"",
|
||||
"lint": "run-p --aggregate-output --continue-on-error lint:*",
|
||||
"start": "node src/dist/src/index start",
|
||||
"test": "run-p --aggregate-output --continue-on-error lint:* test:*",
|
||||
"test:mocha": "NODE_ENV=test webpack --mode=development && NODE_ENV=test TS_NODE_PROJECT='./test/tsconfig.json' nyc --nycrc-path=test/.nycrc-mocha.json mocha --require ts-node/register --colors --config=test/.mocharc.yml",
|
||||
|
|
|
@ -23,7 +23,6 @@ program
|
|||
!packages.dependencies ||
|
||||
!Object.prototype.hasOwnProperty.call(packages.dependencies, packageName)
|
||||
) {
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
||||
log.warn(`${colors.green(packageName)} is not installed.`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ const localAuth: AuthHandler = (manager, client, user, password, callback) => {
|
|||
callback(matching);
|
||||
})
|
||||
.catch((error) => {
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
||||
log.error(`Error while checking users password. Error: ${error}`);
|
||||
});
|
||||
};
|
||||
|
|
2
test/fixtures/.thelounge/sts-policies.json
vendored
2
test/fixtures/.thelounge/sts-policies.json
vendored
|
@ -3,6 +3,6 @@
|
|||
"host": "irc.example.com",
|
||||
"port": 7000,
|
||||
"duration": 3600,
|
||||
"expires": 1654038111401
|
||||
"expires": 1654038438022
|
||||
}
|
||||
]
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
] /* Specifies a list of glob patterns that match files to be included in compilation. If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. Requires TypeScript version 2.0 or later. */,
|
||||
"files": [
|
||||
"../babel.config.cjs",
|
||||
"../src/helper.ts"
|
||||
"../src/helper.ts",
|
||||
"../src/index.d.ts"
|
||||
] /* If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. When a 'files' property is specified, only those files and those specified by 'include' are included. */,
|
||||
"ts-node": {
|
||||
"files": true
|
||||
|
|
Loading…
Reference in a new issue