build the structure of the extension

This commit is contained in:
Levi Yan
2024-06-27 01:20:37 +08:00
parent 3fbaa07bee
commit 95b7e3b32d
16 changed files with 1107 additions and 0 deletions

70
.eslintrc.js Normal file
View File

@@ -0,0 +1,70 @@
module.exports = {
'env': {
'browser': false,
'es6': true,
'node': true,
'jasmine': true,
},
'plugins': [
'import'
],
'extends': [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings'
],
'parser': '@babel/eslint-parser',
'parserOptions': {
'ecmaVersion': 6,
'sourceType': 'module'
},
'settings': {
'import/core-modules': [
'vscode'
]
},
'rules': {
'comma-dangle': [
'error',
'only-multiline'
],
'curly': [
'warn',
'all'
],
'linebreak-style': [
// 'error',
'unix'
],
'no-console': [
'error',
{
'allow': ['warn', 'error', 'info']
},
],
'prefer-const': 'error',
'quotes': [
'error',
'single',
'avoid-escape'
],
'semi': [
'error',
'always'
],
'sort-imports': [
'warn',
{
'ignoreCase': false,
'ignoreMemberSort': false,
'memberSyntaxSortOrder': ['none', 'all', 'multiple', 'single']
}
],
'no-useless-escape': [
'off'
],
'no-empty': [2, {
'allowEmptyCatch': true
}]
},
};