-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix eslint + prettier for whole repo
- Loading branch information
gdbroman
committed
Nov 16, 2022
1 parent
8625b8e
commit 0932189
Showing
18 changed files
with
397 additions
and
664 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: [ | ||
'plugin:react/recommended', | ||
'standard-with-typescript', | ||
'plugin:prettier/recommended', | ||
], | ||
overrides: [], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
project: [ | ||
'./app/tsconfig.json', | ||
'./lib/room/tsconfig.json', | ||
'./lib/conduit/tsconfig.json', | ||
'./lib/multiplayer/tsconfig.json', | ||
'./playground/ui/tsconfig.json', | ||
'./tsconfig.eslint.json', | ||
], | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
root: true, | ||
plugins: ['react', 'unused-imports', 'react-hooks', 'prettier'], | ||
rules: { | ||
'prettier/prettier': 'error', | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': 'warn', | ||
'unused-imports/no-unused-imports': 'error', | ||
'react-hooks/rules-of-hooks': 'warn', | ||
'react-hooks/exhaustive-deps': 'warn', | ||
'react/no-unescaped-entities': 'off', | ||
'react/react-in-jsx-scope': 'off', | ||
'prefer-const': 'warn', | ||
'no-self-assign': 'warn', | ||
'multiline-ternary': 'off', | ||
'no-case-declarations': 'warn', | ||
'array-callback-return': 'warn', | ||
'no-prototype-builtins': 'warn', | ||
'constructor-super': 'warn', | ||
'prefer-regex-literals': 'warn', | ||
eqeqeq: 'warn', | ||
'no-empty': 'warn', | ||
'valid-typeof': 'warn', | ||
'react/display-name': 'warn', | ||
'no-unsafe-finally': 'warn', | ||
'no-async-promise-executor': 'warn', | ||
'react/no-find-dom-node': 'warn', | ||
'no-import-assign': 'warn', | ||
'react/no-unknown-property': 'warn', | ||
'react/prop-types': 'warn', | ||
'no-dupe-keys': 'warn', | ||
'no-useless-escape': 'warn', | ||
'prefer-promise-reject-errors': 'warn', | ||
'@typescript-eslint/return-await': 'warn', | ||
'@typescript-eslint/no-unused-expressions': 'warn', | ||
'@typescript-eslint/no-redeclare': 'warn', | ||
'@typescript-eslint/no-empty-interface': 'warn', | ||
'@typescript-eslint/no-base-to-string': 'warn', | ||
'@typescript-eslint/naming-convention': 'off', | ||
'@typescript-eslint/no-var-requires': 'warn', | ||
'@typescript-eslint/method-signature-style': 'warn', | ||
'@typescript-eslint/no-misused-promises': 'warn', | ||
'@typescript-eslint/no-namespace': 'warn', | ||
'@typescript-eslint/no-dynamic-delete': 'warn', | ||
'@typescript-eslint/no-non-null-asserted-optional-chain': 'warn', | ||
'@typescript-eslint/no-non-null-assertion': 'warn', | ||
'@typescript-eslint/no-invalid-void-type': 'warn', | ||
'@typescript-eslint/restrict-plus-operands': 'warn', | ||
'@typescript-eslint/no-floating-promises': 'off', | ||
'@typescript-eslint/prefer-nullish-coalescing': 'off', | ||
'@typescript-eslint/restrict-template-expressions': 'off', | ||
'@typescript-eslint/triple-slash-reference': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/strict-boolean-expressions': 'off', | ||
'@typescript-eslint/prefer-optional-chain': 'off', | ||
'@typescript-eslint/consistent-type-assertions': 'off', | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
// Workaround for a bug regarding .d.ts files | ||
ignorePatterns: ['*.d.ts'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
trailingComma: 'es5', | ||
tabWidth: 2, | ||
semi: true, | ||
singleQuote: true, | ||
printWidth: 80, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,5 @@ | |
"noImplicitReturns": true, | ||
"noImplicitThis": true | ||
}, | ||
"include": ["src"] | ||
"include": ["src", "test"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// This file makes sure the .eslintrc.js file itself is being linted | ||
{ | ||
"include": [".eslintrc.js"] | ||
} |
Oops, something went wrong.