@gooddata/eslint-config 2.0.0 → 3.0.1

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.
Files changed (3) hide show
  1. package/README.md +9 -0
  2. package/index.js +13 -2
  3. package/package.json +13 -11
package/README.md CHANGED
@@ -29,6 +29,15 @@ module.exports = {
29
29
  // Custom rules
30
30
  }
31
31
  };
32
+ ```
33
+
34
+ ## Development
35
+
36
+ Install [Node.js](http://nodejs.org) (node 12.16.1, npm v6.13.4) and [Yarn](https://classic.yarnpkg.com) 1.22.4.
37
+
38
+ Install dependencies:
39
+ ```
40
+ yarn install --frozen-lockfile
32
41
  ```
33
42
 
34
43
  ## Release
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // (C) 2020 GoodData Corporation
2
2
  module.exports = {
3
3
  parser: "@typescript-eslint/parser",
4
- plugins: ["jest", "header", "import"],
4
+ plugins: ["jest", "header", "import", "no-only-tests"],
5
5
  extends: [
6
6
  "eslint:recommended",
7
7
  "plugin:@typescript-eslint/recommended",
@@ -19,7 +19,17 @@ module.exports = {
19
19
  "@typescript-eslint/explicit-function-return-type": 0,
20
20
  "@typescript-eslint/no-use-before-define": 0,
21
21
  "@typescript-eslint/no-empty-function": 0,
22
- "@typescript-eslint/interface-name-prefix": [2, { prefixWithI: "always" }],
22
+ "@typescript-eslint/naming-convention": [
23
+ "error",
24
+ {
25
+ selector: "interface",
26
+ format: ["PascalCase"],
27
+ custom: {
28
+ regex: "^I[A-Z]",
29
+ match: true,
30
+ },
31
+ },
32
+ ],
23
33
  "@typescript-eslint/no-unused-vars": [2, { varsIgnorePattern: "^_.*$", argsIgnorePattern: "^_.*$" }],
24
34
  "@typescript-eslint/no-explicit-any": 2,
25
35
  "import/no-extraneous-dependencies": [2, { devDependencies: true }],
@@ -31,6 +41,7 @@ module.exports = {
31
41
  "jest/no-focused-tests": 2,
32
42
  "jest/no-identical-title": 2,
33
43
  "jest/valid-expect": 2,
44
+ "no-only-tests/no-only-tests": ["error", { "block": ["fixture"], "focus": ["only"] }],
34
45
 
35
46
  // Security
36
47
  "no-caller": 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/eslint-config",
3
- "version": "2.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "GoodData JavaScript Style Guide",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -22,21 +22,23 @@
22
22
  ],
23
23
  "homepage": "https://github.com/gooddata/gdc-js-style",
24
24
  "peerDependencies": {
25
- "@typescript-eslint/eslint-plugin": ">=2.16.0",
26
- "eslint": ">=6.0.0",
25
+ "@typescript-eslint/eslint-plugin": ">=4.14.2",
26
+ "eslint": ">=7.26.0",
27
27
  "eslint-plugin-header": ">=3.0.0",
28
- "eslint-plugin-import": ">=2.20.0",
29
- "eslint-plugin-jest": ">=23.6.0"
28
+ "eslint-plugin-import": ">=2.23.0",
29
+ "eslint-plugin-jest": ">=24.1.3",
30
+ "eslint-plugin-no-only-tests": ">=2.4.0"
30
31
  },
31
32
  "dependencies": {
32
- "@typescript-eslint/parser": "^2.16.0"
33
+ "@typescript-eslint/parser": "^4.14.2"
33
34
  },
34
35
  "devDependencies": {
35
- "@typescript-eslint/eslint-plugin": "^2.16.0",
36
- "eslint": "^6.8.0",
36
+ "@typescript-eslint/eslint-plugin": "^4.14.20",
37
+ "eslint": "^7.26.0",
37
38
  "eslint-plugin-header": "^3.0.0",
38
- "eslint-plugin-import": "^2.20.0",
39
- "eslint-plugin-jest": "^23.6.0",
40
- "typescript": "^3.7.4"
39
+ "eslint-plugin-import": "^2.23.0",
40
+ "eslint-plugin-jest": "^24.1.3",
41
+ "eslint-plugin-no-only-tests": "^2.4.0",
42
+ "typescript": "^4.0.2"
41
43
  }
42
44
  }