Commit d78b340d authored by Sophia's avatar Sophia

add linting and formatting utilities

parent f85cd627
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
sourceType: "module",
},
plugins: ["@typescript-eslint/eslint-plugin"],
extends: ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: [".eslintrc.js"],
rules: {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
},
};
{
"singleQuote": false,
"trailingComma": "all",
"arrowParens": "avoid",
"printWidth": 160,
"tabWidth": 4,
"endOfLine": "lf"
}
{
"name": "ygoreplay-plugin",
"version": "1.0.0",
"description": "A plugin for SRVPro-like servers to publish useful statistical data to the storage server automatically",
"main": "index.js",
"repository": "git@git.mycard.moe:mycard/ygoreplay-plugin.git",
"author": "Sophia <beyondthesophia@gmail.com>",
"license": "MIT",
"private": true
"name": "ygoreplay-plugin",
"version": "1.0.0",
"description": "A plugin for SRVPro-like servers to publish useful statistical data to the storage server automatically",
"main": "index.js",
"repository": "git@git.mycard.moe:mycard/ygoreplay-plugin.git",
"author": "Sophia <beyondthesophia@gmail.com>",
"license": "MIT",
"private": true,
"devDependencies": {
"@types/node": "^16.10.3",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"eslint": "^7.32.0",
"eslint-plugin-prettier": "^4.0.0",
"prettier": "^2.4.1",
"typescript": "^4.4.3"
},
"dependencies": {
"form-data": "^4.0.0",
"moment": "^2.29.1",
"node-fetch": "^3.0.0"
}
}
{
"compilerOptions": {
"module": "commonjs",
"declaration": false,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"target": "es2017",
"sourceMap": false,
"outDir": "./plugins",
"baseUrl": "./",
"incremental": true,
"tsBuildInfoFile": "./tsconfig.tsbuildinfo",
},
"exclude": ["node_modules"]
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment