|
|
@ -32,57 +32,59 @@ module.exports = {
|
|
|
|
'@typescript-eslint/no-unused-vars': [
|
|
|
|
'@typescript-eslint/no-unused-vars': [
|
|
|
|
'error',
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
{
|
|
|
|
argsIgnorePattern: '^_'
|
|
|
|
argsIgnorePattern: '^_',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'@typescript-eslint/no-object-literal-type-assertion': 'off',
|
|
|
|
'@typescript-eslint/no-object-literal-type-assertion': 'off',
|
|
|
|
'@typescript-eslint/no-unused-vars': 'off',
|
|
|
|
'@typescript-eslint/no-unused-vars': 'off',
|
|
|
|
'@typescript-eslint/prefer-interface': 'off'
|
|
|
|
'@typescript-eslint/prefer-interface': 'off',
|
|
|
|
|
|
|
|
'prettier/prettier': 'error',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
globals: {
|
|
|
|
globals: {
|
|
|
|
globalThis: false
|
|
|
|
globalThis: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
env: {
|
|
|
|
es6: true,
|
|
|
|
es6: true,
|
|
|
|
browser: true,
|
|
|
|
browser: true,
|
|
|
|
node: true,
|
|
|
|
node: true,
|
|
|
|
mocha: true
|
|
|
|
mocha: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:import/errors',
|
|
|
|
'plugin:import/errors',
|
|
|
|
'plugin:import/warnings',
|
|
|
|
'plugin:import/warnings',
|
|
|
|
'plugin:import/typescript',
|
|
|
|
'plugin:import/typescript',
|
|
|
|
'plugin:@typescript-eslint/recommended'
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
|
|
|
|
'plugin:prettier/recommended',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
parserOptions: {
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 9,
|
|
|
|
ecmaVersion: 9,
|
|
|
|
sourceType: 'module'
|
|
|
|
sourceType: 'module',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
plugins: ['svelte3'],
|
|
|
|
plugins: ['prettier', 'svelte3'],
|
|
|
|
settings: {
|
|
|
|
settings: {
|
|
|
|
'import/core-modules': [
|
|
|
|
'import/core-modules': [
|
|
|
|
'svelte',
|
|
|
|
'svelte',
|
|
|
|
'svelte/internal',
|
|
|
|
'svelte/internal',
|
|
|
|
'svelte/store',
|
|
|
|
'svelte/store',
|
|
|
|
'svelte/easing',
|
|
|
|
'svelte/easing',
|
|
|
|
'estree'
|
|
|
|
'estree',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'svelte3/compiler': require('./compiler')
|
|
|
|
'svelte3/compiler': require('./compiler'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
files: ['*.js'],
|
|
|
|
files: ['*.js'],
|
|
|
|
rules: {
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/no-var-requires': 'off'
|
|
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
files: ['*.svelte'],
|
|
|
|
files: ['*.svelte'],
|
|
|
|
processor: 'svelte3/svelte3',
|
|
|
|
processor: 'svelte3/svelte3',
|
|
|
|
rules: {
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/indent': 'off'
|
|
|
|
'@typescript-eslint/indent': 'off',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
|
|
|
],
|
|
|
|
};
|
|
|
|
};
|
|
|
|