-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(monorepo): 🔧 upgrade dependencies and improve eslint conig sett…
…ings
- Loading branch information
Showing
7 changed files
with
1,536 additions
and
1,412 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,64 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:svelte/recommended', 'prettier'], | ||
parser: '@typescript-eslint/parser', | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'], | ||
plugins: ['svelte3', '@typescript-eslint'], | ||
ignorePatterns: ['*.cjs'], | ||
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], | ||
settings: { | ||
'svelte3/typescript': () => require('typescript'), | ||
}, | ||
plugins: ['@typescript-eslint'], | ||
parserOptions: { | ||
ecmaVersion: '2020', | ||
sourceType: 'module', | ||
ecmaVersion: 2020, | ||
tsconfigRootDir: __dirname, | ||
project: ['./tsconfig.eslint.json'], | ||
extraFileExtensions: ['.svelte'], | ||
}, | ||
env: { | ||
browser: true, | ||
es2017: true, | ||
es2021: true, | ||
node: true, | ||
}, | ||
global: { | ||
rules: { | ||
// Note: you must disable the base rule as it can report incorrect errors | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
varsIgnorePattern: '^_', | ||
argsIgnorePattern: '^_', | ||
caughtErrorsIgnorePattern: '^_', | ||
destructuredArrayIgnorePattern: '^_', | ||
}, | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.svelte'], | ||
parser: 'svelte-eslint-parser', | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
}, | ||
}, | ||
{ | ||
files: ['*.ts'], | ||
rules: { | ||
'no-mixed-spaces-and-tabs': 'off', | ||
}, | ||
}, | ||
], | ||
settings: { | ||
svelte: { | ||
ignoreWarnings: ['svelte/no-at-html-tags'], | ||
compileOptions: { | ||
postcss: { | ||
configFilePath: './postcss.config.cjs', | ||
}, | ||
}, | ||
kit: { | ||
files: { | ||
routes: 'src/routes', | ||
}, | ||
}, | ||
}, | ||
}, | ||
globals: { | ||
NodeJS: true, | ||
}, | ||
ignorePatterns: ['*.cjs'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.