update
This commit is contained in:
@@ -1,11 +1,32 @@
|
|||||||
|
/** @type { import("eslint").Linter.FlatConfig } */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
parser: '@typescript-eslint/parser',
|
|
||||||
extends: [
|
extends: [
|
||||||
'eslint:recommended',
|
'eslint:recommended',
|
||||||
'plugin:@typescript-eslint/recommended',
|
'plugin:@typescript-eslint/recommended',
|
||||||
'plugin:json/recommended',
|
'plugin:svelte/recommended',
|
||||||
'prettier'
|
'prettier'
|
||||||
|
],
|
||||||
|
parser: '@typescript-eslint/parser',
|
||||||
|
plugins: ['@typescript-eslint'],
|
||||||
|
parserOptions: {
|
||||||
|
sourceType: 'module',
|
||||||
|
ecmaVersion: 2020,
|
||||||
|
extraFileExtensions: ['.svelte']
|
||||||
|
},
|
||||||
|
env: {
|
||||||
|
browser: true,
|
||||||
|
es2017: true,
|
||||||
|
node: true
|
||||||
|
},
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: ['*.svelte'],
|
||||||
|
parser: 'svelte-eslint-parser',
|
||||||
|
parserOptions: {
|
||||||
|
parser: '@typescript-eslint/parser'
|
||||||
|
}
|
||||||
|
}
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
'no-unused-vars': 'off', // or "@typescript-eslint/no-unused-vars": "off",
|
'no-unused-vars': 'off', // or "@typescript-eslint/no-unused-vars": "off",
|
||||||
@@ -27,19 +48,4 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
plugins: ['svelte3', '@typescript-eslint', 'unused-imports'],
|
|
||||||
ignorePatterns: ['*.cjs'],
|
|
||||||
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
|
|
||||||
settings: {
|
|
||||||
'svelte3/typescript': () => require('typescript')
|
|
||||||
},
|
|
||||||
parserOptions: {
|
|
||||||
sourceType: 'module',
|
|
||||||
ecmaVersion: 2020
|
|
||||||
},
|
|
||||||
env: {
|
|
||||||
browser: true,
|
|
||||||
es2017: true,
|
|
||||||
node: true
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
@@ -1,84 +1,13 @@
|
|||||||
# v 0.2
|
.DS_Store
|
||||||
# Minified files
|
node_modules
|
||||||
*.min.*
|
|
||||||
*.min.*
|
|
||||||
|
|
||||||
# Husky
|
|
||||||
.husky/*
|
|
||||||
|
|
||||||
# Git
|
|
||||||
.gitignore
|
|
||||||
|
|
||||||
# Eslint
|
|
||||||
.eslintignore
|
|
||||||
|
|
||||||
# Prettier
|
|
||||||
.prettierignore
|
|
||||||
|
|
||||||
# Markdown files
|
|
||||||
*.md
|
|
||||||
|
|
||||||
# Pnpm
|
|
||||||
pnpm-lock.yaml
|
|
||||||
|
|
||||||
# dotenv environment variable files
|
|
||||||
.env
|
|
||||||
.env.development.local
|
|
||||||
.env.test.local
|
|
||||||
.env.production.local
|
|
||||||
.env.local
|
|
||||||
|
|
||||||
# Runtime data
|
|
||||||
pids
|
|
||||||
*.pid
|
|
||||||
*.seed
|
|
||||||
*.pid.lock
|
|
||||||
|
|
||||||
## Build files
|
|
||||||
|
|
||||||
# Common
|
|
||||||
build
|
build
|
||||||
release
|
|
||||||
dist
|
|
||||||
|
|
||||||
# Rust
|
|
||||||
target
|
|
||||||
|
|
||||||
# Svelte-Kit
|
|
||||||
.svelte-kit
|
.svelte-kit
|
||||||
|
package
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
|
|
||||||
# Next.js build output
|
# Ignore files for PNPM, NPM and YARN
|
||||||
.next
|
pnpm-lock.yaml
|
||||||
out
|
package-lock.json
|
||||||
|
yarn.lock
|
||||||
# Nuxt.js build / generate output
|
|
||||||
.nuxt
|
|
||||||
dist
|
|
||||||
|
|
||||||
# Docusaurus cache and generated files
|
|
||||||
.docusaurus
|
|
||||||
|
|
||||||
|
|
||||||
# Nodejs packages
|
|
||||||
node_modules/
|
|
||||||
|
|
||||||
# Package Managers
|
|
||||||
|
|
||||||
.npm
|
|
||||||
# Yarn
|
|
||||||
.yarn-integrity
|
|
||||||
|
|
||||||
# Output of 'npm pack'
|
|
||||||
*.tgz
|
|
||||||
|
|
||||||
# Serverless directories
|
|
||||||
.serverless/
|
|
||||||
|
|
||||||
# Logs
|
|
||||||
logs
|
|
||||||
*.log
|
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
lerna-debug.log*
|
|
||||||
.pnpm-debug.log*
|
|
||||||
|
12
.prettierrc
Normal file
12
.prettierrc
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"useTabs": false,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"singleQuote": true,
|
||||||
|
"trailingComma": "none",
|
||||||
|
"printWidth": 80,
|
||||||
|
"arrowParens": "avoid",
|
||||||
|
"endOfLine": "lf",
|
||||||
|
"semi": false,
|
||||||
|
"plugins": ["prettier-plugin-svelte"],
|
||||||
|
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
|
||||||
|
}
|
@@ -1,16 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
singleQuote: true,
|
|
||||||
trailingComma: 'none',
|
|
||||||
printWidth: 80,
|
|
||||||
svelteStrictMode: false,
|
|
||||||
svelteAllowShorthand: true,
|
|
||||||
bracketSameLine: true,
|
|
||||||
arrowParens: 'avoid',
|
|
||||||
tabWidth: 2,
|
|
||||||
useTabs: false,
|
|
||||||
semi: true,
|
|
||||||
plugins: ['prettier-plugin-svelte', 'prettier-plugin-tailwindcss'],
|
|
||||||
overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }],
|
|
||||||
pluginSearchDirs: ['./'],
|
|
||||||
endOfLine: 'lf'
|
|
||||||
};
|
|
Reference in New Issue
Block a user