eslint-es6/index.js

64 lines
1.7 KiB
JavaScript
Raw Normal View History

2019-12-15 19:37:10 +01:00
/*
* Copyright (C) Sapphirecode - All Rights Reserved
* This file is part of SCode-Eslint-Config which is released under BSD-3-Clause.
* See file 'LICENSE' for full license details.
* Created by Timo Hocker <timo@scode.ovh>, March 2020
*/
module.exports = {
globals: {},
parser: 'babel-eslint',
extends: [
2020-04-06 08:28:51 +02:00
'@scode'
2019-12-15 19:37:10 +01:00
],
plugins: [
2020-04-06 08:28:51 +02:00
'eslint-plugin-import'
2019-12-15 19:37:10 +01:00
],
2020-04-06 08:39:08 +02:00
parserOptions: {
sourceType: 'module'
},
2019-12-15 19:37:10 +01:00
rules: {
2020-04-08 10:25:25 +02:00
// deactivate commonjs rules
'node/no-unsupported-features/es-syntax': 'off',
// import
2020-04-06 08:28:51 +02:00
'import/no-unresolved': 'error',
'import/named': 'error',
'import/default': 'error',
'import/namespace': 'error',
'import/no-absolute-path': 'error',
'import/no-dynamic-require': 'warn',
'import/no-webpack-loader-syntax': 'error',
'import/no-self-import': 'error',
'import/no-cycle': 'error',
'import/no-useless-path-segments': 'error',
'import/no-unused-modules': 'error',
'import/export': 'error',
'import/no-named-as-default': 'error',
'import/no-named-as-default-member': 'error',
'import/no-deprecated': 'error',
'import/no-extraneous-dependencies': 'error',
'import/no-mutable-exports': 'error',
'import/unambiguous': 'error',
'import/no-commonjs': 'error',
'import/no-amd': 'error',
'import/first': 'error',
'import/exports-last': 'error',
'import/no-duplicates': 'error',
'import/no-namespace': 'error',
'import/extensions': 'error',
'import/order': 'error',
'import/newline-after-import': 'error',
'import/prefer-default-export': 'error',
'import/no-unassigned-import': 'error',
'import/no-named-default': 'error',
'import/group-exports': 'error'
2019-12-15 19:37:10 +01:00
}
}