2018-03-17 11:27:41 -04:00
|
|
|
module.exports = {
|
2020-01-11 03:09:10 -05:00
|
|
|
env: {
|
|
|
|
browser: true,
|
2020-04-13 10:15:18 -04:00
|
|
|
node: true,
|
2020-01-11 03:09:10 -05:00
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'airbnb-base',
|
|
|
|
'plugin:import/errors',
|
|
|
|
'plugin:import/warnings',
|
2020-04-13 10:15:18 -04:00
|
|
|
'prettier',
|
|
|
|
'eslint:recommended',
|
2020-01-11 03:09:10 -05:00
|
|
|
],
|
|
|
|
plugins: ['import', 'prettier'],
|
|
|
|
rules: {
|
2020-04-13 10:15:18 -04:00
|
|
|
camelcase: 0,
|
2020-01-11 03:09:10 -05:00
|
|
|
'import/order': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
|
2020-04-13 10:15:18 -04:00
|
|
|
'newlines-between': 'never',
|
|
|
|
},
|
2020-01-11 03:09:10 -05:00
|
|
|
],
|
|
|
|
'no-console': 0,
|
|
|
|
'prefer-template': 2,
|
|
|
|
'prettier/prettier': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
singleQuote: true,
|
2020-04-13 10:15:18 -04:00
|
|
|
trailingComma: 'all',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-01-11 03:09:10 -05:00
|
|
|
};
|