@@ -2,14 +2,14 @@ import {rules} from '@putout/eslint-config';
22import parser from '@typescript-eslint/parser' ;
33import tseslint from 'typescript-eslint' ;
44import tsPlugin from '@typescript-eslint/eslint-plugin' ;
5- import stylisticTs from '@stylistic/eslint-plugin-ts ' ;
5+ import stylistic from '@stylistic/eslint-plugin' ;
66import { jsx } from './jsx.mjs' ;
77import * as plugin from './plugin.mjs' ;
88
99const { assign} = Object ;
1010
1111const reEnable = ( rule ) => ( {
12- [ `@stylistic/ts/ ${ rule } ` ] : 'error' ,
12+ [ `@stylistic/${ rule } ` ] : 'error' ,
1313} ) ;
1414
1515const warnOnUnsupportedTypeScriptVersion = false ;
@@ -26,7 +26,7 @@ const handled = {
2626} ;
2727
2828const broken = {
29- '@stylistic/ts/ indent' : 'off' ,
29+ '@stylistic/indent' : 'off' ,
3030} ;
3131
3232const slow = {
@@ -42,24 +42,19 @@ const extensionRules = {
4242 'no-undef' : 'off' ,
4343 'no-var' : 'off' ,
4444
45- '@stylistic/ts/ comma-spacing' : 'error' ,
45+ '@stylistic/comma-spacing' : 'error' ,
4646
47- '@stylistic/ts/ lines-between-class-members' : 'off' ,
47+ '@stylistic/lines-between-class-members' : 'off' ,
4848
49- '@stylistic/js/padding-line-between-statements' : 'off' ,
50- '@stylistic/ts/padding-line-between-statements' : convertPaddingLines ( rules [ '@stylistic/js/padding-line-between-statements' ] ) ,
49+ '@stylistic/padding-line-between-statements' : convertPaddingLines ( rules [ '@stylistic/padding-line-between-statements' ] ) ,
5150
52- '@stylistic/js/object-curly-spacing' : 'off' ,
53- '@stylistic/ts/object-curly-spacing' : rules [ '@stylistic/js/object-curly-spacing' ] ,
51+ '@stylistic/object-curly-spacing' : rules [ '@stylistic/object-curly-spacing' ] ,
5452
55- '@stylistic/js/semi' : 'off' ,
56- '@stylistic/ts/semi' : rules [ '@stylistic/js/semi' ] ,
53+ '@stylistic/semi' : rules [ '@stylistic/semi' ] ,
5754
58- '@stylistic/js/no-extra-parens' : 'off' ,
59- '@stylistic/ts/no-extra-parens' : rules [ '@stylistic/js/no-extra-parens' ] ,
55+ '@stylistic/no-extra-parens' : rules [ '@stylistic/no-extra-parens' ] ,
6056
61- '@stylistic/js/space-before-function-paren' : 'off' ,
62- '@stylistic/ts/space-before-function-paren' : rules [ '@stylistic/js/space-before-function-paren' ] ,
57+ '@stylistic/space-before-function-paren' : rules [ '@stylistic/space-before-function-paren' ] ,
6358
6459 ...reEnable ( 'object-curly-spacing' ) ,
6560 ...reEnable ( 'func-call-spacing' ) ,
@@ -99,7 +94,7 @@ const ts = {
9994 } ,
10095 plugins : {
10196 '@typescript-eslint' : tsPlugin ,
102- '@stylistic/ts ' : stylisticTs ,
97+ '@stylistic' : stylistic ,
10398 'putout' : plugin ,
10499 } ,
105100 rules : {
@@ -109,7 +104,7 @@ const ts = {
109104 '@typescript-eslint/no-explicit-any' : 'off' ,
110105 '@typescript-eslint/ban-types' : 'off' ,
111106 '@typescript-eslint/no-empty-function' : 'off' ,
112- '@stylistic/ts/ type-annotation-spacing' : 'error' ,
107+ '@stylistic/type-annotation-spacing' : 'error' ,
113108 } ,
114109} ;
115110
0 commit comments