1+ const stylistic = require ( '@stylistic/eslint-plugin' ) ;
2+
3+ const stylisticConfig = stylistic . configs . customize ( {
4+ semi : true ,
5+ arrowParens : true ,
6+ braceStyle : '1tbs' ,
7+ quoteProps : 'as-needed' ,
8+ } ) ;
9+
110module . exports = {
211 env : {
312 node : true ,
413 'jest/globals' : true ,
514 } ,
6- extends : [ 'eslint:recommended' , 'plugin:@typescript-eslint/recommended' , 'prettier' ] ,
15+ extends : [ 'eslint:recommended' , 'plugin:@typescript-eslint/recommended' ] ,
716 parser : '@typescript-eslint/parser' ,
817 parserOptions : {
918 project : [
@@ -12,8 +21,9 @@ module.exports = {
1221 ] ,
1322 tsconfigRootDir : __dirname ,
1423 } ,
15- plugins : [ '@typescript-eslint' , 'import' , 'prettier ' , 'jest' ] ,
24+ plugins : [ '@typescript-eslint' , '@stylistic' , 'simple- import-sort ', 'import ' , 'jest' ] ,
1625 ignorePatterns : [
26+ '**/node_modules/**' ,
1727 '**/dist/**' ,
1828 '**/vercel/examples/**' ,
1929 '**/react-native/example/**' ,
@@ -42,7 +52,18 @@ module.exports = {
4252 'error' ,
4353 { ignoreRestSiblings : true , argsIgnorePattern : '^_' , varsIgnorePattern : '^__' } ,
4454 ] ,
45- 'prettier/prettier' : [ 'error' ] ,
55+
56+ ...stylisticConfig . rules ,
57+ '@stylistic/quotes' : [ 'error' , 'single' , { avoidEscape : true } ] ,
58+ 'simple-import-sort/imports' : [ 'error' , {
59+ groups : [
60+ [ '^\\u0000' ] ,
61+ [ '^node:' , '^(?!@launchdarkly)(?!\\.)' ] ,
62+ [ '^@launchdarkly' ] ,
63+ [ '^\\.' ] ,
64+ ] ,
65+ } ] ,
66+ 'simple-import-sort/exports' : 'error' ,
4667 'class-methods-use-this' : 'off' ,
4768 'import/no-extraneous-dependencies' : [
4869 'error' ,
0 commit comments