File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
1
import js from '@eslint/js' ;
2
- import type { ESLint } from 'eslint' ;
2
+ import type { Linter } from 'eslint' ;
3
3
import tseslint from '@typescript-eslint/eslint-plugin' ;
4
4
import tsparser from '@typescript-eslint/parser' ;
5
5
import prettierConfig from 'eslint-config-prettier' ;
6
6
import prettierPlugin from 'eslint-plugin-prettier' ;
7
7
import globals from 'globals' ;
8
8
9
- const config : ESLint . ConfigData = [
9
+ const config : Linter . FlatConfig [ ] = [
10
10
// Base JavaScript configuration
11
11
js . configs . recommended ,
12
12
@@ -56,7 +56,7 @@ const config: ESLint.ConfigData = [
56
56
} ,
57
57
} ,
58
58
plugins : {
59
- '@typescript-eslint' : tseslint ,
59
+ '@typescript-eslint' : tseslint as any ,
60
60
prettier : prettierPlugin ,
61
61
} ,
62
62
rules : {
@@ -99,6 +99,20 @@ const config: ESLint.ConfigData = [
99
99
'prefer-const' : 'warn' ,
100
100
'no-constant-condition' : 'warn' ,
101
101
'no-constant-binary-expression' : 'warn' ,
102
+
103
+ // Line length limit
104
+ 'max-len' : [
105
+ 'warn' ,
106
+ {
107
+ code : 512 ,
108
+ tabWidth : 2 ,
109
+ ignoreUrls : true ,
110
+ ignoreStrings : true ,
111
+ ignoreTemplateLiterals : true ,
112
+ ignoreRegExpLiterals : true ,
113
+ ignoreComments : false ,
114
+ } ,
115
+ ] ,
102
116
} ,
103
117
settings : {
104
118
react : {
You can’t perform that action at this time.
0 commit comments