mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08:00
37 lines
736 B
JavaScript
37 lines
736 B
JavaScript
module.exports = {
|
|
parser: 'babel-eslint',
|
|
// extends: ['eslint:recommended', 'plugin:prettier/recommended'],
|
|
extends: ['eslint:recommended'],
|
|
plugins: ['prettier'],
|
|
parserOptions: {
|
|
ecmaVersion: 6,
|
|
sourceType: 'module'
|
|
},
|
|
env: {
|
|
node: true,
|
|
commonjs: true,
|
|
es6: true
|
|
},
|
|
globals: {
|
|
'RL_COMMUNITY': true,
|
|
'RL_ES6': true
|
|
},
|
|
// http://eslint.org/docs/rules/
|
|
rules: {
|
|
// plugins
|
|
// 'prettier/prettier': 'error',
|
|
'no-mixed-spaces-and-tabs': 'off',
|
|
'no-console': 'error',
|
|
'max-len': [
|
|
'error',
|
|
120,
|
|
2,
|
|
{
|
|
ignoreComments: true,
|
|
ignoreUrls: true,
|
|
ignoreTrailingComments: true,
|
|
ignorePattern: '(^\\s*(const|let|var)\\s.+=\\s*require\\s*\\(|^import\\s.+\\sfrom\\s.+;$)'
|
|
}
|
|
]
|
|
}
|
|
};
|