File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' `
Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ import reactHooks from 'eslint-plugin-react-hooks';
66import sortKeysShorthand from 'eslint-plugin-sort-keys-shorthand' ;
77import tseslint from 'typescript-eslint' ;
88
9+ const stylisticConfig = stylistic . configs . customize ( {
10+ arrowParens : 'always' ,
11+ braceStyle : '1tbs' ,
12+ semi : true ,
13+ } ) ;
14+
915export 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) ;
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments