-
-
Notifications
You must be signed in to change notification settings - Fork 202
/
Copy patheslint.config.js
49 lines (49 loc) · 1.15 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import eslintPluginToml from 'eslint-plugin-toml'
import stylistic from '@stylistic/eslint-plugin'
export default [
...eslintPluginToml.configs['flat/recommended'],
{
plugins: {
'@stylistic': stylistic
},
rules: {
'@stylistic/eol-last': 'error',
'@stylistic/indent': 'error',
'@stylistic/linebreak-style': 'error',
'@stylistic/no-mixed-spaces-and-tabs': 'error',
'@stylistic/no-multi-spaces': [
'error',
{
'ignoreEOLComments': true
}
],
'@stylistic/no-multiple-empty-lines': [
'error',
{
'max': 1,
'maxBOF': 0,
'maxEOF': 0
}
],
'@stylistic/no-tabs': 'error',
'@stylistic/no-trailing-spaces': 'error',
'toml/indent': [
'error',
4,
{
'subTables': 1,
'keyValuePairs': 1
}
],
'toml/padding-line-between-tables': 'off',
'toml/spaced-comment': 'off',
'toml/tables-order': 'off',
'toml/no-mixed-type-in-array': 'error',
'unicode-bom': 'error'
},
ignores: [
'/*.toml',
'**/*.config.toml'
],
}
];