forked from bgrins/javascript-astar
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
50 lines (49 loc) · 1.78 KB
/
Copy patheslint.config.js
File metadata and controls
50 lines (49 loc) · 1.78 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
import js from "@eslint/js"
import { defineConfig } from "eslint/config"
import jsdoc from "eslint-plugin-jsdoc"
import neostandard from "neostandard"
export default defineConfig([
js.configs.recommended,
...neostandard(),
jsdoc.configs["flat/recommended"],
{
rules: {
// Eslint
"prefer-template": "error",
"class-methods-use-this": "error",
"no-shadow": "error",
"no-negated-condition": "error",
// Neostandard
"curly": ["error", "multi-or-nest"],
"object-shorthand": ["error", "never"],
"camelcase": "off",
// Neostandard - Stylistic
"@stylistic/indent": ["error", 4, { SwitchCase: 1 }],
"@stylistic/quote-props": ["error", "consistent-as-needed"],
"@stylistic/quotes": ["error", "double"],
"@stylistic/space-before-function-paren": ["error", "never"],
"@stylistic/brace-style": ["error", "stroustrup"],
// JSDoc
"jsdoc/require-param-description": "off",
"jsdoc/require-property-description": "off",
"jsdoc/require-returns-description": "off",
"jsdoc/check-indentation": "error",
"jsdoc/require-jsdoc": ["error", {
require: {
ClassExpression: true,
FunctionDeclaration: true,
FunctionExpression: true,
MethodDefinition: true,
},
exemptEmptyFunctions: true,
}],
"jsdoc/multiline-blocks": ["error", {
requireSingleLineUnderCount: 120
}],
},
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
}
}
])