refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
28
home/ags/node_modules/eslint-plugin-import/config/recommended.js
generated
vendored
28
home/ags/node_modules/eslint-plugin-import/config/recommended.js
generated
vendored
|
|
@ -1,28 +0,0 @@
|
|||
/**
|
||||
* The basics.
|
||||
* @type {Object}
|
||||
*/
|
||||
module.exports = {
|
||||
plugins: ['import'],
|
||||
|
||||
rules: {
|
||||
// analysis/correctness
|
||||
'import/no-unresolved': 'error',
|
||||
'import/named': 'error',
|
||||
'import/namespace': 'error',
|
||||
'import/default': 'error',
|
||||
'import/export': 'error',
|
||||
|
||||
// red flags (thus, warnings)
|
||||
'import/no-named-as-default': 'warn',
|
||||
'import/no-named-as-default-member': 'warn',
|
||||
'import/no-duplicates': 'warn',
|
||||
},
|
||||
|
||||
// need all these for parsing dependencies (even if _your_ code doesn't need
|
||||
// all of them)
|
||||
parserOptions: {
|
||||
sourceType: 'module',
|
||||
ecmaVersion: 2018,
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue