forked from lukbukkit/chartist-plugin-tooltip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
57 lines (56 loc) · 1.48 KB
/
eslint.config.mjs
File metadata and controls
57 lines (56 loc) · 1.48 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
import eslint from "@eslint/js";
import globals from "globals";
import prettier from "eslint-config-prettier/flat";
import jsdoc from 'eslint-plugin-jsdoc';
import tseslint from "typescript-eslint";
export default [
eslint.configs.recommended,
...tseslint.configs.recommended,
jsdoc.configs['flat/recommended-typescript'],
prettier,
{
files: ["src/scripts/*.ts"],
languageOptions: {
ecmaVersion: 2015,
sourceType: "module",
globals: {
...globals.browser
}
},
rules: {
"no-console": 2,
"curly": 2,
"dot-notation": 1,
"eqeqeq": 2,
"no-alert": 2,
"no-caller": 2,
"no-eval": 2,
"no-extra-bind": 2,
"no-implied-eval": 2,
"no-multi-spaces": 2,
"no-with": 2,
"no-shadow": 2,
"no-shadow-restricted-names": 2,
"brace-style": ["error", "1tbs"],
"camelcase": 2,
"comma-style": ["error", "last"],
"eol-last": 2,
"key-spacing": 2,
"new-cap": 1,
"no-array-constructor": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": 2,
"semi": ["error", "always"],
"semi-spacing": 2,
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"space-before-blocks": 2,
"spaced-comment": 1,
"no-var": 2,
'@typescript-eslint/no-explicit-any': 'off',
'jsdoc/tag-lines': ['warn', 'any', {'startLines': 1}],
'jsdoc/require-description': 'warn',
'jsdoc/check-syntax': 'error'
}
}
];