-
Notifications
You must be signed in to change notification settings - Fork 357
Expand file tree
/
Copy patheslint.config.mjs
More file actions
37 lines (36 loc) · 1.06 KB
/
eslint.config.mjs
File metadata and controls
37 lines (36 loc) · 1.06 KB
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
import { defineConfig, globalIgnores } from 'eslint/config'
import globals from 'globals'
import js from '@eslint/js'
import pluginCypress from 'eslint-plugin-cypress'
import stylistic from '@stylistic/eslint-plugin'
export default defineConfig([
globalIgnores([
'dist/',
'examples/component-tests/dist/',
'examples/nextjs/.next/',
'examples/nextjs/build/',
'examples/nextjs/src/app/',
'examples/wait-on-vite/dist/',
'examples/**/.pnp.*',
]),
{
files: ['eslint.config.mjs', 'examples/**/*.js'],
extends:
[
js.configs.recommended,
pluginCypress.configs.recommended,
stylistic.configs.recommended,
],
rules: {
'@stylistic/arrow-parens': ['error', 'always'],
'@stylistic/comma-dangle': ['error', 'always-multiline'],
'@stylistic/indent': ['error', 2],
'@stylistic/quotes': ['error', 'single'],
'@stylistic/semi': ['error', 'never'],
'@stylistic/space-before-function-paren': ['error', 'always'],
},
languageOptions: {
globals: globals.node,
},
},
])