cosmos-explorer/.eslintrc.js

49 lines
1.5 KiB
JavaScript
Raw Permalink Normal View History

2021-07-21 14:07:38 +00:00
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'@vue/airbnb',
2022-09-03 01:26:47 +00:00
'plugin:vue/recommended',
'plugin:import/typescript',
2022-09-03 04:48:02 +00:00
// 'prettier/@typescript-eslint',
'plugin:@typescript-eslint/recommended',
// "plugin:prettier/recommended",
],
2022-09-03 04:48:02 +00:00
parser: 'vue-eslint-parser',
2021-07-21 14:07:38 +00:00
parserOptions: {
2022-09-03 04:48:02 +00:00
parser: '@typescript-eslint/parser',
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: false,
modules: true,
experimentalObjectRestSpread: true,
},
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'],
2022-09-03 04:48:02 +00:00
'vue/new-line-between-multi-line-property': 0,
'vue/multiline-html-element-content-newline': 0,
2022-05-19 13:14:02 +00:00
'vue/multi-word-component-names': 0,
'vue/no-mutating-props': 0,
'vue/v-slot-style': 0,
2022-09-03 04:48:02 +00:00
'@typescript-eslint/no-empty-function': 1,
2022-09-03 01:26:47 +00:00
camelcase: 0,
2022-05-19 13:14:02 +00:00
'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,
2022-09-03 01:26:47 +00:00
'import/extensions': 'off',
2021-07-21 14:07:38 +00:00
},
}