mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
4bb15711fb
* Initial Pass at new configs * Improved Linting/Formatting * Update execute.ts * Update main.test.ts * Change typing * Update git.ts * Update worktree.ts * Update worktree.ts * Update worktree.ts * Maybe * Update execute.ts
75 lines
1.8 KiB
JSON
75 lines
1.8 KiB
JSON
{
|
|
"plugins": ["jest", "@typescript-eslint"],
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:prettier/recommended"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": 9,
|
|
"sourceType": "module",
|
|
"project": "./tsconfig.lint.json"
|
|
},
|
|
"globals": {
|
|
"fetch": true
|
|
},
|
|
"env": {
|
|
"node": true,
|
|
"es6": true,
|
|
"jest/globals": true
|
|
},
|
|
"rules": {
|
|
"@typescript-eslint/ban-types": [
|
|
"error",
|
|
{
|
|
"types": {
|
|
"Number": {
|
|
"message": "Use number instead",
|
|
"fixWith": "number"
|
|
},
|
|
"String": {
|
|
"message": "Use string instead",
|
|
"fixWith": "string"
|
|
},
|
|
"Boolean": {
|
|
"message": "Use boolean instead",
|
|
"fixWith": "boolean"
|
|
},
|
|
"Object": {
|
|
"message": "Use object instead",
|
|
"fixWith": "object"
|
|
},
|
|
"{}": {
|
|
"message": "Use object instead",
|
|
"fixWith": "object"
|
|
},
|
|
"Symbol": {
|
|
"message": "Use symbol instead",
|
|
"fixWith": "symbol"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"@typescript-eslint/array-type": ["error", {"default": "array"}],
|
|
"@typescript-eslint/explicit-module-boundary-types": "error",
|
|
"@typescript-eslint/no-explicit-any": "error",
|
|
"@typescript-eslint/no-unused-vars": "error",
|
|
"@typescript-eslint/explicit-function-return-type": "error",
|
|
"object-shorthand": ["error", "always"],
|
|
"prefer-destructuring": [
|
|
"error",
|
|
{
|
|
"array": false,
|
|
"object": true
|
|
},
|
|
{
|
|
"enforceForRenamedProperties": false
|
|
}
|
|
],
|
|
"no-console": ["error", {"allow": ["warn", "error"]}],
|
|
"no-alert": "error",
|
|
"no-debugger": "error"
|
|
}
|
|
}
|