forked from scania/corporate-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (47 loc) · 1.68 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
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'airbnb-base'
],
plugins: [
'@typescript-eslint', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
'prettier'
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module',
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
},
project: './tsconfig.json',
},
rules: {
'linebreak-style': 'off',
'no-use-before-define': 'off',
'import/no-extraneous-dependencies': 'off', // solving redux dependency issue
'import/prefer-default-export': 'off',
'arrow-parens': 'off',
'no-undef': 'off',
'no-underscore-dangle': 'off',
'max-len': 'off',
'no-tabs': 'off',
'import/no-unresolved': 'off',
'no-param-reassign': 'off', // check this
'no-return-assign': 'off',
'class-methods-use-this': 'off', // check this
'array-callback-return': 'off', // check this
'no-loop-func': 'off', // check this
'no-self-assign': 'off', // check this
'consistent-return': 'off', // check this
'no-unused-expressions': 'off', // check this
'no-restricted-syntax': 'off', // check this - disables for-in related error
'global-require': 'off', // check this
'import/no-dynamic-require': 'off',
'func-names': 'off', // check this, you shouldn't use unnamed functions
'no-console': 'off',
'no-useless-escape': 'off',
'prefer-destructuring' : 'off', // css = sass.renderSync({ data: css }).css;
// e.g. '@typescript-eslint/explicit-function-return-type': 'off',
// 'prettier/prettier': 'error'
},
};