feat: implement eslint
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/build
|
||||
/.svelte-kit
|
||||
/package
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
|
||||
*.d.ts
|
||||
|
||||
# Ignore files for PNPM, NPM and YARN
|
||||
pnpm-lock.yaml
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
|
||||
@@ -1,20 +1 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
parser: '@typescript-eslint/parser',
|
||||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
||||
plugins: ['svelte3', '@typescript-eslint'],
|
||||
ignorePatterns: ['*.cjs'],
|
||||
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
|
||||
settings: {
|
||||
'svelte3/typescript': () => require('typescript')
|
||||
},
|
||||
parserOptions: {
|
||||
sourceType: 'module',
|
||||
ecmaVersion: 2019
|
||||
},
|
||||
env: {
|
||||
browser: true,
|
||||
es2017: true,
|
||||
node: true
|
||||
}
|
||||
}
|
||||
module.exports = require('config/eslintrc.config.cjs')
|
||||
|
||||
@@ -35,9 +35,10 @@
|
||||
"@typescript-eslint/parser": "^5.51.0",
|
||||
"base-64": "^1.0.0",
|
||||
"browserslist": "^4.21.5",
|
||||
"config": "workspace:*",
|
||||
"cssnano": "^5.1.14",
|
||||
"eslint": "^8.33.0",
|
||||
"eslint-plugin-svelte3": "^4.0.0",
|
||||
"eslint-plugin-svelte": "^2.16.0",
|
||||
"postcss": "^8.4.21",
|
||||
"postcss-focus-visible": "^8.0.2",
|
||||
"postcss-normalize": "^10.0.1",
|
||||
|
||||
Reference in New Issue
Block a user