eslint-config-gits 2.0.0 → 3.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/.releaserc.json +2 -9
- package/CHANGELOG.md +18 -0
- package/index.js +49 -50
- package/package.json +4 -1
package/.releaserc.json
CHANGED
|
@@ -5,16 +5,9 @@
|
|
|
5
5
|
"plugins": [
|
|
6
6
|
"@semantic-release/commit-analyzer",
|
|
7
7
|
"@semantic-release/release-notes-generator",
|
|
8
|
+
"@semantic-release/changelog",
|
|
8
9
|
"@semantic-release/gitlab",
|
|
9
10
|
"@semantic-release/npm",
|
|
10
|
-
|
|
11
|
-
"@semantic-release/git",
|
|
12
|
-
{
|
|
13
|
-
"assets": [
|
|
14
|
-
"package.json"
|
|
15
|
-
],
|
|
16
|
-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
11
|
+
"@semantic-release/git"
|
|
19
12
|
]
|
|
20
13
|
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# [3.0.0](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v2.0.1...v3.0.0) (2023-04-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Require default-param-last ([bc57081](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/bc57081afca131710643ec4428ee6869baa7c8f6))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* Enforce default parameters to be last
|
|
12
|
+
|
|
13
|
+
## [2.0.1](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v2.0.0...v2.0.1) (2023-04-19)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* Install typescript dependencies ([52af0c3](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/52af0c3434bc5bc2c2764ef73800641d7ddfb976))
|
package/index.js
CHANGED
|
@@ -1,72 +1,71 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
plugins: [
|
|
2
|
+
plugins: ['react', '@typescript-eslint', 'prettier', 'react-hooks'],
|
|
3
3
|
extends: [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
'eslint:recommended',
|
|
5
|
+
'plugin:react/recommended',
|
|
6
|
+
'plugin:@typescript-eslint/recommended',
|
|
7
|
+
'plugin:react-hooks/recommended',
|
|
8
8
|
],
|
|
9
|
-
parser:
|
|
9
|
+
parser: '@typescript-eslint/parser',
|
|
10
10
|
parserOptions: {
|
|
11
11
|
ecmaFeatures: {
|
|
12
|
-
jsx: true
|
|
12
|
+
jsx: true,
|
|
13
13
|
},
|
|
14
|
-
ecmaVersion:
|
|
15
|
-
sourceType:
|
|
14
|
+
ecmaVersion: 'latest',
|
|
15
|
+
sourceType: 'module',
|
|
16
16
|
},
|
|
17
17
|
rules: {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
'prettier/prettier': [
|
|
19
|
+
'error',
|
|
20
20
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
21
|
+
tabWidth: 4,
|
|
22
|
+
useTabs: false,
|
|
23
|
+
printWidth: 80,
|
|
24
|
+
semi: true,
|
|
25
|
+
singleQuote: true,
|
|
26
|
+
quoteProps: 'as-needed',
|
|
27
|
+
jsxSingleQuote: false,
|
|
28
|
+
trailingComma: 'es5',
|
|
29
|
+
bracketSpacing: true,
|
|
30
|
+
bracketSameLine: false,
|
|
31
|
+
arrowParens: 'avoid',
|
|
32
|
+
},
|
|
33
33
|
],
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
35
|
+
'@typescript-eslint/typedef': [
|
|
36
|
+
'error',
|
|
37
37
|
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
]
|
|
38
|
+
arrayDestructuring: false,
|
|
39
|
+
arrowParameter: false,
|
|
40
|
+
memberVariableDeclaration: true,
|
|
41
|
+
objectDestructuring: true,
|
|
42
|
+
parameter: false,
|
|
43
|
+
propertyDeclaration: true,
|
|
44
|
+
variableDeclaration: true,
|
|
45
|
+
variableDeclarationIgnoreFunction: true,
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
'default-param-last': ['error']
|
|
48
49
|
},
|
|
49
50
|
overrides: [
|
|
50
51
|
{
|
|
51
|
-
files: [
|
|
52
|
-
excludedFiles: [
|
|
52
|
+
files: ['*.ts', '*.tsx'],
|
|
53
|
+
excludedFiles: ['*.test.ts', '*.test.tsx'],
|
|
53
54
|
rules: {
|
|
54
|
-
|
|
55
|
-
}
|
|
55
|
+
'@typescript-eslint/explicit-function-return-type': ['error'],
|
|
56
|
+
},
|
|
56
57
|
},
|
|
57
58
|
{
|
|
58
|
-
files: [
|
|
59
|
+
files: ['*.json'],
|
|
59
60
|
rules: {
|
|
60
|
-
|
|
61
|
-
}
|
|
61
|
+
'prettier/prettier': 'off',
|
|
62
|
+
},
|
|
62
63
|
},
|
|
63
64
|
{
|
|
64
|
-
files: [
|
|
65
|
-
"**/*.stories.*"
|
|
66
|
-
],
|
|
65
|
+
files: ['**/*.stories.*'],
|
|
67
66
|
rules: {
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
]
|
|
67
|
+
'import/no-anonymous-default-export': 'off',
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
],
|
|
72
71
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-gits",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "EsLint preset for Geenen IT-Systeme",
|
|
5
5
|
"repository": "https://gitlab.com/geenen-it-systeme/eslint-preset",
|
|
6
6
|
"main": "index.js",
|
|
@@ -22,8 +22,11 @@
|
|
|
22
22
|
"prettier": "^2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
25
26
|
"@semantic-release/git": "^10.0.1",
|
|
26
27
|
"@semantic-release/gitlab": "^12.0.1",
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
|
29
|
+
"@typescript-eslint/parser": "^5.59.0",
|
|
27
30
|
"eslint": "^8.38.0",
|
|
28
31
|
"eslint-plugin-prettier": "^4.2.1",
|
|
29
32
|
"eslint-plugin-react": "^7.32.2",
|