Skip to content

Commit 169bf10

Browse files
authored
Merge pull request #38 from CodinGame/fix-eslint-ts-config
Fix eslint ts config
2 parents 59e4e51 + beb44eb commit 169bf10

File tree

11 files changed

+72
-528
lines changed

11 files changed

+72
-528
lines changed

.eslintrc.js

Lines changed: 2 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -4,106 +4,6 @@ module.exports = {
44
es6: true
55
},
66
extends: [
7-
'standard'
8-
],
9-
globals: {
10-
Atomics: 'readonly',
11-
SharedArrayBuffer: 'readonly'
12-
},
13-
parser: '@typescript-eslint/parser',
14-
parserOptions: {
15-
ecmaVersion: 2018,
16-
sourceType: 'module',
17-
project: './tsconfig.json'
18-
},
19-
plugins: [
20-
'@typescript-eslint',
21-
'unused-imports'
22-
],
23-
rules: {
24-
'@typescript-eslint/member-delimiter-style': [
25-
'error',
26-
{
27-
multiline: {
28-
delimiter: 'none'
29-
},
30-
singleline: {
31-
delimiter: 'comma'
32-
}
33-
}
34-
],
35-
'@typescript-eslint/no-misused-promises': [
36-
'error',
37-
{ checksVoidReturn: false }
38-
],
39-
'no-unused-vars': 'off',
40-
'@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true }],
41-
'no-use-before-define': 'off',
42-
'@typescript-eslint/no-use-before-define': [
43-
'error',
44-
{
45-
functions: false,
46-
classes: false,
47-
variables: false
48-
}
49-
],
50-
'@typescript-eslint/no-useless-constructor': 'error',
51-
'@typescript-eslint/type-annotation-spacing': 'error',
52-
'import/named': 'off',
53-
'import/namespace': 'off',
54-
'import/no-unresolved': 'off',
55-
'import/order': [
56-
'warn',
57-
{
58-
groups: ['unknown', 'external', 'internal', 'builtin', 'index', 'sibling', 'parent'],
59-
'newlines-between': 'never'
60-
}
61-
],
62-
'no-console': ['warn', { allow: ['warn', 'error', 'debug', 'info'] }],
63-
'no-useless-constructor': 'off',
64-
'unused-imports/no-unused-imports': 'warn',
65-
'no-redeclare': 'off',
66-
'@typescript-eslint/no-redeclare': ['error'],
67-
'@typescript-eslint/no-unnecessary-condition': 'warn',
68-
'@typescript-eslint/explicit-module-boundary-types': [
69-
'warn',
70-
{
71-
allowArgumentsExplicitlyTypedAsAny: true
72-
}
73-
],
74-
semi: 'off',
75-
'@typescript-eslint/semi': [
76-
'error', 'never'
77-
],
78-
'eslint/no-extra-semi': 'off',
79-
'@typescript-eslint/no-extra-semi': [
80-
'warn'
81-
],
82-
'@typescript-eslint/strict-boolean-expressions': [
83-
'warn',
84-
{
85-
allowString: false,
86-
allowNumber: false,
87-
allowNullableObject: false
88-
}
89-
],
90-
'@typescript-eslint/no-explicit-any': [
91-
'error',
92-
{
93-
ignoreRestArgs: true
94-
}
95-
],
96-
'@typescript-eslint/no-unnecessary-type-assertion': ['error'],
97-
'@typescript-eslint/no-floating-promises': [
98-
'error'
99-
],
100-
'no-void': [
101-
'error',
102-
{
103-
allowAsStatement: true
104-
}
105-
],
106-
"indent": "off",
107-
"@typescript-eslint/indent": ["error", 2]
108-
}
7+
'@codingame'
8+
]
1099
}

.github/workflows/check_build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Check build
2-
on: [push]
2+
on:
3+
push:
4+
branches-ignore:
5+
- main
36

47
jobs:
58
check:

0 commit comments

Comments
 (0)