build the structure of the extension
This commit is contained in:
70
.eslintrc.js
Normal file
70
.eslintrc.js
Normal 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
|
||||
}]
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user