2020-11-19 23:15:49 +03:00
|
|
|
module.exports = {
|
2020-11-23 20:55:00 +03:00
|
|
|
ignorePatterns: [
|
|
|
|
"**/node_modules/**/*",
|
|
|
|
"**/dist/**/*",
|
|
|
|
],
|
2020-03-15 10:52:02 +03:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: [
|
|
|
|
"src/renderer/**/*.js",
|
|
|
|
"build/**/*.js",
|
2020-10-22 21:41:20 +03:00
|
|
|
"extensions/**/*.js"
|
2020-03-15 10:52:02 +03:00
|
|
|
],
|
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
],
|
|
|
|
env: {
|
|
|
|
node: true
|
|
|
|
},
|
2020-11-19 23:15:49 +03:00
|
|
|
parserOptions: {
|
2020-03-15 10:52:02 +03:00
|
|
|
ecmaVersion: 2018,
|
|
|
|
sourceType: 'module',
|
|
|
|
},
|
|
|
|
rules: {
|
2020-11-19 23:15:49 +03:00
|
|
|
"indent": ["error", 2, {
|
|
|
|
"SwitchCase": 1,
|
|
|
|
}],
|
2020-03-15 10:52:02 +03:00
|
|
|
"no-unused-vars": "off",
|
2020-11-19 17:34:59 +03:00
|
|
|
"semi": ["error", "always"],
|
2020-11-24 14:16:35 +03:00
|
|
|
"object-shorthand": "error",
|
2020-03-15 10:52:02 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
files: [
|
2020-04-06 18:18:18 +03:00
|
|
|
"build/*.ts",
|
2020-03-15 10:52:02 +03:00
|
|
|
"src/**/*.ts",
|
2020-09-09 16:19:02 +03:00
|
|
|
"integration/**/*.ts",
|
2020-10-19 11:56:08 +03:00
|
|
|
"src/extensions/**/*.ts*",
|
2020-11-03 15:30:36 +03:00
|
|
|
"extensions/**/*.ts*",
|
|
|
|
"__mocks__/*.ts",
|
2020-03-15 10:52:02 +03:00
|
|
|
],
|
|
|
|
parser: "@typescript-eslint/parser",
|
2020-11-19 23:15:49 +03:00
|
|
|
extends: [
|
2020-03-15 10:52:02 +03:00
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
],
|
2020-11-19 23:15:49 +03:00
|
|
|
parserOptions: {
|
2020-03-15 10:52:02 +03:00
|
|
|
ecmaVersion: 2018,
|
|
|
|
sourceType: 'module',
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars": "off",
|
2020-06-30 14:35:16 +03:00
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
|
|
"@typescript-eslint/ban-types": "off",
|
|
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
|
|
"@typescript-eslint/no-empty-interface": "off",
|
2020-11-19 23:15:49 +03:00
|
|
|
"indent": ["error", 2, {
|
|
|
|
"SwitchCase": 1,
|
|
|
|
}],
|
2020-11-19 19:12:28 +03:00
|
|
|
"semi": "off",
|
|
|
|
"@typescript-eslint/semi": ["error"],
|
2020-11-24 14:16:35 +03:00
|
|
|
"object-shorthand": "error",
|
2020-03-15 10:52:02 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
files: [
|
2020-06-30 14:35:16 +03:00
|
|
|
"src/renderer/**/*.tsx",
|
2020-03-15 10:52:02 +03:00
|
|
|
],
|
|
|
|
parser: "@typescript-eslint/parser",
|
2020-11-19 23:15:49 +03:00
|
|
|
extends: [
|
2020-03-15 10:52:02 +03:00
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
],
|
2020-11-19 23:15:49 +03:00
|
|
|
parserOptions: {
|
2020-03-15 10:52:02 +03:00
|
|
|
ecmaVersion: 2018,
|
|
|
|
sourceType: 'module',
|
|
|
|
jsx: true,
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
|
|
"@typescript-eslint/interface-name-prefix": "off",
|
|
|
|
"@typescript-eslint/no-use-before-define": "off",
|
|
|
|
"@typescript-eslint/no-empty-interface": "off",
|
|
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
|
|
"@typescript-eslint/ban-ts-ignore": "off",
|
2020-06-26 12:05:41 +03:00
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
|
|
"@typescript-eslint/ban-types": "off",
|
|
|
|
"@typescript-eslint/no-empty-function": "off",
|
2020-11-19 23:15:49 +03:00
|
|
|
"indent": ["error", 2, {
|
|
|
|
"SwitchCase": 1,
|
|
|
|
}],
|
2020-11-19 19:12:28 +03:00
|
|
|
"semi": "off",
|
|
|
|
"@typescript-eslint/semi": ["error"],
|
2020-11-24 14:16:35 +03:00
|
|
|
"object-shorthand": "error",
|
2020-03-15 10:52:02 +03:00
|
|
|
},
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|