Skip to content

Commit 65c0878

Browse files
committed
feat: get unity chengeset
1 parent 1cb1120 commit 65c0878

File tree

6 files changed

+2417
-0
lines changed

6 files changed

+2417
-0
lines changed

.eslintrc.js

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
node: true,
6+
},
7+
extends: ['plugin:import/errors', 'plugin:import/warnings'],
8+
parser: '@typescript-eslint/parser',
9+
parserOptions: {
10+
project: 'tsconfig.json',
11+
sourceType: 'module',
12+
},
13+
plugins: ['@typescript-eslint', 'import'],
14+
rules: {
15+
'@typescript-eslint/adjacent-overload-signatures': 'error',
16+
'@typescript-eslint/no-empty-function': 'error',
17+
'@typescript-eslint/no-empty-interface': 'warn',
18+
'@typescript-eslint/no-floating-promises': 'error',
19+
'@typescript-eslint/no-namespace': 'error',
20+
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
21+
'@typescript-eslint/prefer-for-of': 'warn',
22+
'@typescript-eslint/triple-slash-reference': 'error',
23+
'@typescript-eslint/unified-signatures': 'warn',
24+
'comma-dangle': ['warn', 'always-multiline'],
25+
'constructor-super': 'error',
26+
eqeqeq: ['warn', 'always'],
27+
'import/no-unresolved': 0, // TODO - sync with tsconfig somehow
28+
'import/no-deprecated': 'warn',
29+
'import/no-extraneous-dependencies': 'error',
30+
'import/no-unassigned-import': 'warn',
31+
'no-cond-assign': 'error',
32+
'no-duplicate-case': 'error',
33+
'no-duplicate-imports': 'error',
34+
'no-empty': [
35+
'error',
36+
{
37+
allowEmptyCatch: true,
38+
},
39+
],
40+
'no-invalid-this': 'error',
41+
'no-new-wrappers': 'error',
42+
'no-param-reassign': 'error',
43+
'no-redeclare': 'error',
44+
'no-sequences': 'error',
45+
'no-shadow': [
46+
'error',
47+
{
48+
hoist: 'all',
49+
},
50+
],
51+
'no-throw-literal': 'error',
52+
'no-unsafe-finally': 'error',
53+
'no-unused-labels': 'error',
54+
'no-var': 'warn',
55+
'no-void': 'error',
56+
'prefer-const': 'warn',
57+
},
58+
settings: {
59+
jsdoc: {
60+
tagNamePreference: {
61+
returns: 'return',
62+
},
63+
},
64+
},
65+
};

0 commit comments

Comments
 (0)