-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.js
51 lines (51 loc) · 1.35 KB
/
next.js
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
51
module.exports = {
root: true,
extends: [
'next/core-web-vitals',
'airbnb',
'airbnb-typescript',
'plugin:@typescript-eslint/recommended',
'prettier'
],
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
},
ignorePatterns: ['.eslintrc.js'],
plugins: ['eslint-plugin-import-helpers', 'prettier'],
rules: {
'prettier/prettier': ['error', {
'printWidth': 80,
'tabWidth': 2,
'useTabs': false,
'singleQuote': true,
'trailingComma': 'all',
'bracketSpacing': true,
'bracketSameLine': true,
'rangeStart': 0,
'insertPragma': false,
'arrowParens': 'always',
'quoteProps': 'as-needed',
'semi': true,
'endOfLine': 'auto',
'proseWrap': 'preserve'
}],
'react/react-in-jsx-scope': 'off',
'react/jsx-closing-bracket-location': 'off',
'react/jsx-one-expression-per-line': 'off',
'import-helpers/order-imports': [
'warn',
{
newlinesBetween: 'always',
groups: [
['/^react/', '/^redux/'],
'module',
'/^@shared/',
['parent', 'sibling', 'index'],
],
alphabetize: { order: 'asc', ignoreCase: true },
},
],
}
};