@gooddata/eslint-config 4.1.1 → 11.4.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js DELETED
@@ -1,61 +0,0 @@
1
- // (C) 2020 GoodData Corporation
2
- module.exports = {
3
- parser: "@typescript-eslint/parser",
4
- plugins: ["jest", "header", "import", "no-only-tests"],
5
- extends: [
6
- "eslint:recommended",
7
- "plugin:@typescript-eslint/recommended",
8
- ],
9
- parserOptions: {
10
- ecmaVersion: 2018,
11
- sourceType: "module",
12
- ecmaFeatures: {
13
- jsx: true,
14
- },
15
- },
16
- rules: {
17
- // GoodData
18
- "header/header": [2, "line", {
19
- pattern: "^ \\(C\\) \\d{4}(-\\d{4})? GoodData Corporation$",
20
- template: ` (C) ${new Date().getFullYear()} GoodData Corporation`
21
- }],
22
- "@typescript-eslint/explicit-function-return-type": 0,
23
- "@typescript-eslint/no-use-before-define": 0,
24
- "@typescript-eslint/no-empty-function": 0,
25
- "@typescript-eslint/naming-convention": [
26
- "error",
27
- {
28
- selector: "interface",
29
- format: ["PascalCase"],
30
- custom: {
31
- regex: "^I[A-Z]",
32
- match: true,
33
- },
34
- },
35
- ],
36
- "@typescript-eslint/no-unused-vars": [2, { varsIgnorePattern: "^_.*$", argsIgnorePattern: "^_.*$" }],
37
- "@typescript-eslint/no-explicit-any": 2,
38
- "import/no-extraneous-dependencies": [2, { devDependencies: true }],
39
- "import/order": 2,
40
- "no-console": [2, { allow: ["warn", "error"] }],
41
-
42
- // Test
43
- "jest/no-disabled-tests": 2,
44
- "jest/no-focused-tests": 2,
45
- "jest/no-identical-title": 2,
46
- "jest/valid-expect": 2,
47
- "no-only-tests/no-only-tests": ["error", { "block": ["fixture"], "focus": ["only"] }],
48
-
49
- // Security
50
- "no-caller": 2,
51
- "no-eval": 2,
52
- "no-delete-var": 2,
53
- "no-octal-escape": 2,
54
- },
55
- env: {
56
- es6: true,
57
- browser: true,
58
- node: true,
59
- jest: true,
60
- }
61
- };