Skip to content

Commit de51e82

Browse files
committed
update rules
1 parent 40d10d0 commit de51e82

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

packages/eslint-config/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
55

66
## To Be Released
77

8+
## 1.4.
9+
10+
- adjust rules
11+
812
## 1.4.3
913

1014
- set `braceStyle: '1tbs'`

packages/eslint-config/index.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ import reactHooks from 'eslint-plugin-react-hooks';
66
import sortKeysShorthand from 'eslint-plugin-sort-keys-shorthand';
77
import tseslint from 'typescript-eslint';
88

9+
const stylisticConfig = stylistic.configs.customize({
10+
arrowParens: 'always',
11+
braceStyle: '1tbs',
12+
semi: true,
13+
});
14+
915
export default tseslint.config(
1016
eslint.configs.recommended,
1117
...tseslint.configs.recommendedTypeChecked,
@@ -67,9 +73,12 @@ export default tseslint.config(
6773
}
6874
},
6975
eslintConfigPrettier,
70-
stylistic.configs.customize({
71-
arrowParens: 'always',
72-
braceStyle: '1tbs',
73-
semi: true,
74-
}),
76+
{
77+
...stylisticConfig,
78+
rules: {
79+
...stylisticConfig.rules,
80+
'@stylistic/jsx-one-expression-per-line': 0,
81+
'@stylistic/multiline-ternary': 0,
82+
},
83+
},
7584
);

packages/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
"private": false,
1919
"repository": "https://github.com/fxOne/tools.git",
2020
"type": "module",
21-
"version": "1.4.3"
21+
"version": "1.4.4"
2222
}

0 commit comments

Comments
 (0)