mirror of
https://github.com/lensapp/lens.git
synced 2024-09-20 13:57:23 +03:00
ff93760dc4
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
100 lines
2.7 KiB
JavaScript
100 lines
2.7 KiB
JavaScript
module.exports = {
|
|
ignorePatterns: [
|
|
"**/node_modules/**/*",
|
|
"**/dist/**/*",
|
|
],
|
|
overrides: [
|
|
{
|
|
files: [
|
|
"src/renderer/**/*.js",
|
|
"build/**/*.js",
|
|
"extensions/**/*.js"
|
|
],
|
|
extends: [
|
|
'eslint:recommended',
|
|
],
|
|
env: {
|
|
node: true
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module',
|
|
},
|
|
rules: {
|
|
"indent": ["error", 2, {
|
|
"SwitchCase": 1,
|
|
}],
|
|
"no-unused-vars": "off",
|
|
"semi": ["error", "always"],
|
|
"object-shorthand": "error",
|
|
}
|
|
},
|
|
{
|
|
files: [
|
|
"build/*.ts",
|
|
"src/**/*.ts",
|
|
"integration/**/*.ts",
|
|
"src/extensions/**/*.ts*",
|
|
"extensions/**/*.ts*",
|
|
"__mocks__/*.ts",
|
|
],
|
|
parser: "@typescript-eslint/parser",
|
|
extends: [
|
|
'plugin:@typescript-eslint/recommended',
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module',
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
"@typescript-eslint/ban-types": "off",
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"@typescript-eslint/no-empty-interface": "off",
|
|
"indent": ["error", 2, {
|
|
"SwitchCase": 1,
|
|
}],
|
|
"semi": "off",
|
|
"@typescript-eslint/semi": ["error"],
|
|
"object-shorthand": "error",
|
|
},
|
|
},
|
|
{
|
|
files: [
|
|
"src/renderer/**/*.tsx",
|
|
],
|
|
parser: "@typescript-eslint/parser",
|
|
extends: [
|
|
'plugin:@typescript-eslint/recommended',
|
|
],
|
|
parserOptions: {
|
|
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",
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
"@typescript-eslint/ban-types": "off",
|
|
"@typescript-eslint/no-empty-function": "off",
|
|
"indent": ["error", 2, {
|
|
"SwitchCase": 1,
|
|
}],
|
|
"semi": "off",
|
|
"@typescript-eslint/semi": ["error"],
|
|
"object-shorthand": "error",
|
|
},
|
|
}
|
|
]
|
|
};
|