mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
* Replace `console.log` `console.error` with Winston logger * Add ESLint warning of `console`
33 lines
891 B
JavaScript
33 lines
891 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
jest: true,
|
|
},
|
|
plugins: ['cypress'],
|
|
extends: [
|
|
'plugin:vue/vue3-essential',
|
|
'airbnb-base',
|
|
'plugin:prettier/recommended', // We added this
|
|
'plugin:cypress/recommended',
|
|
],
|
|
parserOptions: {
|
|
// parser: 'babel-eslint',
|
|
ecmaVersion: 13,
|
|
sourceType: 'module',
|
|
},
|
|
rules: {
|
|
'no-console': 'warn',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'import/extensions': 'off',
|
|
camelcase: ['error', { properties: 'never', ignoreDestructuring: true }],
|
|
'no-param-reassign': ['error', { props: false }],
|
|
'no-underscore-dangle': ['error', { allow: ['_id'] }],
|
|
/* we added this */
|
|
'no-var': 'error',
|
|
'no-plusplus': 'off',
|
|
'prettier/prettier': ['error', { endOfLine: 'auto', semi: false }],
|
|
'import/prefer-default-export': 'off',
|
|
},
|
|
}
|