-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy patheslint.config.js
More file actions
55 lines (53 loc) · 1.94 KB
/
eslint.config.js
File metadata and controls
55 lines (53 loc) · 1.94 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
const globals = require("globals");
const pluginJs = require("@eslint/js");
const eslintConfigPrettier = require("eslint-config-prettier");
module.exports = [
{ files: ["**/*.js"] },
{ ignores: ["pinc/3rdparty", "**/vendor", "eslint.config.js", "dist/**", "webpack.config.js"] },
{
languageOptions: {
globals: globals.browser,
sourceType: "script",
},
rules: {
"no-use-before-define": "error",
camelcase: "warn",
},
},
{
languageOptions: {
globals: globals.browser,
sourceType: "module",
},
files: [
"SETUP/tests/jsTests/ajaxTests.js",
"SETUP/tests/jsTests/characterValidation.js",
"SETUP/tests/jsTests/formatPreviewTests.js",
"SETUP/tests/jsTests/splitControlTests.js",
"SETUP/tests/manual_web/split_test/switchable_split.js",
"SETUP/tests/manual_web/split_test/vertical_horizontal_split.js",
"SETUP/tests/manual_web/split_test/vertical_split.js",
"scripts/analyse_format.js",
"scripts/api.js",
"scripts/character_test.js",
"scripts/control_bar.js",
"scripts/file_resume.js",
"scripts/gettext.js",
"scripts/page_browse.js",
"scripts/splitControl.js",
"scripts/text_view.js",
"scripts/text_validator.js",
"scripts/view_splitter.js",
"tools/page_browser.js",
"tools/project_manager/handle_bad_page.js",
"tools/project_manager/show_all_good_word_suggestions.js",
"tools/project_manager/show_word_context.js",
"tools/proofers/previewControl.js",
"tools/proofers/proof_validate.js",
"tools/proofers/proof_image.js",
"tools/proofers/wordcheck.js",
],
},
pluginJs.configs.recommended,
eslintConfigPrettier,
];