Last active
September 20, 2020 15:20
-
-
Save dalcib/8cbb71f24cf9fb5d067e21e7bbff46bd to your computer and use it in GitHub Desktop.
eslint config
This file contains hidden or 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
npm i -g eslint eslint-config-universe eslint-plugin-import eslint-plugin-prettier @typescript-eslint/eslint-plugin eslint-plugin-babel prettier @typescript-eslint/parser babel-eslint eslint-plugin-react eslint-plugin-react-hooks eslint-config-prettier |
This file contains hidden or 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
{ | |
"eslintConfig": { | |
"root": true, | |
"extends": [ | |
"universe", | |
"universe/node", | |
"universe/web", | |
"universe/native", | |
"universe/shared/typescript-analysis" | |
], | |
"overrides": [ | |
{ | |
"files": [ | |
"*.ts", | |
"*.tsx", | |
"*.d.ts" | |
], | |
"parserOptions": { | |
"project": "./tsconfig.json" | |
} | |
} | |
], | |
"rules": { | |
"prettier/prettier": ["off"], | |
"import/order": ["off"], | |
"no-unused-vars": ["off"], | |
"@typescript-eslint/no-unused-vars": ["off"] | |
}, | |
"prettier": { | |
"printWidth": 100, | |
"tabWidth": 2, | |
"singleQuote": true, | |
"jsxBracketSameLine": true, | |
"trailingComma": "es5", | |
"semi": false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment