Actually run linter on .svelte files
This commit is contained in:
parent
8131827f43
commit
271a88e3a0
|
@ -1,13 +1,25 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: 'standard-with-typescript',
|
|
||||||
parser: '@typescript-eslint/parser',
|
parser: '@typescript-eslint/parser',
|
||||||
parserOptions: { // add these parser options
|
parserOptions: {
|
||||||
project: ['./tsconfig.json']
|
tsconfigRootDir: __dirname,
|
||||||
|
project: ['./tsconfig.json'],
|
||||||
|
extraFileExtensions: ['.svelte']
|
||||||
},
|
},
|
||||||
|
extends: ['standard-with-typescript'],
|
||||||
plugins: [
|
plugins: [
|
||||||
'svelte3',
|
'svelte3',
|
||||||
'@typescript-eslint'
|
'@typescript-eslint'
|
||||||
],
|
],
|
||||||
|
// Disable these rules: import/first, import/no-duplicates, import/no-mutable-exports, import/no-unresolved, import/prefer-default-export
|
||||||
|
// Reference: https://github.com/sveltejs/eslint-plugin-svelte3/blob/master/OTHER_PLUGINS.md#eslint-plugin-import
|
||||||
|
rules: {
|
||||||
|
'import/first': 'off',
|
||||||
|
'import/no-duplicates': 'off',
|
||||||
|
'import/no-mutable-exports': 'off',
|
||||||
|
'import/no-unresolved': 'off',
|
||||||
|
'import/prefer-default-export': 'off',
|
||||||
|
'no-multiple-empty-lines': ['error', { max: 2, maxBOF: 2, maxEOF: 0 }] // See: https://github.com/sveltejs/eslint-plugin-svelte3/issues/41
|
||||||
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
files: [
|
files: [
|
||||||
|
|
Loading…
Reference in New Issue