Skip to content

Commit

Permalink
chore: migrate from tslint to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Feb 21, 2022
1 parent 2b724eb commit cefe90b
Show file tree
Hide file tree
Showing 117 changed files with 1,966 additions and 1,708 deletions.
11 changes: 11 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules
docs
docs-references
**/lib
**/dist
**/coverage
**/.nyc_output
**/node_modules
*-lock.json
*.lock
benchmarks.*
32 changes: 32 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parser": "@typescript-eslint/parser",
"extends": ["prettier", "plugin:@typescript-eslint/recommended"],
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"env": {
"node": true,
"es6": true
},
"rules": {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-case-declarations": "off",
"no-empty": "off",
"prefer-const": "off",
"no-fallthrough": "off"
}
}
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [ 14.x, 15.x, 16.x ]
node-version: [14.x, 16.x]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:

strategy:
matrix:
node-version: [ 14.x ]
node-version: [14.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -69,7 +69,7 @@ jobs:

strategy:
matrix:
node-version: [ 14.x ]
node-version: [14.x]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:

strategy:
matrix:
node-version: [ 14.x ]
node-version: [14.x]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
- name: Automatic Rebase
uses: cirrus-actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/post-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

git update-index --again
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged $1
14 changes: 4 additions & 10 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
module.exports = {
require: [
'ts-node/register/transpile-only',
'tsconfig-paths/register',
'tasks/mocha/register'
],
require: ["ts-node/register/transpile-only", "tsconfig-paths/register", "tasks/mocha/register"],
recursive: true,
reporter: 'dot',
spec: [
'packages/**/*.spec.ts'
]
}
reporter: "dot",
spec: ["packages/**/*.spec.ts"]
};
8 changes: 6 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
dist
docs
node_modules
**/lib
**/dist
**/coverage
**/.nyc_output
**/node_modules
*-lock.json
*.lock
benchmarks.*
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"printWidth": 140,
"bracketSpacing": false
"bracketSpacing": false,
"trailingComma": "none",
"arrowParens": "always"
}
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Contributing
# Contributing

## Setup

Clone your fork of the repository
Expand Down
12 changes: 6 additions & 6 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

## Informations

Type | Version
---|---
Bug/Improvement/Question | 2.x
| Type |  Version |
| ------------------------ | -------- |
| Bug/Improvement/Question | 2.x |

****
---

## Description
A few sentences describing the overall goals of the issue.

A few sentences describing the overall goals of the issue.

## Todos

- [ ] Example (log, usecase, etc...)
- [ ] Ts.ED version (bug/question)
- [ ] Ts.ED version (bug/question)
12 changes: 7 additions & 5 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@

## Informations

Type | Status | Migration
---|---|---
Feature/Fix/Doc/Chore | Ready/In development/Hold | Yes/No
| Type |  Status | Migration |
| --------------------- | ------------------------- | --------- |
| Feature/Fix/Doc/Chore | Ready/In development/Hold | Yes/No |

****
---

## Description

A few sentences describing the overall goals of the pull request's commits.

## Usage example

Example to use your feature and to improve the documentation after merging your PR:

```
import {} from "ts-express-decorators";
```


## Todos

- [ ] Tests
Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {extends: ["@commitlint/config-conventional"]};
Loading

0 comments on commit cefe90b

Please sign in to comment.