jokes-bapak2/client/.eslintrc.cjs

31 lines
723 B
JavaScript
Raw Normal View History

2021-07-09 03:50:38 +00:00
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
2023-08-12 05:26:05 +00:00
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier', 'plugin:svelte/prettier'],
plugins: ['@typescript-eslint'],
2021-07-09 03:50:38 +00:00
ignorePatterns: ['*.cjs'],
settings: {
'svelte3/typescript': () => require('typescript')
},
2023-08-12 05:26:05 +00:00
overrides: [
{
files: ["*.svelte"],
parser: "svelte-eslint-parser",
// Parse the `<script>` in `.svelte` as TypeScript by adding the following configuration.
parserOptions: {
parser: "@typescript-eslint/parser",
},
},
],
2021-07-09 03:50:38 +00:00
parserOptions: {
sourceType: 'module',
2023-08-12 05:26:05 +00:00
ecmaVersion: 2019,
extraFileExtensions: [".svelte"]
2021-07-09 03:50:38 +00:00
},
env: {
browser: true,
es2017: true,
node: true
}
};