cosmos-explorer/.eslintrc.js

39 lines
1.2 KiB
JavaScript
Raw Normal View History

2021-07-21 14:07:38 +00:00
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'@vue/airbnb',
'plugin:vue/recommended',
// "plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
// "plugin:prettier/recommended",
// "prettier/@typescript-eslint"
],
2021-07-21 14:07:38 +00:00
parserOptions: {
2022-05-19 13:14:02 +00:00
parser: '@babel/eslint-parser',
2021-07-21 14:07:38 +00:00
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
semi: ['error', 'never'],
'max-len': 'off',
'linebreak-style': 'off',
2022-05-19 13:14:02 +00:00
// camelcase: ['error', { properties: 'never', ignoreDestructuring: true, ignoreImports: true }],
2021-07-21 14:07:38 +00:00
'arrow-parens': ['error', 'as-needed'],
'vue/multiline-html-element-content-newline': 'off',
2022-05-19 13:14:02 +00:00
'vue/multi-word-component-names': 0,
'vue/no-mutating-props': 0,
'vue/v-slot-style': 0,
'camelcase': 0,
'vuejs-accessibility/click-events-have-key-events': 'off',
'vuejs-accessibility/mouse-events-have-key-events': 'off',
'vuejs-accessibility/anchor-has-content': 'off',
'no-unsafe-optional-chaining': 1,
'vuejs-accessibility/label-has-for': 1,
'import/extensions': 'off'
2021-07-21 14:07:38 +00:00
},
}