responsive_image_grid/.eslintrc.js

26 lines
532 B
JavaScript
Raw Permalink Normal View History

2020-06-25 23:29:05 +02:00
module.exports = {
root: true,
env: {
node: true
},
2020-06-25 23:31:51 +02:00
extends: ['plugin:vue/essential', 'eslint:recommended', '@vue/prettier'],
2020-06-25 23:29:05 +02:00
parserOptions: {
2020-06-25 23:31:51 +02:00
parser: 'babel-eslint'
2020-06-25 23:29:05 +02:00
},
rules: {
2020-06-25 23:31:51 +02:00
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
2020-06-25 23:29:05 +02:00
},
overrides: [
{
files: [
2020-06-25 23:31:51 +02:00
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
2020-06-25 23:29:05 +02:00
],
env: {
jest: true
}
}
]
2020-06-25 23:31:51 +02:00
}