-
Notifications
You must be signed in to change notification settings - Fork 29
/
.eslintrc
46 lines (46 loc) · 1.34 KB
/
.eslintrc
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
{
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": ["@remotion", "simple-import-sort", "import"],
"globals": {
"process": true
},
"rules": {
"no-console": [
"error",
{
"allow": ["warn", "error"]
}
],
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-empty-function": "off",
"no-unused-vars": "off",
"import/order": "off",
"simple-import-sort/imports": [
"error",
{
"groups": [
// Mocks imports. eg: `import React from '../../mocks/react';`
["^.*/mocks.*$"],
// Packages `react` related packages come first.
["^react", "^@?\\w"],
// Internal packages.
["^(@|components)(/.*|$)"],
// Side effect imports.
["^\\u0000"],
// Parent imports. Sort by most deep first.
// eg: `import { foo } from '../../foo';` before `import { bar } from '../bar';`
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
// Relative imports. Sort by most deep first.
// eg: `import { foo } from './foo/foo';` before `import { bar } from './bar';`
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
// Style imports. eg: import './home.module.css';'
["^.+\\.?(css)$"]
]
}
],
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error"
}
}