eslint-config-gits 2.0.1 → 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.
- package/CHANGELOG.md +29 -0
- package/index.js +49 -50
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
|
+
## [3.0.1](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v3.0.0...v3.0.1) (2023-09-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Ignore types for object deconstructin ([ca7229f](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/ca7229fa5e46c92d6d9bd55cf14521340d233e55))
|
|
7
|
+
|
|
8
|
+
# [3.0.0](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v2.0.1...v3.0.0) (2023-04-19)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* Require default-param-last ([bc57081](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/bc57081afca131710643ec4428ee6869baa7c8f6))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### BREAKING CHANGES
|
|
17
|
+
|
|
18
|
+
* Enforce default parameters to be last
|
|
19
|
+
|
|
1
20
|
## [2.0.1](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v2.0.0...v2.0.1) (2023-04-19)
|
|
2
21
|
|
|
3
22
|
|
|
4
23
|
### Bug Fixes
|
|
5
24
|
|
|
6
25
|
* Install typescript dependencies ([52af0c3](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/52af0c3434bc5bc2c2764ef73800641d7ddfb976))
|
|
26
|
+
|
|
27
|
+
## 2.0.0
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* Type definition for variables
|
|
32
|
+
|
|
33
|
+
### BREAKING CHANGEs
|
|
34
|
+
|
|
35
|
+
* All variables must be typed
|
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: false,
|
|
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
|
};
|