Skip to content

Commit 972c7b4

Browse files
committed
fix: Use common ts/eslint config
1 parent 185b57b commit 972c7b4

File tree

2 files changed

+4
-116
lines changed

2 files changed

+4
-116
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
}

tsconfig.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,27 @@
11
{
2+
"extends": "@codingame/tsconfig",
23
"compilerOptions": {
3-
"allowSyntheticDefaultImports": true,
4-
"strict": true,
54
"baseUrl": "./app",
6-
"esModuleInterop": true,
75
"noImplicitOverride": true,
8-
"forceConsistentCasingInFileNames": true,
96
"isolatedModules": true,
107
"lib": [
118
"dom",
129
"dom.iterable",
1310
"esnext"
1411
],
1512
"module": "esnext",
16-
"moduleResolution": "node",
1713
"noEmit": true,
1814
"paths": {
1915
"app/*": [
2016
"*"
2117
]
2218
},
23-
"resolveJsonModule": true,
2419
"sourceMap": true,
2520
"target": "es5"
2621
},
2722
"include": ["src", "update-extensions.ts", "rollup.config.ts"],
2823
"exclude": [
2924
"dist",
3025
"node_modules"
31-
],
32-
"ts-node": {
33-
// these options are overrides used only by ts-node
34-
// same as our --compilerOptions flag and our TS_NODE_COMPILER_OPTIONS environment variable
35-
"compilerOptions": {
36-
"module": "commonjs"
37-
}
38-
}
26+
]
3927
}

0 commit comments

Comments
 (0)