tdesign-vue-next-starter/.eslintrc

63 lines
1.6 KiB
Plaintext
Raw Normal View History

2021-11-26 11:32:16 +08:00
{
"extends": [
"plugin:@typescript-eslint/recommended",
"eslint-config-airbnb-base",
"plugin:vue/vue3-recommended",
2022-04-30 23:16:41 +08:00
"plugin:vue-scoped-css/base",
2021-11-26 11:32:16 +08:00
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
},
2022-02-16 20:22:02 +08:00
"globals": {
"defineProps": "readonly",
"defineEmits": "readonly"
},
2022-03-24 01:37:51 +08:00
"plugins": ["vue", "@typescript-eslint"],
2021-11-26 11:32:16 +08:00
"parserOptions": {
"parser": "@typescript-eslint/parser",
"sourceType": "module",
"allowImportExportEverywhere": true,
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
2022-03-24 01:37:51 +08:00
"import/extensions": [".js", ".jsx", ".ts", ".tsx"]
2021-11-26 11:32:16 +08:00
},
"rules": {
"no-console": "off",
2021-11-26 11:32:16 +08:00
"no-continue": "off",
"no-restricted-syntax": "off",
"no-plusplus": "off",
2022-03-24 01:37:51 +08:00
"no-param-reassign": "off",
"no-shadow": "off",
2021-11-26 11:32:16 +08:00
"guard-for-in": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
2021-11-26 11:32:16 +08:00
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
2022-03-24 01:37:51 +08:00
"import/first": "off", // https://github.com/vuejs/vue-eslint-parser/issues/58
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"vue/first-attribute-linebreak": 0
},
"overrides": [
{
"files": ["*.vue"],
"rules": {
"vue/component-name-in-template-casing": [2, "kebab-case"],
"vue/require-default-prop": 0,
"vue/multi-word-component-names": 0,
"vue/no-reserved-props": 0,
2022-04-30 23:16:41 +08:00
"vue/no-v-html": 0,
"vue-scoped-css/enforce-style-type": ["error", { "allows": ["scoped"] }]
}
}
]
2022-03-24 01:37:51 +08:00
}