-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
114 lines (114 loc) · 2.33 KB
/
.eslintrc.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
%YAML 1.2
---
root: true
env:
browser: true
es2021: true
extends:
- "eslint:recommended"
- "plugin:react/recommended"
- "plugin:react/jsx-runtime"
- "plugin:@typescript-eslint/recommended"
- "plugin:@next/next/recommended"
parser: "@typescript-eslint/parser"
settings:
react:
version: detect
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: latest
sourceType: module
plugins:
- react
- "@typescript-eslint"
ignorePatterns:
- /.eslintrc.yaml
- /next.config.js
- /next-env.d.ts
- /.next/**
- /css/**
- /data/**
- /public/**
- /scripts/**
rules:
array-bracket-spacing: warn
arrow-parens: "off"
block-spacing: warn
brace-style: warn
comma-dangle:
- warn
- arrays: always-multiline
objects: always-multiline
imports: never
exports: never
functions: never
comma-spacing: error
curly:
- warn
- multi-or-nest
eol-last: warn
eqeqeq: error
func-call-spacing: warn
generator-star-spacing:
- warn
- after
id-match:
- warn
- ^[A-Za-z_][A-Za-z0-9]*$
implicit-arrow-linebreak: error
indent:
- warn
- 4
jsx-quotes: warn
key-spacing:
- warn
- beforeColon: false
afterColon: true
mode: strict
keyword-spacing: warn
no-eval: error
no-floating-decimal: warn
no-multi-assign: error
no-multi-spaces: error
no-multi-str: error
no-octal-escape: error
no-proto: error
no-sequences: error
no-tabs: warn
no-template-curly-in-string: error
no-trailing-spaces: warn
no-unneeded-ternary: error
no-unreachable-loop: warn
no-use-before-define: "off"
no-useless-return: warn
no-var: error
no-whitespace-before-property: error
nonblock-statement-body-position:
- warn
- below
object-property-newline: warn
one-var-declaration-per-line: warn
padded-blocks:
- error
- never
prefer-arrow-callback: warn
prefer-const: warn
prefer-exponentiation-operator: warn
prefer-template: warn
quotes: error
rest-spread-spacing: warn
semi: warn
semi-spacing: warn
sort-imports: warn
space-in-parens: warn
space-infix-ops: warn
spaced-comment: warn
switch-colon-spacing: warn
symbol-description: warn
template-curly-spacing: warn
template-tag-spacing: warn
unicode-bom: error
yoda: error
"@next/next/no-img-element": "off"
"@typescript-eslint/no-use-before-define": error