mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(eslint): correctly pickup ts files as well
This commit is contained in:
parent
e98516df8a
commit
7812c0574c
@ -1,4 +1,5 @@
|
|||||||
import stylistic from "@stylistic/eslint-plugin";
|
import stylistic from "@stylistic/eslint-plugin";
|
||||||
|
import tsParser from "@typescript-eslint/parser";
|
||||||
|
|
||||||
// eslint config just for formatting rules
|
// eslint config just for formatting rules
|
||||||
// potentially to be merged with the linting rules into one single config,
|
// potentially to be merged with the linting rules into one single config,
|
||||||
@ -20,6 +21,10 @@ export const stylisticRules = {
|
|||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
|
files: [ "**/*.{js,ts,mjs,cjs}" ],
|
||||||
|
languageOptions: {
|
||||||
|
parser: tsParser
|
||||||
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
"@stylistic": stylistic
|
"@stylistic": stylistic
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user