-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.js
51 lines (43 loc) · 965 Bytes
/
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
const files = require('./files');
const styles = require('./rules/styles');
module.exports = {
extends: [
'./.eslintrc',
'./rules/react',
'plugin:@next/next/core-web-vitals',
],
parser: 'eslint-config-next/parser',
parserOptions: {
allowImportExportEverywhere: true,
babelOptions: {
presets: ['next/babel'],
caller: {
supportsTopLevelAwait: true,
},
},
requireConfigFile: false,
sourceType: 'module',
},
settings: {
'import/resolver': {
'eslint-import-resolver-typescript': {
alwaysTryTypes: true,
},
},
},
overrides: [{
files: files.typescript,
extends: ['airbnb-typescript'],
parserOptions: {
project: './tsconfig.json',
sourceType: 'module',
warnOnUnsupportedTypeScriptVersion: true,
},
rules: {
'@typescript-eslint/indent': styles.rules.indent,
'react/prop-types': 'off',
'react/require-default-props': 'off',
'jsx-a11y/control-has-associated-label': 'off',
},
}],
};