11const {
2- aliases
2+ aliases
33} = require ( './package.json' ) ;
44
55module . exports = {
6- env : {
7- browser : true ,
8- node : true ,
9- es6 : true ,
10- jest : true
11- } ,
12- extends : [ "airbnb" , "plugin:@typescript-eslint/recommended" , "plugin:import/errors" , "plugin:import/warnings" , "plugin:import/typescript" , "prettier" , "plugin:storybook/recommended" ] ,
13- globals : {
14- Atomics : 'readonly' ,
15- SharedArrayBuffer : 'readonly'
16- } ,
17- parser : '@typescript-eslint/parser' ,
18- settings : {
19- 'import/resolver' : {
20- alias : {
21- map : Object . entries ( aliases ) . map ( item => {
22- item [ 1 ] = `./${ item [ 1 ] } ` ;
23- return item ;
24- } ) ,
25- extensions : [ '.ts' , '.tsx' , '.json' , '.js' ]
26- }
27- }
28- } ,
29- parserOptions : {
30- ecmaFeatures : {
31- jsx : true
6+ env : {
7+ browser : true ,
8+ node : true ,
9+ es6 : true ,
10+ jest : true
11+ } ,
12+ extends : [ "airbnb" , "plugin:@typescript-eslint/recommended" , "plugin:import/errors" , "plugin:import/warnings" , "plugin:import/typescript" , "prettier" , "plugin:storybook/recommended" ] ,
13+ globals : {
14+ Atomics : 'readonly' ,
15+ SharedArrayBuffer : 'readonly'
16+ } ,
17+ parser : '@typescript-eslint/parser' ,
18+ settings : {
19+ 'import/resolver' : {
20+ alias : {
21+ map : Object . entries ( aliases ) . map ( item => {
22+ item [ 1 ] = `./${ item [ 1 ] } ` ;
23+ return item ;
24+ } ) ,
25+ extensions : [ '.ts' , '.tsx' , '.json' , '.js' ]
26+ }
27+ }
3228 } ,
33- ecmaVersion : 2018 ,
34- sourceType : 'module'
35- } ,
36- plugins : [ '@typescript-eslint' , 'react' ] ,
37- rules : {
38- '@typescript-eslint/no-empty-interface' : 'off' ,
39- '@typescript-eslint/no-var-requires' : 'off' ,
40- '@typescript-eslint/no-shadow' : 'error' ,
41- '@typescript-eslint/ban-types' : [ 'off' ] ,
42- 'react/jsx-filename-extension' : [ 'error' , {
43- extensions : [ '.tsx' ]
44- } ] ,
45- 'react/jsx-indent-props' : [ 'error' , 4 ] ,
46- 'react/jsx-indent' : [ 'error' , 4 ] ,
47- 'react/jsx-props-no-spreading' : [ 'off' ] ,
48- 'react/prop-types' : 'off' ,
49- 'import/namespace' : [ 'error' , {
50- allowComputed : true
51- } ] ,
52- 'import/prefer-default-export' : 'off' ,
53- 'import/extensions' : 'off' ,
54- 'import/no-extraneous-dependencies' : 'off' ,
55- camelcase : 'off' ,
56- 'no-shadow' : 'off' ,
57- 'no-use-before-define' : [ 0 ] ,
58- 'array-callback-return' : 'off' ,
59- 'no-underscore-dangle' : 'off' ,
60- 'no-param-reassign' : 'off' ,
61- '@typescript-eslint/ban-ts-comment' : 'off' ,
62- '@typescript-eslint/no-explicit-any' : 'off' ,
63- 'react/destructuring-assignment' : 'off' ,
64- 'no-console' : 'off' ,
65- 'import/no-named-as-default' : 'off' ,
66- 'no-alert' : 'off' ,
67- indent : [ 'error' , 4 ] ,
68- 'react/require-default-props' : 'off'
69- }
29+ parserOptions : {
30+ ecmaFeatures : {
31+ jsx : true
32+ } ,
33+ ecmaVersion : 2018 ,
34+ sourceType : 'module'
35+ } ,
36+ plugins : [ '@typescript-eslint' , 'react' ] ,
37+ rules : {
38+ '@typescript-eslint/no-empty-interface' : 'off' ,
39+ '@typescript-eslint/no-var-requires' : 'off' ,
40+ '@typescript-eslint/no-shadow' : 'error' ,
41+ '@typescript-eslint/ban-types' : [ 'off' ] ,
42+ 'react/jsx-filename-extension' : [ 'error' , {
43+ extensions : [ '.tsx' ]
44+ } ] ,
45+ 'react/jsx-indent-props' : [ 'error' , 4 ] ,
46+ 'react/jsx-indent' : [ 'error' , 4 ] ,
47+ 'react/jsx-props-no-spreading' : [ 'off' ] ,
48+ 'react/prop-types' : 'off' ,
49+ 'import/namespace' : [ 'error' , {
50+ allowComputed : true
51+ } ] ,
52+ 'import/prefer-default-export' : 'off' ,
53+ 'import/extensions' : 'off' ,
54+ 'import/no-extraneous-dependencies' : 'off' ,
55+ camelcase : 'off' ,
56+ 'no-shadow' : 'off' ,
57+ 'no-use-before-define' : [ 0 ] ,
58+ 'array-callback-return' : 'off' ,
59+ 'no-underscore-dangle' : 'off' ,
60+ 'no-param-reassign' : 'off' ,
61+ '@typescript-eslint/ban-ts-comment' : 'off' ,
62+ '@typescript-eslint/no-explicit-any' : 'off' ,
63+ 'react/destructuring-assignment' : 'off' ,
64+ 'no-console' : 'off' ,
65+ 'import/no-named-as-default' : 'off' ,
66+ 'no-alert' : 'off' ,
67+ indent : [ 'error' , 4 ] ,
68+ 'react/require-default-props' : 'off'
69+ }
7070} ;
0 commit comments