Damien Broqua
b27a81a0b6
Co-authored-by: dbroqua <contact@darkou.fr> Reviewed-on: #28 Co-authored-by: Damien Broqua <dbroqua@noreply.localhost> Co-committed-by: Damien Broqua <dbroqua@noreply.localhost>
36 lines
668 B
JavaScript
36 lines
668 B
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2020: true,
|
|
node: true,
|
|
jquery: true,
|
|
},
|
|
extends: ['airbnb-base', 'prettier'],
|
|
plugins: ['prettier'],
|
|
parserOptions: {
|
|
ecmaVersion: 11,
|
|
sourceType: 'module',
|
|
},
|
|
rules: {
|
|
'prettier/prettier': ['error'],
|
|
'no-underscore-dangle': [
|
|
'error',
|
|
{
|
|
allow: ['_id', 'artists_sort', 'type_'],
|
|
},
|
|
],
|
|
'camelcase': [
|
|
'error',
|
|
{
|
|
allow: ['artists_sort',]
|
|
},
|
|
],
|
|
},
|
|
ignorePatterns: ['public/libs/**/*.js', 'public/js/main.js', 'dist/**'],
|
|
overrides: [
|
|
{
|
|
files: ['**/*.js'],
|
|
excludedFiles: '*.ejs',
|
|
},
|
|
],
|
|
};
|