first commit
This commit is contained in:
36
.eslintrc.cjs
Normal file
36
.eslintrc.cjs
Normal file
@ -0,0 +1,36 @@
|
||||
/* eslint-env node */
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
require('@rushstack/eslint-patch/modern-module-resolution');
|
||||
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: [
|
||||
'plugin:vue/vue3-recommended',
|
||||
'eslint:recommended',
|
||||
'@vue/eslint-config-typescript',
|
||||
'@vue/eslint-config-prettier',
|
||||
'alloy',
|
||||
'alloy/vue',
|
||||
'alloy/typescript',
|
||||
'./config/unplugin/.eslintrc-auto-import.json',
|
||||
],
|
||||
parser: 'vue-eslint-parser',
|
||||
parserOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
parser: {
|
||||
js: '@babel/eslint-parser',
|
||||
jsx: '@babel/eslint-parser',
|
||||
ts: '@typescript-eslint/parser',
|
||||
tsx: '@typescript-eslint/parser',
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/prefer-optional-chain': 'off',
|
||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||
'prettier/prettier': ['error', { endOfLine: 'auto' }],
|
||||
},
|
||||
globals: {
|
||||
defineOptions: 'readonly',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user