-
Notifications
You must be signed in to change notification settings - Fork 326
/
.eslintrc.js
42 lines (41 loc) · 1.31 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
const { getESLintConfig } = require('@iceworks/spec');
// https://www.npmjs.com/package/@iceworks/spec
module.exports = getESLintConfig('react-ts', {
plugins: [
'eslint-plugin-unused-imports',
'eslint-plugin-import',
],
rules: {
'react/jsx-filename-extension': 0,
'react/no-access-state-in-setstate': 0,
'react-hooks/exhaustive-deps': 0,
'@typescript-eslint/member-ordering': 0,
'@typescript-eslint/no-require-imports': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/ban-ts-comment': 0,
'@iceworks/best-practices/recommend-polyfill': 0,
'@iceworks/best-practices/no-js-in-ts-project': 0,
'@iceworks/best-practices/recommend-functional-component': 0,
'no-await-in-loop': 0,
'no-console': 0,
'no-prototype-builtins': 0,
'no-return-assign': 0,
'no-param-reassign': 0,
'unused-imports/no-unused-imports': 'warn',
'import/order': [
'warn',
{
'groups': ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type', 'unknown'],
'pathGroups': [
{
'pattern': '@/**',
'group': 'parent',
'position': 'before'
}
],
'pathGroupsExcludedImportTypes': ['builtin'],
'newlines-between': 'never'
}
]
},
});