2022-02-22 17:19:19 +03:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
extends: [
|
2022-02-22 18:56:54 +03:00
|
|
|
'plugin:vue/essential',
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:prettier/recommended',
|
2022-02-22 17:19:19 +03:00
|
|
|
],
|
|
|
|
parserOptions: {
|
2022-02-22 18:56:54 +03:00
|
|
|
parser: '@babel/eslint-parser',
|
2022-02-22 17:19:19 +03:00
|
|
|
},
|
|
|
|
rules: {
|
2022-02-22 18:56:54 +03:00
|
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
2022-02-22 19:12:06 +03:00
|
|
|
'prettier/prettier': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
endOfLine: 'auto',
|
|
|
|
},
|
|
|
|
],
|
2022-02-22 17:19:19 +03:00
|
|
|
},
|
2022-02-22 18:56:54 +03:00
|
|
|
}
|