@@ -63,7 +63,7 @@ module.exports = {
6363 {
6464 'newlines-between' : 'always' ,
6565 pathGroups : [
66- { pattern : '{react,next,gatsby}' , group : 'builtin' , position : 'before' , parserOptions : { "matchBase" : true } } ,
66+ { pattern : '{react,next,next/**, gatsby}' , group : 'builtin' , position : 'before' , parserOptions : { "matchBase" : true } } ,
6767 {
6868 pattern : '@material-ui/**' ,
6969 group : 'external' ,
@@ -75,9 +75,15 @@ module.exports = {
7575 group : 'external' ,
7676 position : 'after'
7777 } ,
78+ //
79+ {
80+ pattern : '~/{hooks,contexts,state,services,utils,validation,schemas,utilities}/**' ,
81+ group : 'external' ,
82+ position : 'after'
83+ } ,
7884 // Assets and static data
7985 {
80- pattern : '~/{assets,static,styles,theme,i18n,data}/**' ,
86+ pattern : '~/{assets,static,styles,theme,i18n,data,constants }/**' ,
8187 group : 'external' ,
8288 position : 'after'
8389 } ,
@@ -93,6 +99,9 @@ module.exports = {
9399 ] ,
94100 'import/named' : 'off' ,
95101 'unused-imports/no-unused-imports' : 'warn' ,
102+ 'no-nested-ternary' : 'off' ,
103+ 'jsx-a11y/alt-text' : 'warn' ,
104+ 'button-has-type' : 'off' ,
96105 camelcase : 'off' ,
97106
98107 // Typescript
@@ -104,11 +113,17 @@ module.exports = {
104113 '@typescript-eslint/interface-name-prefix' : 'off' ,
105114 '@typescript-eslint/no-empty-interface' : 'off' ,
106115 '@typescript-eslint/no-unsafe-member-access' : 'off' ,
107- '@typescript-eslint/ban-ts-ignore' : 'off ' ,
116+ '@typescript-eslint/ban-ts-ignore' : 'warn ' ,
108117 '@typescript-eslint/ban-ts-comment' : 'warn' ,
109118 '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
110119 '@typescript-eslint/no-unused-vars' : 'off' ,
111- '@typescript-eslint/no-unused-vars-experimental' : 'off' ,
120+ '@typescript-eslint/no-unused-vars-experimental' : [
121+ 'error' ,
122+ {
123+ ignoredNamesRegex : '^_' ,
124+ ignoreArgsIfArgsAfterAreUsed : true
125+ }
126+ ] ,
112127 '@typescript-eslint/explicit-function-return-type' : 'off' ,
113128 '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
114129 '@typescript-eslint/no-use-before-define' : 'off' ,
@@ -128,18 +143,26 @@ module.exports = {
128143 {
129144 selector : 'variable' ,
130145 format : [ 'camelCase' , 'PascalCase' , 'UPPER_CASE' , 'snake_case' ] ,
146+ leadingUnderscore : 'allow'
131147 } ,
132148 {
133149 selector : 'function' ,
134150 format : [ 'camelCase' , 'PascalCase' ] ,
135151 } ,
152+ {
153+ selector : 'enum' ,
154+ format : [ 'UPPER_CASE' , 'PascalCase' ] ,
155+ } ,
136156 {
137157 selector : 'typeLike' ,
138158 format : [ 'PascalCase' ] ,
139- } ,
159+ }
140160 ] ,
141161
142162 // React
163+ 'react/destructuring-assignment' : 'warn' ,
164+ 'react/no-array-index-key' : 'warn' ,
165+ 'react/jsx-no-duplicate-props' : [ 'error' , { 'ignoreCase' : false } ] ,
143166 'react/jsx-props-no-spreading' : 'off' ,
144167 'react/require-default-props' : 'off' ,
145168 'react/jsx-uses-react' : 'off' ,
0 commit comments