@gooddata/eslint-config 3.0.0 → 3.0.3

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 (4) hide show
  1. package/LICENSE +2095 -0
  2. package/README.md +6 -5
  3. package/index.js +5 -2
  4. package/package.json +2 -2
package/README.md CHANGED
@@ -7,6 +7,7 @@ Linter is using typescript-eslint parser to check typescript and javascript sour
7
7
  More details: https://typescript-eslint.io, [typescript-eslint Roadmap](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/ROADMAP.md)
8
8
 
9
9
  ## Install
10
+
10
11
  ```
11
12
  yarn add @gooddata/eslint-config --dev
12
13
  ```
@@ -16,7 +17,7 @@ Add required eslint, parser & plugins
16
17
  ```
17
18
  yarn add eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-header eslint-plugin-import eslint-plugin-jest --dev
18
19
  ```
19
-
20
+
20
21
  ## Usage
21
22
 
22
23
  Add or edit in project `.eslintrc.js` file.
@@ -27,15 +28,16 @@ module.exports = {
27
28
  extends: ["@gooddata"],
28
29
  rules: {
29
30
  // Custom rules
30
- }
31
+ },
31
32
  };
32
- ```
33
+ ```
33
34
 
34
35
  ## Development
35
36
 
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
+ Install [Node.js](http://nodejs.org) and [Yarn](https://classic.yarnpkg.com) (for versions, see [config](docker/.config)).
37
38
 
38
39
  Install dependencies:
40
+
39
41
  ```
40
42
  yarn install --frozen-lockfile
41
43
  ```
@@ -45,4 +47,3 @@ yarn install --frozen-lockfile
45
47
  Package publishing is done via Jenkins Job:
46
48
 
47
49
  https://checklist.intgdc.com/job/client-libs/job/gdc-js-style-javascript-release/
48
-
package/index.js CHANGED
@@ -15,7 +15,10 @@ module.exports = {
15
15
  },
16
16
  rules: {
17
17
  // GoodData
18
- "header/header": [2, "line", { pattern: "^ \\(C\\) \\d{4}(-\\d{4})? GoodData Corporation$" }],
18
+ "header/header": [2, "line", {
19
+ pattern: "^ \\(C\\) \\d{4}(-\\d{4})? GoodData Corporation$",
20
+ template: " (C) 2022 GoodData Corporation"
21
+ }],
19
22
  "@typescript-eslint/explicit-function-return-type": 0,
20
23
  "@typescript-eslint/no-use-before-define": 0,
21
24
  "@typescript-eslint/no-empty-function": 0,
@@ -35,7 +38,7 @@ module.exports = {
35
38
  "import/no-extraneous-dependencies": [2, { devDependencies: true }],
36
39
  "import/order": 2,
37
40
  "no-console": 2,
38
-
41
+
39
42
  // Test
40
43
  "jest/no-disabled-tests": 2,
41
44
  "jest/no-focused-tests": 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/eslint-config",
3
- "version": "3.0.0",
3
+ "version": "3.0.3",
4
4
  "description": "GoodData JavaScript Style Guide",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -8,7 +8,7 @@
8
8
  "url": "git+https://github.com/gooddata/gdc-js-style.git"
9
9
  },
10
10
  "author": "ui@gooddata.com",
11
- "license": "SEE LICENSE IN LICENSE.txt",
11
+ "license": "BSD-3-Clause",
12
12
  "bugs": {
13
13
  "url": "https://github.com/gooddata/gdc-js-style/issues"
14
14
  },