Skip to content

Commit 9ae2089

Browse files
authored
Merge pull request #1831 from fzuleta/feature/es-lint
Implemented Eslint to remove deprecated Tslint
2 parents 550ac73 + 1724115 commit 9ae2089

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+6125
-1124
lines changed

.eslintrc

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint"
6+
],
7+
"extends": [
8+
"eslint:recommended",
9+
"prettier",
10+
"plugin:@typescript-eslint/recommended",
11+
"plugin:prettier/recommended"
12+
],
13+
"rules": {
14+
"prettier/prettier": ["error", {
15+
"singleQuote": true,
16+
"trailingComma": "all",
17+
18+
"endOfLine": "auto",
19+
"arrowParens": "avoid",
20+
"tabWidth": 2
21+
}],
22+
23+
"arrow-body-style": "off",
24+
"prefer-arrow-callback": "off",
25+
26+
"@typescript-eslint/array-type": 0,
27+
"@typescript-eslint/no-inferrable-types": "off",
28+
"@typescript-eslint/ban-types": "off",
29+
"@typescript-eslint/no-unused-vars": "off",
30+
31+
"arrow-parens": "off",
32+
"curly": "off",
33+
"no-case-declarations": "off",
34+
35+
"quotes": "off",
36+
"@typescript-eslint/quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
37+
"prefer-rest-params": "off",
38+
"no-bitwise": "off",
39+
"no-console": "off",
40+
"no-empty": ["error", { "allowEmptyCatch": true }],
41+
42+
"@typescript-eslint/no-var-requires": "off",
43+
"@typescript-eslint/no-non-null-assertion": "off",
44+
"@typescript-eslint/no-explicit-any": "off",
45+
46+
"no-unused-expressions": "off",
47+
"@typescript-eslint/no-unused-expressions": "off",
48+
49+
"space-before-function-paren": "off"
50+
},
51+
"env": {
52+
"browser": true,
53+
"amd": true,
54+
"node": true
55+
}
56+
}
57+

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.d.ts

.prettierrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"singleQuote": true,
3-
"trailingComma": "all"
3+
"trailingComma": "all",
4+
"endOfLine": "auto",
5+
"arrowParens": "avoid",
6+
"tabWidth": 2
47
}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Refer to the [Git manual](https://git-scm.com/doc) for any information about `gi
5050

5151

5252
## Regarding TypeScript
53-
This library is written in TypeScript with tslint, prettier, and the tsc transpiler. These tools will help during testing to notice improper logic before committing and sending a pull request.
53+
This library is written in TypeScript with eslint, prettier, and the tsc transpiler. These tools will help during testing to notice improper logic before committing and sending a pull request.
5454

5555
Some rules regarding TypeScript:
5656

0 commit comments

Comments
 (0)