@mscharley/eslint-config 4.2.8 → 4.2.10
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 +13 -0
- package/package.json +2 -2
- package/rules/index.js +8 -0
- package/rules/node.js +6 -1
- package/rules/react.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Change Log - @mscharley/eslint-config
|
|
2
2
|
|
|
3
|
+
## 4.2.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 53cac89: fix(deps): update dependency typescript-eslint to ^8.30.1
|
|
8
|
+
- 996ff0a: fix: use a line length in ts as well
|
|
9
|
+
|
|
10
|
+
## 4.2.9
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 20ccf46: fix: fix react hooks config
|
|
15
|
+
|
|
3
16
|
## 4.2.8
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mscharley/eslint-config",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "./rules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"eslint-plugin-notice": "^1.0.0",
|
|
43
43
|
"eslint-plugin-react": "^7.37.5",
|
|
44
44
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
45
|
-
"typescript-eslint": "^8.
|
|
45
|
+
"typescript-eslint": "^8.30.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"test": "eslint --max-warnings 0 ."
|
package/rules/index.js
CHANGED
|
@@ -36,6 +36,14 @@ export const withStyles = () => [
|
|
|
36
36
|
rules: {
|
|
37
37
|
'@stylistic/generator-star-spacing': ['error', 'after'],
|
|
38
38
|
'@stylistic/linebreak-style': ['error', 'unix'],
|
|
39
|
+
'@stylistic/max-len': ['error', {
|
|
40
|
+
code: 120,
|
|
41
|
+
ignoreComments: true,
|
|
42
|
+
ignoreUrls: true,
|
|
43
|
+
ignoreStrings: true,
|
|
44
|
+
ignoreTemplateLiterals: true,
|
|
45
|
+
ignoreRegExpLiterals: true,
|
|
46
|
+
}],
|
|
39
47
|
'@stylistic/quote-props': ['error', 'consistent-as-needed'],
|
|
40
48
|
},
|
|
41
49
|
},
|
package/rules/node.js
CHANGED
|
@@ -5,7 +5,12 @@ export default [
|
|
|
5
5
|
{
|
|
6
6
|
settings: {
|
|
7
7
|
node: {
|
|
8
|
-
tryExtensions: [
|
|
8
|
+
tryExtensions: [
|
|
9
|
+
'.js', '.jsx', '.mjs', '.cjs',
|
|
10
|
+
'.json',
|
|
11
|
+
'.node',
|
|
12
|
+
'.d.ts', '.ts', '.tsx', '.mts', '.cts',
|
|
13
|
+
],
|
|
9
14
|
},
|
|
10
15
|
},
|
|
11
16
|
rules: {
|
package/rules/react.js
CHANGED
|
@@ -4,7 +4,7 @@ import reactHooks from 'eslint-plugin-react-hooks';
|
|
|
4
4
|
export default [
|
|
5
5
|
react.configs.flat.recommended,
|
|
6
6
|
react.configs.flat['jsx-runtime'],
|
|
7
|
-
reactHooks.configs
|
|
7
|
+
reactHooks.configs['recommended-latest'],
|
|
8
8
|
{
|
|
9
9
|
rules: {
|
|
10
10
|
'react/prefer-stateless-function': 'error',
|