forked from RCOSDP/GakuNinLMS-LTI-MC
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.yml
50 lines (50 loc) · 1.27 KB
/
.eslintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
root: true
parser: "@typescript-eslint/parser"
parserOptions:
project: "tsconfig.json"
plugins:
- react
- "@typescript-eslint"
- filenames
- tsc
settings:
react:
version: detect
extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- next
- next/core-web-vitals
- plugin:storybook/recommended
- prettier
rules:
"@typescript-eslint/explicit-module-boundary-types": "off"
"@typescript-eslint/consistent-type-imports": "error"
"@typescript-eslint/no-floating-promises":
- "error"
- ignoreVoid: true
"@typescript-eslint/no-unused-vars":
- "error"
- varsIgnorePattern: "^_"
argsIgnorePattern: "^_"
"@next/next/no-img-element": "off"
import/no-anonymous-default-export: "off"
react/display-name: "off"
react/react-in-jsx-scope: "off"
filenames/match-exported: error
tsc/config: [error, { configFile: "tsconfig.json" }]
overrides:
- files:
- samples/**
rules:
no-irregular-whitespace: "off"
- files: pages/**
rules:
filenames/match-exported: "off"
- files: [types/**, server/types/**]
rules:
filenames/match-exported: [error, camel]
- files: [types/defaultTheme.d.ts]
rules:
"@typescript-eslint/no-empty-interface": "off"