import { extensions } from './constants' ; export const importSettings = { 'import/extensions' : extensions . js , 'import/resolver' : { node : { extensions : extensions . js , } , } , 'import/core-modules' : [ ] , 'import/ignore' : [ '\\.(coffee|scss|css|less|hbs|svg|json)$' ] , 'import/internal-regex' : '^@types/' , } ; interface ImportRules { [ rule ] : unknown ; 'import/extensions' : [ string , string , Record < string , 'never' > ] ; } export const importRules = { 'import/no-unresolved' : [ 'error' , { commonjs : true , caseSensitive : true } ] , 'import/no-anonymous-default-export' : [ 'error' , { allowCallExpression : false , } , ] , 'import/export' : 'error' , 'import/no-mutable-exports' : 'error' , 'import/no-amd' : 'error' , 'import/first' : 'error' , 'import/no-duplicates' : 'error' , 'import/extensions' : [ 'warn' , 'ignorePackages' , { js : 'never' , mjs : 'never' , jsx : 'never' , } , ] , 'import/newline-after-import' : 'warn' , 'import/no-webpack-loader-syntax' : 'error' , 'import/no-self-import' : 'error' , 'import/no-cycle' : [ 'error' , { maxDepth : Number . POSITIVE_INFINITY } ] , 'import/no-useless-path-segments' : [ 'warn' , { commonjs : true } ] , } ;