Skip to content

Commit 01eed21

Browse files
committed
Fixed linting file deprecations and unified config to one file without actual configurational changes
1 parent f1943a3 commit 01eed21

File tree

5 files changed

+45
-47
lines changed

5 files changed

+45
-47
lines changed

.eslintignore

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

.eslintrc.json

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

.prettierignore

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

.prettierrc

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

eslint.config.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import typescriptParser from '@typescript-eslint/parser';
4+
import stylisticJs from '@stylistic/eslint-plugin-js';
5+
6+
export default [
7+
eslint.configs.recommended,
8+
...tseslint.configs.recommended,
9+
{
10+
ignores: ['dist', 'node_modules'],
11+
plugins: {
12+
'@stylistic/js': stylisticJs,
13+
},
14+
languageOptions: {
15+
sourceType: 'module',
16+
ecmaVersion: 2024,
17+
parser: typescriptParser
18+
},
19+
rules: {
20+
'strict': 'error',
21+
'no-var': 'error',
22+
'array-callback-return': 'error',
23+
'yoda': 'error',
24+
'@stylistic/js/indent': [
25+
'error',
26+
4,
27+
],
28+
'@stylistic/js/linebreak-style': [
29+
'error',
30+
'unix'
31+
],
32+
'@stylistic/js/quotes': [
33+
'error',
34+
'double'
35+
],
36+
'@stylistic/js/semi': [
37+
'error',
38+
'always'
39+
],
40+
'@typescript-eslint/no-unused-vars': 'error',
41+
'@typescript-eslint/ban-ts-comment': 'off',
42+
'@typescript-eslint/no-non-null-assertion': 'off'
43+
}
44+
}
45+
];

0 commit comments

Comments
 (0)