bridge/website/.eslintrc.js

38 lines
743 B
JavaScript
Raw Permalink Normal View History

2021-01-18 19:39:16 +01:00
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/essential',
'@vue/airbnb',
'@vue/typescript/recommended',
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
2021-01-25 13:21:10 +01:00
'import/prefer-default-export': ['warn'],
"prefer-destructuring": ["error", {
"array": false,
"object": true
}]
2021-01-18 19:39:16 +01:00
},
2021-01-18 23:08:39 +01:00
overrides: [
{
files: './src/graphql/generated.ts',
rules: {
'max-len': ['off']
},
},
2021-01-22 17:47:26 +01:00
{
files: '**/*.vue',
rules: {
'class-methods-use-this': ['off']
}
}
2021-01-18 23:08:39 +01:00
],
2021-01-18 19:39:16 +01:00
};