Add separate yarn lint command

This commit is contained in:
Max Leiter 2022-05-31 15:21:16 -07:00
parent 8f27e03b40
commit 03eadf0288
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA
6 changed files with 7 additions and 4 deletions

View file

@ -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": {

View file

@ -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",

View file

@ -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);
}

View file

@ -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}`);
});
};

View file

@ -3,6 +3,6 @@
"host": "irc.example.com",
"port": 7000,
"duration": 3600,
"expires": 1654038111401
"expires": 1654038438022
}
]

View file

@ -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