@gooddata/eslint-config 3.0.1 → 4.0.0
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/LICENSE +2095 -0
- package/README.md +6 -5
- package/index.js +5 -2
- package/package.json +12 -12
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)
|
|
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", {
|
|
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
|
+
"version": "4.0.0",
|
|
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": "
|
|
11
|
+
"license": "BSD-3-Clause",
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/gooddata/gdc-js-style/issues"
|
|
14
14
|
},
|
|
@@ -22,23 +22,23 @@
|
|
|
22
22
|
],
|
|
23
23
|
"homepage": "https://github.com/gooddata/gdc-js-style",
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@typescript-eslint/eslint-plugin": ">=
|
|
26
|
-
"eslint": ">=
|
|
25
|
+
"@typescript-eslint/eslint-plugin": ">=5.29.0",
|
|
26
|
+
"eslint": ">=8.18.0",
|
|
27
27
|
"eslint-plugin-header": ">=3.0.0",
|
|
28
|
-
"eslint-plugin-import": ">=2.
|
|
29
|
-
"eslint-plugin-jest": ">=
|
|
28
|
+
"eslint-plugin-import": ">=2.26.0",
|
|
29
|
+
"eslint-plugin-jest": ">=26.5.3",
|
|
30
30
|
"eslint-plugin-no-only-tests": ">=2.4.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@typescript-eslint/parser": "^
|
|
33
|
+
"@typescript-eslint/parser": "^5.29.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
37
|
-
"eslint": "^
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^5.29.0",
|
|
37
|
+
"eslint": "^8.18.0",
|
|
38
38
|
"eslint-plugin-header": "^3.0.0",
|
|
39
|
-
"eslint-plugin-import": "^2.
|
|
40
|
-
"eslint-plugin-jest": "^
|
|
39
|
+
"eslint-plugin-import": "^2.26.0",
|
|
40
|
+
"eslint-plugin-jest": "^26.5.3",
|
|
41
41
|
"eslint-plugin-no-only-tests": "^2.4.0",
|
|
42
|
-
"typescript": "^4.
|
|
42
|
+
"typescript": "^4.7.4"
|
|
43
43
|
}
|
|
44
44
|
}
|