Skip to content

Commit 2571385

Browse files
authored
Update Various Packages, and ESLint (#230)
2 parents 8a11407 + a5aa85a commit 2571385

File tree

12 files changed

+2473
-1678
lines changed

12 files changed

+2473
-1678
lines changed

.eslintignore

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

.eslintrc.cjs

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

eslint.config.mjs

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
import { defineConfig, globalIgnores } from 'eslint/config';
2+
3+
import js from '@eslint/js';
4+
import { parser as _parser, plugin } from 'typescript-eslint';
5+
import eslintConfigPrettier from 'eslint-config-prettier/flat';
6+
import prettierPlugin from 'eslint-plugin-prettier';
7+
8+
import jest from 'eslint-plugin-jest';
9+
import globals from 'globals';
10+
11+
export default defineConfig([
12+
eslintConfigPrettier,
13+
{
14+
languageOptions: {
15+
parser: _parser,
16+
globals: {
17+
...globals.browser,
18+
...globals.node,
19+
...globals.jquery
20+
}
21+
},
22+
23+
plugins: {
24+
'@typescript-eslint': plugin,
25+
jest,
26+
js,
27+
prettier: prettierPlugin
28+
},
29+
30+
extends: [
31+
'js/recommended',
32+
'@typescript-eslint/recommended',
33+
'@typescript-eslint/eslint-recommended',
34+
'jest/recommended'
35+
],
36+
37+
rules: {
38+
'max-len': [
39+
'error',
40+
{
41+
code: 80
42+
}
43+
],
44+
45+
quotes: [
46+
'error',
47+
'single',
48+
{
49+
allowTemplateLiterals: true
50+
}
51+
],
52+
53+
'@typescript-eslint/no-unused-vars': [
54+
'error',
55+
{
56+
argsIgnorePattern: '^_',
57+
varsIgnorePattern: '^_',
58+
caughtErrorsIgnorePattern: '^_'
59+
}
60+
],
61+
62+
'@typescript-eslint/no-explicit-any': 'off',
63+
64+
'@typescript-eslint/explicit-module-boundary-types': [
65+
'error',
66+
{
67+
allowArgumentsExplicitlyTypedAsAny: true
68+
}
69+
],
70+
71+
'jest/no-conditional-expect': 'off'
72+
}
73+
},
74+
globalIgnores(['**/node_modules', '**/dist', '**/resources', '**/coverage'])
75+
]);

0 commit comments

Comments
 (0)