5e20ac7ed5
Merge in DNS/adguard-home from beta-client-2 to master
Squashed commit of the following:
commit b2640cc49a6c5484d730b534dcf5a8013d7fa478
Merge: 659def862 aef4659e9
Author: Eugene Burkov <e.burkov@adguard.com>
Date: Tue Dec 29 19:23:09 2020 +0300
Merge branch 'master' into beta-client-2
commit 659def8626467949c35b7a6a0c99ffafb07b4385
Author: Eugene Burkov <e.burkov@adguard.com>
Date: Tue Dec 29 17:25:14 2020 +0300
all: upgrade github actions node version
commit b4b8cf8dd75672e9155da5d111ac66e8f5ba1535
Author: Vladislav Abdulmyanov <v.abdulmyanov@adguard.com>
Date: Tue Dec 29 16:57:14 2020 +0300
all: beta client squashed
80 lines
2.4 KiB
JavaScript
80 lines
2.4 KiB
JavaScript
module.exports = {
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
project: './tsconfig.json',
|
|
ecmaFeatures: {
|
|
jsx: true
|
|
},
|
|
extraFileExtensions: ['mjs', 'tsx', 'ts'],
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module'
|
|
},
|
|
plugins: ['react', '@typescript-eslint', 'import'],
|
|
env: {
|
|
browser: true,
|
|
commonjs: true,
|
|
es6: true,
|
|
es2020: true,
|
|
jest: true,
|
|
},
|
|
settings: {
|
|
react: {
|
|
pragma: 'React',
|
|
version: 'detect',
|
|
},
|
|
'import/resolver': {
|
|
typescript: {
|
|
alwaysTryTypes: true
|
|
}
|
|
},
|
|
'import/parsers': {
|
|
'@typescript-eslint/parser': ['.ts', '.tsx'],
|
|
},
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/explicit-module-boundary-types': 0,
|
|
'@typescript-eslint/explicit-function-return-type': [0, { allowExpressions: true }],
|
|
'@typescript-eslint/indent': ['error', 4],
|
|
'@typescript-eslint/interface-name-prefix': [0, { prefixWithI: 'never' }],
|
|
'@typescript-eslint/no-explicit-any': [0],
|
|
'@typescript-eslint/naming-convention': [2, {
|
|
selector: 'enum', format: ['UPPER_CASE', 'PascalCase'],
|
|
}],
|
|
'@typescript-eslint/no-non-null-assertion': 0,
|
|
'arrow-body-style': 'off',
|
|
'consistent-return': 0,
|
|
curly: [2, 'all'],
|
|
'default-case': 0,
|
|
'import/no-cycle': 0,
|
|
'import/prefer-default-export': 'off',
|
|
'import/no-named-as-default': 0,
|
|
indent: [0, 4],
|
|
'no-alert': 2,
|
|
'no-console': 2,
|
|
'no-debugger': 2,
|
|
'no-underscore-dangle': 'off',
|
|
'no-useless-escape': 'off',
|
|
'object-curly-newline': 'off',
|
|
'react-hooks/exhaustive-deps': 0,
|
|
'react/display-name': 0,
|
|
'react/jsx-indent-props': ['error', 4],
|
|
'react/jsx-indent': ['error', 4],
|
|
'react/jsx-one-expression-per-line': 'off',
|
|
'react/jsx-props-no-spreading': 0,
|
|
'react/prop-types': 'off',
|
|
'react/state-in-constructor': 'off',
|
|
},
|
|
extends: [
|
|
'airbnb-base',
|
|
'airbnb-typescript/base',
|
|
'airbnb/hooks',
|
|
'plugin:react/recommended',
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:import/errors',
|
|
'plugin:import/warnings',
|
|
'plugin:import/typescript',
|
|
],
|
|
globals: {},
|
|
};
|