forked from Decisiv/styled-components-modifiers
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
51 lines (50 loc) · 1.24 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['import', '@typescript-eslint', 'jest'],
extends: [
'airbnb-base',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
],
env: {
commonjs: true,
es6: true,
jest: true,
node: true,
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
project: './tsconfig.json',
tsconfigRootDir: '.',
},
settings: {
'import/resolver': {
typescript: {},
},
},
rules: {
'prettier/prettier': 'error',
// Note regarding rule severity, the available values are:
// 'off' or 0 - turn the rule off
// 'warn' or 1 - turn the rule on as a warning (doesn't effect exit code)
// 'error' or 2 - turn the rule on as an error (exit code is 1 when triggered)
//-------------------------------------------------------------------------------------------
'import/no-extraneous-dependencies': 0,
'import/no-named-as-default': 0,
'no-console': 1,
'spaced-comment': [
'error',
'always',
{
exceptions: ['=', '-'],
},
],
indent: 'off',
'@typescript-eslint/indent': ['error', 2],
},
};