@perfective/eslint-config
Version:
ESLint shareable rules configuration
26 lines • 762 B
JavaScript
export const staticAnalysisRules = {
'import/default': 'error',
'import/named': ['error', {
commonjs: false
}],
'import/namespace': 'error',
'import/no-absolute-path': 'error',
'import/no-cycle': ['error', {
ignoreExternal: true,
allowUnsafeDynamicCyclicDependency: false
}],
'import/no-dynamic-require': ['error', {
esmodule: true
}],
'import/no-internal-modules': 'off',
'import/no-relative-packages': 'warn',
'import/no-relative-parent-imports': 'off',
'import/no-restricted-paths': 'off',
'import/no-self-import': 'error',
'import/no-unresolved': ['error', {
caseSensitive: true,
caseSensitiveStrict: true
}],
'import/no-useless-path-segments': 'warn',
'import/no-webpack-loader-syntax': 'error'
};