forked from nusmodifications/nusmods
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (32 loc) 路 850 Bytes
/
.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
const warnInDevelopment = process.env.NODE_ENV === 'production' ? 'error' : 'warn';
module.exports = {
parser: '@typescript-eslint/parser',
root: true,
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript',
'prettier/@typescript-eslint',
'prettier',
],
env: {
browser: true,
node: true,
},
plugins: ['@typescript-eslint', 'prettier', 'import'],
rules: {
'prettier/prettier': warnInDevelopment,
'import/extensions': [
warnInDevelopment,
'always',
{
js: 'never',
ts: 'never',
},
],
// Makes the code unnecessarily verbose
'@typescript-eslint/explicit-member-accessibility': 'off',
// Makes the code unnecessarily verbose
'@typescript-eslint/explicit-function-return-type': 'off',
'linebreak-style': 'off',
},
};