-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
64 lines (58 loc) · 1.28 KB
/
.eslintrc.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
52
53
54
55
56
57
58
59
60
61
62
63
64
module.exports = {
extends: [
'@inker/eslint-config-typescript',
// 'plugin:import/errors',
// 'plugin:import/warnings',
],
plugins: [
// 'import',
'@typescript-eslint',
],
parser: '@typescript-eslint/parser',
settings: {
// Append 'ts' extensions to Airbnb 'import/resolver' setting
'import/resolver': {
// use <root>/tsconfig.json
typescript: {
// always try to resolve types under `<roo/>@types` directory
// even if it doesn't contain any source code, like `@types/unist`
alwaysTryTypes: true,
},
node: {
extensions: [
'.mjs',
'.js',
'.jsx',
'.ts',
'.tsx',
'.json',
],
webpack: {
config: 'webpack/webpack.config.js',
},
},
},
// Append 'ts' extensions to Airbnb 'import/extensions' setting
'import/extensions': [
'.js',
'.jsx',
'.ts',
'.tsx',
'.mjs',
],
},
rules: {
'object-property-newline': [2, {
allowAllPropertiesOnSameLine: false,
}],
'@typescript-eslint/no-unused-vars': [2, {
vars: 'all',
args: 'after-used',
ignoreRestSiblings: false,
}],
},
globals: {
__DEV__: true,
__SSR__: true,
},
}