Skip to content

Commit 89d6595

Browse files
committed
format
1 parent 3486add commit 89d6595

File tree

11 files changed

+14698
-6497
lines changed

11 files changed

+14698
-6497
lines changed

.eslintrc.js

Lines changed: 26 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,28 @@
11
module.exports = {
2-
env: {
3-
browser: true,
4-
es2020: true,
5-
},
6-
extends: ['plugin:@typescript-eslint/recommended'],
7-
parser: '@typescript-eslint/parser',
8-
parserOptions: {
9-
ecmaVersion: 11,
10-
sourceType: 'module',
11-
},
12-
plugins: [
13-
'@typescript-eslint',
14-
],
15-
rules: {
16-
indent: [
17-
'error', 2,
18-
{
19-
MemberExpression: 2,
20-
SwitchCase: 1,
21-
FunctionDeclaration: {
22-
parameters: 2,
23-
},
24-
},
25-
],
26-
'linebreak-style': [
27-
'error',
28-
'unix',
29-
],
30-
quotes: [
31-
'error',
32-
'single',
33-
],
34-
semi: [
35-
'error',
36-
'always',
37-
],
38-
'import/no-extraneous-dependencies': ['off'],
39-
'import/prefer-default-export': ['off'],
40-
'no-plusplus': ['off'],
41-
'object-curly-newline': ['off'],
42-
'no-restricted-syntax': ['off'],
43-
'no-continue': ['off'],
44-
'no-use-before-define': ['off'],
45-
'no-return-assign': ['off'],
46-
'no-param-reassign': ['off'],
47-
'no-extra-parens': [
48-
'error',
49-
'all',
50-
],
51-
},
2+
env: {
3+
browser: true,
4+
es2020: true,
5+
},
6+
extends: ['plugin:@typescript-eslint/recommended', 'prettier'],
7+
parser: '@typescript-eslint/parser',
8+
parserOptions: {
9+
ecmaVersion: 11,
10+
sourceType: 'module',
11+
},
12+
plugins: ['@typescript-eslint', 'prettier'],
13+
rules: {
14+
'linebreak-style': ['error', 'unix'],
15+
quotes: ['error', 'single'],
16+
semi: ['error', 'always'],
17+
'import/no-extraneous-dependencies': ['off'],
18+
'import/prefer-default-export': ['off'],
19+
'no-plusplus': ['off'],
20+
'object-curly-newline': ['off'],
21+
'no-restricted-syntax': ['off'],
22+
'no-continue': ['off'],
23+
'no-use-before-define': ['off'],
24+
'no-return-assign': ['off'],
25+
'no-param-reassign': ['off'],
26+
'no-extra-parens': ['error', 'all'],
27+
},
5228
};
53-

.github/workflows/coverage.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ jobs:
2222
- uses: coverallsapp/github-action@master
2323
with:
2424
github-token: ${{ secrets.GITHUB_TOKEN }}
25-

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"printWidth": 80
5+
}

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,3 @@ It is also possible to use [lodash.isequal](https://www.npmjs.com/package/lodash
9898
});
9999
</script>
100100
```
101-

jest.config.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
module.exports = {
2-
roots: [
3-
'./src',
4-
],
5-
testMatch: [
6-
'**/__tests__/**/*.+(ts|js)',
7-
'**/?(*.)+(spec|test).+(ts|js)',
8-
],
9-
transform: {
10-
'^.+\\.(ts)$': 'ts-jest',
11-
},
2+
roots: ['./src'],
3+
testMatch: ['**/__tests__/**/*.+(ts|js)', '**/?(*.)+(spec|test).+(ts|js)'],
4+
transform: {
5+
'^.+\\.(ts)$': 'ts-jest',
6+
},
127
};
13-

0 commit comments

Comments
 (0)