mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-21 07:30:23 +03:00
33 lines
914 B
JavaScript
33 lines
914 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
commonjs: true,
|
|
es2021: true
|
|
},
|
|
extends: ['plugin:vue/essential', 'eslint:recommended'],
|
|
parserOptions: {
|
|
parser: 'babel-eslint'
|
|
},
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
indent: ['error', 4],
|
|
semi: ['error', 'never'],
|
|
quotes: ['error', 'single'],
|
|
'comma-dangle': ['error', 'never'],
|
|
'arrow-parens': ['error', 'as-needed'],
|
|
'no-underscore-dangle': ['warn', { allowAfterThis: true }]
|
|
},
|
|
overrides: [
|
|
{
|
|
files: [
|
|
'**/__tests__/*.{j,t}s?(x)',
|
|
'**/tests/unit/**/*.spec.{j,t}s?(x)'
|
|
],
|
|
env: {
|
|
jest: true
|
|
}
|
|
}
|
|
]
|
|
}
|