forked from olivernn/lunr.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint-javascript.config.mjs
More file actions
79 lines (72 loc) · 2.06 KB
/
eslint-javascript.config.mjs
File metadata and controls
79 lines (72 loc) · 2.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
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
import {
defineConfig,
globalIgnores,
} from "eslint/config"
import js from "@eslint/js"
import cspell from '@cspell/eslint-plugin'
import stylistic from '@stylistic/eslint-plugin'
export default defineConfig([
js.configs.recommended,
{
plugins: {
'@cspell': cspell,
'@stylistic': stylistic,
},
rules: {
'@cspell/spellchecker': ['warn', {
cspell: {
language: 'en-GB',
words: [
'SignpostMarv',
'vars',
'vocab',
'stemmer',
],
},
}],
"no-constant-condition": ["error", {
checkLoops: false,
}],
"no-redeclare": "off",
"@stylistic/dot-location": ["error", "property"],
"no-alert": "error",
"no-caller": "error",
"no-eval": "error",
"no-implied-eval": "error",
"no-extend-native": "error",
"no-implicit-globals": "error",
"@stylistic/no-multi-spaces": "error",
"@stylistic/array-bracket-spacing": "error",
"@stylistic/block-spacing": "error",
"@stylistic/brace-style": ["error", "1tbs", {
allowSingleLine: true,
}],
camelcase: "error",
"@stylistic/comma-dangle": ["error", "always-multiline"],
"@stylistic/comma-spacing": "error",
"@stylistic/comma-style": "error",
"@stylistic/computed-property-spacing": "error",
"func-style": "error",
'@stylistic/indent': ["error", 2, {
VariableDeclarator: 2,
SwitchCase: 1,
}],
"@stylistic/key-spacing": "error",
"@stylistic/keyword-spacing": "error",
"@stylistic/linebreak-style": "error",
"new-cap": "error",
"@stylistic/no-trailing-spaces": "error",
"@stylistic/no-whitespace-before-property": "error",
'@stylistic/semi': ["error", "never"],
"@stylistic/space-before-function-paren": ["error", "always"],
"@stylistic/space-in-parens": "error",
"@stylistic/space-infix-ops": "error",
},
},
globalIgnores([
'./lunr.js',
'./lunr.min.js',
'./lunr.mjs',
'./test/env/**/*.js',
]),
])