-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.yaml
112 lines (107 loc) · 2.52 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
# @changed 2023.01.26, 20:36
# @see https://eslint.org/docs/rules/
root: true
extends:
# - 'next/core-web-vitals'
- 'eslint:recommended'
# - 'plugin:jest/recommended'
env:
es6: true
# jest: true
# jest/globals: true
# amd: true
commonjs: true
rules:
no-console: warn
no-debugger: warn
no-extra-semi: warn
no-redeclare: warn
no-undef: error
no-unreachable: warn
prefer-const: warn
no-empty: warn
quotes:
- warn
- single
semi:
- warn
- always
overrides:
- # Raw js files (from root)...
files: '**/*.js'
parser: '@babel/eslint-parser'
env:
node: true
commonjs: true
# amd: true
extends:
- 'eslint:recommended'
- 'plugin:prettier/recommended'
- 'plugin:import/recommended'
plugins:
- 'prettier' # prettier: Slighly slower (+~0.3s)
rules:
prettier/prettier: 'warn'
no-unused-vars:
- 'warn'
- argsIgnorePattern: '^_'
no-console: 'warn'
no-debugger: 'warn'
no-extra-semi: 'warn'
no-redeclare: 'warn'
no-undef: 'error'
no-unreachable: 'warn'
prefer-const: 'warn'
semi:
- 'warn'
- 'always'
- # Raw js project files...
files: 'src/assets/**/*.js'
# parser: '@babel/eslint-parser'
parser: null
env:
es6: true
browser: true
# jest: true
# jest/globals: true
globals:
modules: true
extends:
- 'eslint:recommended'
- 'plugin:prettier/recommended'
plugins:
- 'prettier' # prettier: Slighly slower (+~0.3s)
rules:
no-var: 'warn'
prettier/prettier: 'warn'
no-unused-vars:
- 'warn'
- argsIgnorePattern: '^_'
no-console: 'warn'
no-debugger: 'warn'
no-extra-semi: 'warn'
no-redeclare: 'warn'
no-undef: 'error'
no-unreachable: 'warn'
prefer-const: 'warn'
semi:
- 'warn'
- 'always'
- # json files (@see https://www.npmjs.com/package/eslint-plugin-json)...
files: '**/*.json'
extends:
- 'plugin:json/recommended'
rules:
prettier/prettier: 'warn'
- # jsonc files - commented json (@see https://www.npmjs.com/package/eslint-plugin-jsonc)...
files: '**/*.jsonc'
extends:
- 'plugin:jsonc/recommended-with-jsonc'
rules:
prettier/prettier: 'warn'
- # yaml files - commented json (@see https://www.npmjs.com/package/eslint-plugin-yaml)...
files: '**/*.+(yml|yaml)'
extends:
- 'plugin:yaml/recommended'
rules:
prettier/prettier: 'warn'