Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

FUSETOOLS2-2304: Improve TSLint/ESLint configuration #254

Merged
merged 3 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 56 additions & 22 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,62 @@
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
"sourceType": "commonjs",
"project": "./tsconfig.json",
"ecmaFeatures": {
"impliedStrict": true
}
},
"env": {
"browser": true,
"es2022": true,
"mocha": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript"
],
"plugins": [
"@typescript-eslint"
],
"@typescript-eslint",
"eslint-plugin-import", // required by no-extraneous-dependencies
"@stylistic"
],
"rules": {
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "import",
"format": [ "camelCase", "PascalCase" ]
}
],
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
]
}
"@typescript-eslint/no-var-requires": "off", /** allows require statements outside of imports **/
"no-async-promise-executor": "off", /* Deactivated for now as i do not know how to fix it safely*/
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"],
"leadingUnderscore": "allow"
}
],
"@stylistic/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"@typescript-eslint/no-unused-vars":[
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-floating-promises": "warn",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/test/**",
"**/ui-test/**"
],
"optionalDependencies": false,
"peerDependencies": false
}
]
}
}
Loading