-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy patheslint.config.js
More file actions
30 lines (28 loc) · 723 Bytes
/
eslint.config.js
File metadata and controls
30 lines (28 loc) · 723 Bytes
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
// @ts-check
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import stylistic from '@stylistic/eslint-plugin'
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
stylistic.configs.recommended,
{
plugins: {
'@stylistic': stylistic,
'@typescript-eslint': tseslint.plugin,
},
rules: {
'@stylistic/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'@stylistic/space-before-function-paren': ['error', 'always'],
},
},
{
ignores: ['src/demo.js', 'dist/**', 'node_modules/**'],
},
{
files: ['src/**/*.{js,jsx,ts,tsx}'],
languageOptions: {
parser: tseslint.parser,
},
},
)