@@ -9,6 +9,7 @@ module.exports = {
99 'plugin:react-hooks/recommended' ,
1010 'plugin:import/recommended' ,
1111 'plugin:import/typescript' ,
12+ 'plugin:storybook/recommended' ,
1213 ] ,
1314 plugins : [
1415 '@typescript-eslint' ,
@@ -25,34 +26,50 @@ module.exports = {
2526 es6 : true ,
2627 } ,
2728 parserOptions : {
29+ project : './tsconfig.json' ,
2830 ecmaVersion : 2018 ,
2931 sourceType : 'module' ,
30- ecmaFeatures : {
31- jsx : true ,
32- } ,
3332 } ,
3433 rules : {
3534 eqeqeq : 'error' ,
3635 'no-var' : 'error' ,
3736 'prefer-const' : 'error' ,
3837 curly : [ 'warn' , 'multi-line' , 'consistent' ] ,
39- 'no-console' : 'off' ,
40- 'import/no-unresolved' : [ 'error' , { commonjs : true , amd : true } ] ,
38+ 'no-console' : [ 'error' , { allow : [ 'warn' , 'info' , 'error' ] } ] ,
39+ 'import/no-unresolved' : [
40+ 'error' ,
41+ {
42+ commonjs : true ,
43+ amd : true ,
44+ } ,
45+ ] ,
4146 'import/export' : 'error' ,
4247 '@typescript-eslint/no-duplicate-imports' : [ 'error' ] ,
4348 '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
4449 '@typescript-eslint/no-unused-vars' : [
4550 'warn' ,
46- { argsIgnorePattern : '^_' , varsIgnorePattern : '^_' } ,
51+ {
52+ argsIgnorePattern : '^_' ,
53+ varsIgnorePattern : '^_' ,
54+ } ,
4755 ] ,
4856 '@typescript-eslint/no-use-before-define' : 'off' ,
4957 '@typescript-eslint/no-empty-function' : 'off' ,
5058 '@typescript-eslint/no-explicit-any' : 'off' ,
51- 'jest/consistent-test-it' : [ 'error' , { fn : 'it' , withinDescribe : 'it' } ] ,
59+ 'jest/consistent-test-it' : [
60+ 'error' ,
61+ {
62+ fn : 'it' ,
63+ withinDescribe : 'it' ,
64+ } ,
65+ ] ,
5266 'import/order' : [
5367 'error' ,
5468 {
55- alphabetize : { order : 'asc' , caseInsensitive : true } ,
69+ alphabetize : {
70+ order : 'asc' ,
71+ caseInsensitive : true ,
72+ } ,
5673 groups : [
5774 'builtin' ,
5875 'external' ,
@@ -73,8 +90,9 @@ module.exports = {
7390 pathGroupsExcludedImportTypes : [ 'builtin' ] ,
7491 } ,
7592 ] ,
76- 'react/jsx-uses-react' : 'off' ,
77- 'react/react-in-jsx-scope' : 'off' ,
93+ // Disable it until we start supporting `react-jsx` again.
94+ // 'react/jsx-uses-react': 'off',
95+ // 'react/react-in-jsx-scope': 'off',
7896 'sort-imports' : [
7997 'error' ,
8098 {
0 commit comments