mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
34 lines
761 B
JavaScript
34 lines
761 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
jest: true
|
|
},
|
|
parserOptions: {
|
|
parser: 'babel-eslint'
|
|
},
|
|
extends: [
|
|
'standard',
|
|
'plugin:vue/essential',
|
|
'plugin:prettier/recommended'
|
|
],
|
|
// required to lint *.vue files
|
|
plugins: [
|
|
'vue',
|
|
'prettier',
|
|
'jest'
|
|
],
|
|
// add your custom rules here
|
|
rules: {
|
|
//'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'no-console': ['error'],
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
|
|
'prettier/prettier': ['error', {
|
|
htmlWhitespaceSensitivity: 'ignore'
|
|
}],
|
|
// 'newline-per-chained-call': [2]
|
|
}
|
|
}
|