-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.yml
89 lines (82 loc) · 1.82 KB
/
.eslintrc.yml
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
extends:
- eslint:recommended
- plugin:import/errors
- plugin:import/warnings
- plugin:yml/prettier
- plugin:toml/standard
- plugin:prettier/recommended
- plugin:md/recommended
plugins:
- import
- yml
- toml
- prettier
- spellcheck
- md
env:
browser: true
es6: true
parserOptions:
ecmaVersion: 2018
sourceType: module
rules:
# use semicolons!!
semi: [error, always]
# use single quotes
quotes: [error, single]
yml/plain-scalar: [error, always]
# this disables the line length check in the markdown plugin
md/remark:
- error
- plugins:
- [remark-lint-maximum-line-length, false]
spellcheck/spell-checker:
- warn
- comments: true
strings: true
# an identifier is a variable name
identifiers: false
lang: en_US
skipWords:
- appium
- saucelabs
- hacktoberfest
- whitespace
- preloader
- toggler
- themify
- favicon
skipIfMatch:
# no URLs
- "https?://[^s]*"
# no http request headers
- "GET\\s.+"
# skip tokens
- ^[a-zA-Z0-9=]{56}$
skipWordIfMatch:
- repos?
- web.*
- selenium.*
- ya?ml
- eslint.*
# 3-letter words are not checked; these are often file extensions
minLength: 4
overrides:
# fix conflicts between the markdown plugin and prettier; give markdown plugin precedence
# more info: https://blog.frontendops.dev/2020/11/24/eslint-for-markdown/ for more
- files: "*.md"
parser: markdown-eslint-parser
rules:
prettier/prettier:
- error
- parser: markdown
# this is just an .eslintignore file
ignorePatterns:
- public/**/
- resources/**/*
- themes/**/*
- package*.json
- .husky/**/*
- assets/js/libs/**/*
- "!.*"
- node_modules/