update eslint config so it only checks ts files for now
This commit is contained in:
@@ -1,50 +1,49 @@
|
|||||||
{
|
{
|
||||||
"ignorePatterns": [
|
"ignorePatterns": ["vite.*.ts"],
|
||||||
"vite.*.ts"
|
"root": true,
|
||||||
],
|
"extends": ["eslint:recommended", "plugin:import/recommended", "prettier"],
|
||||||
"root": true,
|
"plugins": ["import"],
|
||||||
"parser": "@typescript-eslint/parser",
|
"overrides": [
|
||||||
"parserOptions": {
|
{
|
||||||
"project": "./tsconfig.json",
|
"files": ["**/*.ts"],
|
||||||
"tsconfigRootDir": "./",
|
"plugins": ["import", "@typescript-eslint", "lit", "lit-a11y"],
|
||||||
"ecmaVersion": "latest",
|
"extends": [
|
||||||
"sourceType": "module"
|
"eslint:recommended",
|
||||||
},
|
"plugin:import/recommended",
|
||||||
"plugins": [
|
"plugin:import/typescript",
|
||||||
"import",
|
"plugin:@typescript-eslint/eslint-recommended",
|
||||||
"@typescript-eslint",
|
"plugin:@typescript-eslint/recommended",
|
||||||
"lit",
|
"plugin:lit/recommended",
|
||||||
"lit-a11y"
|
"plugin:lit-a11y/recommended",
|
||||||
],
|
"plugin:storybook/recommended",
|
||||||
"extends": [
|
"prettier"
|
||||||
"eslint:recommended",
|
],
|
||||||
"plugin:import/recommended",
|
"parser": "@typescript-eslint/parser",
|
||||||
"plugin:import/typescript",
|
"parserOptions": {
|
||||||
"plugin:@typescript-eslint/recommended",
|
"project": "./tsconfig.json",
|
||||||
"plugin:lit/recommended",
|
"tsconfigRootDir": "./",
|
||||||
"plugin:lit-a11y/recommended",
|
"ecmaVersion": "latest",
|
||||||
"plugin:storybook/recommended",
|
"sourceType": "module"
|
||||||
"prettier"
|
},
|
||||||
],
|
"env": {
|
||||||
"env": {
|
"browser": true,
|
||||||
"browser": true,
|
"es2021": true
|
||||||
"es2021": true
|
},
|
||||||
},
|
"rules": {
|
||||||
"rules": {
|
"no-var": "error",
|
||||||
"no-var": "error",
|
"import/no-unresolved": "error"
|
||||||
"import/no-unresolved": "error"
|
},
|
||||||
},
|
"settings": {
|
||||||
"settings": {
|
"import/parsers": {
|
||||||
"import/parsers": {
|
"@typescript-eslint/parser": [".ts"]
|
||||||
"@typescript-eslint/parser": [
|
},
|
||||||
".ts"
|
"import/resolver": {
|
||||||
]
|
"typescript": {
|
||||||
},
|
"alwaysTryTypes": true,
|
||||||
"import/resolver": {
|
"project": "./tsconfig.json"
|
||||||
"typescript": {
|
}
|
||||||
"alwaysTryTypes": true,
|
}
|
||||||
"project": "./tsconfig.json"
|
}
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"test": "web-test-runner --coverage",
|
"test": "web-test-runner --coverage",
|
||||||
"test:watch": "web-test-runner --watch",
|
"test:watch": "web-test-runner --watch",
|
||||||
"test:e2e": "playwright test",
|
"test:e2e": "playwright test",
|
||||||
"lint": "eslint src/**/* e2e/**/* --cache",
|
"lint": "eslint --cache src e2e",
|
||||||
"lint:fix": "npm run lint -- --fix",
|
"lint:fix": "npm run lint -- --fix",
|
||||||
"format": "prettier 'src/**/*.ts'",
|
"format": "prettier 'src/**/*.ts'",
|
||||||
"format:fix": "npm run format -- --write",
|
"format:fix": "npm run format -- --write",
|
||||||
|
|||||||
Reference in New Issue
Block a user