-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setting up prettier and eslint together
- Loading branch information
1 parent
ff776c9
commit ae6f165
Showing
6 changed files
with
274 additions
and
230 deletions.
There are no files selected for viewing
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,35 @@ | ||
# Docker related | ||
docker-compose.yml | ||
|
||
# Node modules and package files | ||
node_modules/ | ||
package-lock.json | ||
package.json | ||
|
||
# README and other markdowns might be formatted, but if you're facing errors, you can ignore them | ||
README.md | ||
|
||
# Configuration files | ||
# server/.eslintrc.js | ||
server/nodemon.json | ||
server/package-lock.json | ||
server/package.json | ||
|
||
# Client | ||
# client/.eslintrc.js | ||
client/package-lock.json | ||
client/package.json | ||
|
||
# Service account and other JSONs that shouldn't be tampered with | ||
server/serviceAccountKey.example.json | ||
|
||
# Binary files and other misc files (if any) | ||
*.jpg | ||
*.png | ||
*.gif | ||
*.key | ||
|
||
# Any build or dist directory | ||
dist/ | ||
build/ |
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 |
---|---|---|
@@ -1,81 +1,79 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es2021": true, | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: [ | ||
"standard-with-typescript", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier", | ||
], | ||
overrides: [ | ||
{ | ||
env: { | ||
node: true, | ||
}, | ||
files: [".eslintrc.{js,cjs,jsx,ts,tsx}"], | ||
parserOptions: { | ||
sourceType: "script", | ||
}, | ||
}, | ||
"extends": [ | ||
"standard-with-typescript", | ||
], | ||
"overrides": [ | ||
{ | ||
"env": { | ||
"node": true | ||
}, | ||
"files": [ | ||
".eslintrc.{js,cjs,jsx,ts,tsx}" | ||
], | ||
"parserOptions": { | ||
"sourceType": "script" | ||
}, | ||
} | ||
], | ||
"ignorePatterns": [ | ||
".eslintrc.js", | ||
"**/node_modules/**", | ||
"**/dist/**", | ||
"**/coverage/**", | ||
"**/build/**", | ||
"**/android/**", | ||
"**/ios/**", | ||
"**/web/**", | ||
"**/config/**", | ||
"**/constants/**", | ||
"**/types/**", | ||
"**/public/**", | ||
"babel.config.js", | ||
"metro.config.js", | ||
], | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": "latest", | ||
"sourceType": "module", | ||
"project": "./tsconfig.json" | ||
], | ||
ignorePatterns: [ | ||
".eslintrc.js", | ||
"**/node_modules/**", | ||
"**/dist/**", | ||
"**/coverage/**", | ||
"**/build/**", | ||
"**/android/**", | ||
"**/ios/**", | ||
"**/web/**", | ||
"**/config/**", | ||
"**/constants/**", | ||
"**/types/**", | ||
"**/public/**", | ||
"babel.config.js", | ||
"metro.config.js", | ||
], | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
"plugins": [ | ||
"react", | ||
"react-native" | ||
], | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/prefer-nullish-coalescing": "off", | ||
"@typescript-eslint/strict-boolean-expressions": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"react-native/no-inline-styles": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/restrict-template-expressions": "off", | ||
"eqeqeq": "off", | ||
"@typescript-eslint/naming-convention": "off", | ||
"no-unreachable": "off", | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/no-confusing-void-expression": "off", | ||
"@typescript-eslint/no-floating-promises": "off", | ||
"@typescript-eslint/no-misused-promises": "off", | ||
"import/no-duplicates": "off", | ||
"multiline-ternary": "off", | ||
"no-dupe-keys": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"array-callback-return": "off", | ||
"@typescript-eslint/array-callback-return": "off", | ||
"no-empty": "off", | ||
"operator-linebreak": "off", | ||
"@typescript-eslint/await-thenable": "off", | ||
"@typescript-eslint/prefer-optional-chain": "off", | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
project: "./tsconfig.json", | ||
}, | ||
plugins: ["react", "react-native", "@typescript-eslint", "prettier"], | ||
rules: { | ||
"prettier/prettier": "error", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/prefer-nullish-coalescing": "off", | ||
"@typescript-eslint/strict-boolean-expressions": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"react-native/no-inline-styles": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/restrict-template-expressions": "off", | ||
eqeqeq: "off", | ||
"@typescript-eslint/naming-convention": "off", | ||
"no-unreachable": "off", | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/no-confusing-void-expression": "off", | ||
"@typescript-eslint/no-floating-promises": "off", | ||
"@typescript-eslint/no-misused-promises": "off", | ||
"import/no-duplicates": "off", | ||
"multiline-ternary": "off", | ||
"no-dupe-keys": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"array-callback-return": "off", | ||
"@typescript-eslint/array-callback-return": "off", | ||
"no-empty": "off", | ||
"operator-linebreak": "off", | ||
"@typescript-eslint/await-thenable": "off", | ||
"@typescript-eslint/prefer-optional-chain": "off", | ||
}, | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
} | ||
} | ||
}, | ||
}; |
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
Oops, something went wrong.