eslint-config-gits 2.0.1 → 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/CHANGELOG.md +12 -0
- package/index.js +49 -50
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
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
|
+
|
|
1
13
|
## [2.0.1](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v2.0.0...v2.0.1) (2023-04-19)
|
|
2
14
|
|
|
3
15
|
|
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
|
};
|