-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
83 lines (81 loc) · 2.8 KB
/
.eslintrc.js
File metadata and controls
83 lines (81 loc) · 2.8 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
module.exports = {
extends: ['next', 'next/core-web-vitals', 'eslint:recommended'],
globals: {
React: 'readonly',
},
rules: {
'no-unused-vars': [1, { args: 'after-used', argsIgnorePattern: '^_' }],
},
}
// const pathGroups = ['types', 'config', 'lib', 'app', 'components', 'pages', 'res']
// module.exports = {
// parser: '@typescript-eslint/parser',
// extends: [
// 'plugin:react/recommended',
// 'plugin:@typescript-eslint/recommended',
// 'plugin:react-hooks/recommended',
// 'prettier',
// 'plugin:prettier/recommended',
// 'plugin:@next/next/recommended',
// ],
// plugins: ['import', 'unused-imports'],
// parserOptions: {
// ecmaVersion: 2020,
// sourceType: 'module',
// ecmaFeatures: {
// jsx: true,
// },
// },
// rules: {
// 'no-unused-vars': [1, { args: 'after-used', argsIgnorePattern: '^_' }],
// '@typescript-eslint/padding-line-between-statements': [
// 'error',
// {
// blankLine: 'always',
// prev: ['const', 'let', 'var', 'export', 'interface', 'type'],
// next: '*',
// },
// {
// blankLine: 'any',
// prev: ['const', 'let', 'var'],
// next: ['const', 'let', 'var'],
// },
// // { 'blankLine': 'always', 'prev': '*', 'next': ['interface', 'type'] },
// ],
// '@typescript-eslint/no-explicit-any': 'off',
// '@typescript-eslint/no-empty-interface': 'error',
// '@typescript-eslint/no-unused-vars': 'error',
// '@typescript-eslint/no-var-requires': 'off',
// '@typescript-eslint/explicit-module-boundary-types': 'off',
// 'import/order': [
// 'error',
// {
// 'newlines-between': 'always',
// pathGroups: pathGroups.map((path) => ({
// pattern: `${path}/**`,
// group: 'external',
// position: 'after',
// })),
// pathGroupsExcludedImportTypes: ['builtin'],
// },
// ],
// 'padding-line-between-statements': 'off',
// 'prettier/prettier': ['error', { endOfLine: 'auto' }],
// 'unused-imports/no-unused-imports-ts': 'error',
// 'unused-imports/no-unused-vars-ts': [
// 'warn',
// {
// vars: 'all',
// varsIgnorePattern: '^_',
// args: 'after-used',
// argsIgnorePattern: '^_',
// },
// ],
// 'react/react-in-jsx-scope': 'off',
// },
// settings: {
// react: {
// version: 'detect',
// },
// },
// }