-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
39 lines (39 loc) · 1.38 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
module.exports = {
parser: '@typescript-eslint/parser',
extends: 'airbnb',
plugins: [
],
env: {
// Browser global variables like `window` etc.
browser: true,
// CommonJS global variables and CommonJS scoping. Allows require, exports and module.
commonjs: true,
// Enable all ECMAScript 6 features except for modules.
es6: true,
// Defines things like process.env when generating through node
node: true,
},
rules: {
'eol-last': 'error',
'default-param-last': 'off',
// Disabling 'import/no-unresolved' since typescript will break first
'import/no-unresolved': 'off',
'import/extensions': ['error', 'never'],
indent: ['warn', 4],
'linebreak-style': ['error', 'unix'],
'max-classes-per-file': 'off',
'no-console': ['warn'],
'no-underscore-dangle': 'off',
'no-unused-vars': 'off',
'no-use-before-define': 'off',
'react/destructuring-assignment': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-indent-props': ['warn', 4],
'react/jsx-indent': ['warn', 4],
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'off',
semi: ['warn', 'never'],
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
},
root: true,
}