-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (29 loc) · 1.08 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
module.exports = {
extends: [require.resolve('arui-presets-lint/eslint'), 'plugin:react/jsx-runtime'],
parserOptions: {
project: ['./tsconfig.eslint.json',/* './cypress/tsconfig.json' */],
},
overrides: [
{
files: ['config/**/*.ts', 'src/global-definitions.d.ts', 'src/libs.d.ts'],
rules: {
'import/no-default-export': 'off',
},
},
],
rules: {
'import/no-extraneous-dependencies': [
'error',
{
// TODO: добавить после cypess 'cypress/**/*.ts',
devDependencies: ['**/*.test.{ts,tsx,js,jsx}'],
},
],
'import/no-default-export': 'error',
indent: 'off', // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/indent.md
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^action' }],
"no-nested-ternary": "off",
"no-unneeded-ternary": "off"
},
ignorePatterns: ['coverage', 'cypress.config.ts'],
};