forked from malloydata/malloy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
48 lines (47 loc) · 1.28 KB
/
.eslintrc.cjs
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
/*
* Copyright 2021 Google LLC
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
module.exports = {
env: {
browser: true,
jest: true,
node: true,
},
extends: [
"prettier",
"plugin:prettier/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
ignorePatterns: [
"*.d.ts",
"node_modules/",
"packages/malloy/src/lang/lib/Malloy",
],
parser: "@typescript-eslint/parser",
parserOptions: {
warnOnUnsupportedTypeScriptVersion: false,
},
plugins: ["@typescript-eslint", "prettier"],
rules: {
"no-console": "warn",
"prettier/prettier": "error",
"sort-keys": "off",
"no-use-before-define": "off",
"no-throw-literal": "error",
"@typescript-eslint/no-unused-vars": [
"warn",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
},
};