Skip to content

Commit 084c6ff

Browse files
committed
more es-lint and type stuff
1 parent 482796a commit 084c6ff

File tree

109 files changed

+2013
-860
lines changed

Some content is hidden

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

109 files changed

+2013
-860
lines changed

.eslintrc

Lines changed: 0 additions & 22 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/** @type {import('eslint').Linter.Config} */
2+
const config = {
3+
root: true,
4+
parser: '@typescript-eslint/parser',
5+
env: {
6+
node: true,
7+
},
8+
plugins: ['isaacscript', 'import', 'only-warn'],
9+
extends: [
10+
'eslint:recommended',
11+
'plugin:@typescript-eslint/eslint-recommended',
12+
'plugin:@typescript-eslint/recommended',
13+
'plugin:@typescript-eslint/recommended-type-checked',
14+
'plugin:@typescript-eslint/stylistic-type-checked',
15+
],
16+
parserOptions: {
17+
sourceType: 'module',
18+
tsconfigRootDir: __dirname,
19+
ecmaVersion: 'latest',
20+
project: ['./tsconfig.json'],
21+
},
22+
rules: {
23+
'@typescript-eslint/no-explicit-any': ['warn'],
24+
25+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_' }],
26+
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports', fixStyle: 'inline-type-imports' }],
27+
28+
'@typescript-eslint/no-confusing-void-expression': ['error', { ignoreArrowShorthand: true }],
29+
'@typescript-eslint/restrict-template-expressions': 'off',
30+
31+
'@typescript-eslint/ban-ts-comment': 'off',
32+
'@typescript-eslint/no-empty-function': 'off',
33+
'@typescript-eslint/no-inferrable-types': 'off',
34+
'@typescript-eslint/explicit-function-return-type': ['warn'],
35+
},
36+
};
37+
38+
module.exports = config;

esbuild.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ esbuild
4747
...builtins,
4848
],
4949
format: 'cjs',
50-
watch: !prod,
5150
target: 'es2018',
5251
logLevel: 'info',
5352
sourcemap: prod ? false : 'inline',

0 commit comments

Comments
 (0)