Skip to content

Commit

Permalink
rm root option from ts config
Browse files Browse the repository at this point in the history
  • Loading branch information
devgioele committed Jul 22, 2023
1 parent 43ad3a8 commit 267ff55
Showing 1 changed file with 28 additions and 29 deletions.
57 changes: 28 additions & 29 deletions ts.js
Original file line number Diff line number Diff line change
@@ -1,64 +1,63 @@
module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:prettier/recommended"
'eslint:recommended',
'plugin:@typescript-eslint/strict-type-checked',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:prettier/recommended'
],
parser: "@typescript-eslint/parser",
parser: '@typescript-eslint/parser',
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
sourceType: "module",
sourceType: 'module',
ecmaVersion: 2020
},
root: true,
env: {
node: true,
browser: true,
es6: true,
commonjs: true
},
plugins: ["@typescript-eslint"],
plugins: ['@typescript-eslint'],
settings: {
react: {
version: "detect"
version: 'detect'
},
"import/resolver": {
'import/resolver': {
node: {
paths: ["./"]
paths: ['./']
}
}
},
rules: {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"@typescript-eslint/no-unused-vars": [
"error",
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'@typescript-eslint/no-unused-vars': [
'error',
{
ignoreRestSiblings: true,
varsIgnorePattern: "^[iI]gnored",
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^ignore"
varsIgnorePattern: '^[iI]gnored',
argsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^ignore'
}
],
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"import/order": [
"error",
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'import/order': [
'error',
{
groups: ["builtin", "external", "unknown", "parent", "sibling", "index"]
groups: ['builtin', 'external', 'unknown', 'parent', 'sibling', 'index']
}
],
"no-console": [
"error",
'no-console': [
'error',
{
allow: ["warn", "error", "assert"]
allow: ['warn', 'error', 'assert']
}
],
"@typescript-eslint/strict-boolean-expressions": [
"error",
'@typescript-eslint/strict-boolean-expressions': [
'error',
{
allowNullableBoolean: true
}
Expand Down

0 comments on commit 267ff55

Please sign in to comment.